Forgot password?
 Register account
View 161|Reply 1

PDF和SVG的对比

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2024-8-23 23:08 |Read mode
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

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 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.

Mobile version|Discuz Math Forum

2025-6-5 01:46 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit