We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My goal was to fill a PDF.
For the sake of this issue, I will reduce to scope to simply finding a field.
BC-WasteForm.pdf
If you open this PDF in Adobe Acrobat, you can clearly see that the field, TransporterTrailer2Province, exists:
TransporterTrailer2Province
Furthermore, macOS Preview and a bunch of online PDF form fillers do identify this field.
If you run the following code, you should expect it to show in the table:
const document: PDFDocument = (await PDFDocument.load(fs.readFileSync('...'))); const form: PDFForm = document.getForm(); console.table(form.getFields() .map((field: PDFField) => ({ name: field.getName(), type: field.constructor.name })));
For some reason, TransporterTrailer2Province, is not listed in the table.
We can simplify the code to produce the issue:
const document: PDFDocument = (await PDFDocument.load(fs.readFileSync('...'))); const form: PDFForm = document.getForm(); form.getField('TransporterTrailer2Province');
Error: PDFDocument has no form field with the name "TransporterTrailer2Province"
I expected pdf-lib to find the field.
Please see above...
Note that I have tested this when ran in Node (through Vitest) and in the browser.
1.17.1
Browser, Node
Thank you very much for your time!
The text was updated successfully, but these errors were encountered:
Hello, I have same issue is there any update on this ?
Sorry, something went wrong.
I have this issue too. In my case 95 of 250 form fields are not identifiable by PDFLIB, yet found using other tools.
No branches or pull requests
What were you trying to do?
My goal was to fill a PDF.
For the sake of this issue, I will reduce to scope to simply finding a field.
How did you attempt to do it?
BC-WasteForm.pdf
If you open this PDF in Adobe Acrobat, you can clearly see that the field,
TransporterTrailer2Province
, exists:Furthermore, macOS Preview and a bunch of online PDF form fillers do identify this field.
If you run the following code, you should expect it to show in the table:
What actually happened?
For some reason,
TransporterTrailer2Province
, is not listed in the table.We can simplify the code to produce the issue:
What did you expect to happen?
I expected pdf-lib to find the field.
How can we reproduce the issue?
Please see above...
Note that I have tested this when ran in Node (through Vitest) and in the browser.
Version
1.17.1
What environment are you running pdf-lib in?
Browser, Node
Checklist
Additional Notes
Thank you very much for your time!
The text was updated successfully, but these errors were encountered: