pdf-lib
pdf-lib copied to clipboard
PDF load not loading pdf version 1.3
What were you trying to do?
Trying to upload a very old pdf of version 1.3. It marked the pdf as an invalidObject within the lib
How did you attempt to do it?
Convert the file to Base64 and provide it as a parameter to the PdfDocument.Load method
What actually happened?
Throws error that it is unable to parse this pdf
What did you expect to happen?
PDF to be loaded successfyully
How can we reproduce the issue?
https://jsfiddle.net/sschroder/qobsv8tf/1/
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
- [X] My report includes a Short, Self Contained, Correct (Compilable) Example.
- [X] I have attached all PDFs, images, and other files needed to run my SSCCE.
Additional Notes
No response