How to add an SVG to a PDF using iText7 without rasterizing

ε祈祈猫儿з 提交于 2019-12-13 03:19:34

问题


I need to add an SVG image to a PDF, but not as a rasterized image. This was possible in iText5 - however, I have been unable to figure out the corresponding procedure in iText7. Any assistance will be greatly appreciated.


回答1:


David,

SVG, at this point, isn't supported by iText. We are currently investigating and estimating the required work to add SVG support to iText7. We expect to have a minimal working prototype near the end of the first quarter of 2018. This is an estimate, I cannot make any binding promises about this.

It is true that (a small amount of) SVG support was available in iText5. However, this way of rendering SVG files was suboptimal and only worked for very basic files.



来源:https://stackoverflow.com/questions/47976251/how-to-add-an-svg-to-a-pdf-using-itext7-without-rasterizing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!