Skip to content
New issue

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

Error on 0 0 R #14

Open
microshine opened this issue Dec 8, 2022 · 1 comment
Open

Error on 0 0 R #14

microshine opened this issue Dec 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@microshine
Copy link
Contributor

const doc = await PDFDocument.load(fs.readFileSync("DiplomaRequestForm.pdf"));
const box = doc.getComponentById(388);
assert.ok(box instanceof TextEditor);
box.width = 300;
<<
  /N 0 0 R
>>

DiplomaRequestForm.pdf

Adobe replaces such Zero objects by new objects and saves them in new Update.

@microshine microshine added the bug Something isn't working label Dec 8, 2022
@microshine
Copy link
Contributor Author

7.3.10 Indirect objects

An indirect reference to an undefined object shall not be considered an error by a PDF processor; it shall be treated as a reference to the null object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant