Closed ebremmer closed 6 years ago
Same problem here. Adobe Acrobat Reader gives a warning and stops rendering the file when I use patterns in the SVG. If I remove the patterns, it works flawlessly.
Thanks for the report. There was some kind of infinite loop of patterns in the pdf file structure. Sorry for the long delay. Please reopen the issue if the problem persists.
@alafr I've tested it in Adobe Acrobat XI 11.0.09 and the problem is gone. However, when I open the same PDF in Adobe Acrobat Reader DC 2018.008.20044, it still fails, as the reader seems to still get into some infinite loop.
EDIT: After fiddling with it a little, I found out it works (for both readers) as long as I have more than 1 page. It only fails if I have a single page PDF. I will investigate more and post here if I find something useful.
The problem comes probably from this line: https://github.com/alafr/SVG-to-PDFKit/blob/master/source.js#L17 Edit: I removed these arbitrary numbers. Is the bug still there?
@alafr Thanks for your answer and sorry for taking so long to reply. It was the problem indeed. The new version is working perfectly here. Thanks for sharing it with us! 👍
When I use patterns in my PDF's, Adobe Reader thinks file is broken or Adobe Illustrator says:
Since I have no forms nor fonts in there I think it must be pattern.