Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.74k stars 645 forks source link

Question: How to navigate the PDF #1507

Closed samcov closed 1 year ago

samcov commented 1 year ago

What were you trying to do?

I have form fields in the document, and would like to navigate the user to the areas to be filled out, or the place where an image needs to be added.

For example, we can get a button: const characterImageField = form.getButton('FillMeUp');

Once I have that button, the location within the document is known, so I would like to scroll the document to that location.

Question: Is this possible?

How did you attempt to do it?

N/A

What actually happened?

N/A

What did you expect to happen?

N/A

How can we reproduce the issue?

N/A

Version

Version 1.17

What environment are you running pdf-lib in?

Browser

Checklist

Additional Notes

No response

samcov commented 1 year ago

Sorry, this isn't a valid question!