Open muehlenp opened 1 month ago
I wonder if this is related to your other ticket about adding content to an existing PDF. I have noticed some TTF issues on new PDFs that sound like this, but I thought they were introduced in 3.027 (yet to be released). Another thing to fix...
When you say '3.026', is that the CPAN official release, or are you grabbing from GitHub (near 3.027)? It would be good to know which one you're using.
Because of the readonly files issue I tried to use PDF::Builder instead of PDF::API2 in my application and stumbled upon this problem. All versions I tested were installed by cpanm.
OK, so this was the official (December 2023) 3.026 release, and not the almost-3.027 release on GitHub. Good to know. It gives me another avenue of finding out this TTF problem.
Using PDF::Builder v3.026 with the following test script gives an error when trying to save the output PDF.
Sample PDF: test_input.pdf
Creating a new PDF and a blank page instead of opening an existing PDF/page works without any error. Running PDF::Builder v3.025 it works, too. Tested under openSuse, Ubuntu and Windows 10 with several input PDFs and fonts.