You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Screen goes blank on iframe for pdf. The Original file output vs decoded pdf-lib base 64 is different.
What did you expect to happen?
By simply just loading it through the library and then saving it without any modifications, it should display well in the browser and result in the same original bytes.
What were you trying to do?
Open the file via fetch and then write to file with more content added to the pdf pages.
How did you attempt to do it?
Then added it to iframe doesn't work. In Ruby decoding the file:
If I force encode it it saves, but is malformed.
I have attached the file.
SOC2.pdf
What actually happened?
Screen goes blank on iframe for pdf. The Original file output vs decoded pdf-lib base 64 is different.
What did you expect to happen?
By simply just loading it through the library and then saving it without any modifications, it should display well in the browser and result in the same original bytes.
How can we reproduce the issue?
script src="https://unpkg.com/pdf-lib"
script src="https://unpkg.com/@pdf-lib/fontkit/dist/fontkit.umd.min.js"
Version
whichever current version is hosted on https://unpkg.com/pdf-lib
What environment are you running pdf-lib in?
Browser
Checklist
Additional Notes
No response
The text was updated successfully, but these errors were encountered: