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

Adding second annotation fails with undefined xref #87

Open
adamtlord opened this issue Jun 17, 2024 · 2 comments
Open

Adding second annotation fails with undefined xref #87

adamtlord opened this issue Jun 17, 2024 · 2 comments

Comments

@adamtlord
Copy link

Love this library, brilliant work.
For some pdfs (maybe versions > 1.5), I can add one highlight annotation successfully, but adding a second one fails:

TypeError: Cannot read properties of undefined (reading 'compressed')
    at _ObjectUtil.extractObject (object-util.ts:142:46)
    at new CatalogObject (parser.ts:351:35)
    at PDFDocumentParser.getCatalog (parser.ts:761:20)
    at PDFDocumentParser.getPageTree (parser.ts:780:35)
    at PDFDocumentParser.getPage (parser.ts:800:33)
    at _AnnotationFactory.createBaseAnnotation (annotation.ts:192:40)
    at _AnnotationFactory.createHighlightAnnotation (annotation.ts:238:50)
@Darpen
Copy link

Darpen commented Jul 12, 2024

Hi, have you been able to solve this issue ?

@Kinqdos
Copy link

Kinqdos commented Dec 3, 2024

Same issue here, but I cannot add even one annotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants