Replies: 1 comment
-
The problem line was this line: getForm() did was not available in that library. It became available in 1.11.0. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My browser console shows the above error when I click the "Load PDF" button in the following HTML page. I am running this in VS Code with Live Server option, hence the http://127.0.0.1:5500 base ref. The PDF document exists, and it is located in the same folder as the HTML page. It contains one fillable field, which I understand means it must contain a form.
If I comment out the line:
const form = pdfDoc.getForm();
(inloadPDF()
) then there is no error and the console logs "1" (1 page) which is correct. If I leave the line uncommented then the console logs the error, and not "1".This is my complete HTML page. I am a newbie, trying to learn, I know this is very basic. Please help, what I am missing?
The attached zip file contains my HTML and PDF files.
pdf-lib-testing.zip
Beta Was this translation helpful? Give feedback.
All reactions