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.