Skip to content

Missing page index for acrofield widget #128

@dwozniak8

Description

@dwozniak8

What were you trying to do?

Hey, i have some pdf files where i can't access related page index.
repo:
https://stackblitz.com/edit/vitejs-vite-quraanfr?file=src%2FApp.tsx

in getFieldsFromDocument.ts there is function which find page for every field. broken file returns undefined for reference.

How did you attempt to do it?

  1. run server
  2. go to App.tsx and uncomment one url (first one - not work,second one - work)
  3. click show
  4. near Kunded nr. should be red box with input:
Image

What actually happened?

widget is not recognized

What did you expect to happen?

widget should be recognized the same way as in second file

How can we reproduce the issue?

  1. run server
  2. go to App.tsx and uncomment one url (first one - not work,second one - work)
  3. click show
  4. near Kunded nr. should be red box with input

Version

"pdfjs-dist": "5.4.149",

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

working view:

Image

not working view:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions