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
generate-pdf-appwrite\node_modules\pdf-lib\cjs\core\errors.js:229
_this = _super.call(this, msg) || this;
^
Error: Failed to parse PDF document (line:24 col:934 offset=4584): No PDF header found
What did you expect to happen?
It should load the string as pdf document
How can we reproduce the issue?
Get a pdf in unit8array
convert it to string
Load it
const pdfDoc = await PDFDocument.load(str, {
ignoreEncryption: true,
});
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
My report includes a Short, Self Contained, Correct (Compilable) Example.
I have attached all PDFs, images, and other files needed to run my SSCCE.
Additional Notes
No response
The text was updated successfully, but these errors were encountered:
What were you trying to do?
I am getting a pdf document in unit8array as follows
I am converting it to String using this below code
It contains this data
How did you attempt to do it?
I tried to load the str
What actually happened?
What did you expect to happen?
It should load the string as pdf document
How can we reproduce the issue?
Get a pdf in unit8array
convert it to string
Load it
const pdfDoc = await PDFDocument.load(str, {
ignoreEncryption: true,
});
Version
1.17.1
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response
The text was updated successfully, but these errors were encountered: