We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The library is able to open the pdf file but after saving it corrupts some images/objects changing color.
const pdf = await PDFDocument.load(buffer, { password: '' }); const bytes = await pdf.save();
const pdf = await PDFDocument.load(buffer, { password: '' });
const bytes = await pdf.save();
Input pdf: laudo.pdf
The output/cloned pdf displays wrong color of logo and the signature images: cloned.pdf
Checking the generated pdf on qdpf shows:
PDF Version: 1.7 File is not encrypted File is not linearized WARNING: cloned.pdf object stream 62 (object 14 0, offset 2243): unknown token while reading object; treating as string WARNING: cloned.pdf object stream 62 (object 14 0, offset 2252): unexpected ) WARNING: cloned.pdf object stream 62 (object 14 0, offset 2264): EOF while reading token WARNING: cloned.pdf object stream 62 (object 14 0, offset 8104): parse error while reading object WARNING: cloned.pdf object stream 62 (object 14 0, offset 8104): unexpected EOF WARNING: cloned.pdf object stream 62 (object 32 0, offset 7262): EOF while reading token WARNING: cloned.pdf object stream 62 (object 32 0, offset 8104): parse error while reading object WARNING: cloned.pdf object stream 62 (object 32 0, offset 8104): unexpected EOF WARNING: cloned.pdf object stream 62 (object 33 0, offset 7431): EOF while reading token WARNING: cloned.pdf object stream 62 (object 33 0, offset 8104): parse error while reading object WARNING: cloned.pdf object stream 62 (object 33 0, offset 8104): unexpected EOF WARNING: cloned.pdf object stream 62 (object 34 0, offset 7609): EOF while reading token WARNING: cloned.pdf object stream 62 (object 34 0, offset 8104): parse error while reading object WARNING: cloned.pdf object stream 62 (object 34 0, offset 8104): unexpected EOF WARNING: cloned.pdf object stream 62 (object 61 0, offset 8027): EOF while reading token WARNING: cloned.pdf object stream 62 (object 61 0, offset 8104): parse error while reading object WARNING: cloned.pdf object stream 62 (object 61 0, offset 8104): unexpected EOF qpdf: operation succeeded with warnings
Output pdf contains corrupted image objects, that displays wrong color
The PDF to be saved properly.
Use the steps above.
2.2.3
Node
No response
The text was updated successfully, but these errors were encountered:
We noticed this, but we didn't have time to solve so far. If anyone has time to spend on this, be my guest.
Sorry, something went wrong.
No branches or pull requests
What were you trying to do?
The library is able to open the pdf file but after saving it corrupts some images/objects changing color.
const pdf = await PDFDocument.load(buffer, { password: '' });
const bytes = await pdf.save();
Input pdf:
laudo.pdf
The output/cloned pdf displays wrong color of logo and the signature images:
cloned.pdf
Checking the generated pdf on qdpf shows:
How did you attempt to do it?
What actually happened?
Output pdf contains corrupted image objects, that displays wrong color
What did you expect to happen?
The PDF to be saved properly.
How can we reproduce the issue?
Use the steps above.
Version
2.2.3
What environment are you running pdf-lib in?
Node
Checklist
Additional Notes
No response
The text was updated successfully, but these errors were encountered: