找回密码
 快速注册
搜索
查看: 5|回复: 1

PDF和SVG的对比

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2024-8-23 23:08 |阅读模式
PDF 支持但 SVG 不支持的 PDF 图形运算符是“路径着色 Path Shading”运算符。此运算符允许在 PDF 文档的路径内创建复杂的渐变填充和图案。另一方面,SVG 没有与此运算符直接等效的运算符。在 SVG 中,可以使用 <linearGradient> 和 <pattern> 元素实现渐变填充和图案,但它们不如 PDF 中的路径着色运算符灵活和强大。

相关帖子:


PDF运算符的参考资料:
pdfa.org/wp-content/uploads/2023/08/PDF-Operators-CheatSheet.pdf
SVG <pattern>的参考资料:
developer.mozilla.org/en-US/docs/Web/SVG/Element/pattern

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2024-8-23 23:14
name sh (PDF 1.3) Paint area defined by a shading pattern. name is the name of a
shading dictionary resource in the Shading subdictionary of the current
resource dictionary.

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 16:01

Powered by Discuz!

× 快速回复 返回顶部 返回列表