如何在PDF文档中插入SVG文件?
问题描述:
我正在尝试使用 embeddSVG.py 将SVG嵌入到PDF,但Adobe Acrobat Reader在我的pdf中未显示svg内容.
I'm trying use embeddSVG.py to embed an SVG in a PDF, but Adobe Acrobat Reader doesn't show svg content in my pdf.
答
最好先将SVG转换为PDF.
You're probably better off first converting the SVG to PDF.
Apache Batik包括 SVG Rasterizer ,尽管其名称如此,但它仍然可以将SVG转换为PDF.
Apache Batik includes SVG Rasterizer, which, despite its name, can convert SVG to PDF.
Apache FOP使用它来将包含SVG图形的Docbook文档转换为PDF.
This is used by Apache FOP to convert Docbook documents that include SVG graphics to PDF.