pdfform.js icon indicating copy to clipboard operation
pdfform.js copied to clipboard

Invalid xref stream index

Open smirciat opened this issue 7 years ago • 5 comments

I am able to use many pdfs, but I have one that is giving me the error:

Invalid xref stream index: index says 1 objects, but space for 42

As the error suggests, there are 42 fields on the pdf form that should be fillable, but only the first one appears. That first field is a "Clear All" action that appears as a checkbox in the demo fields area. I can attach a link to the pdf in question if that helps. Thanks!

smirciat avatar Nov 03 '18 16:11 smirciat

Changing the field names in the pdf file started to make them show up in the demo, then I realized that the field names were repeated throughout the pdf on separate pages. The original intent was to type the name in a field on the first page and it would also appear under the same field name in subsequent pages. This seems to through this library off, it wants only unique field names.

smirciat avatar Nov 04 '18 05:11 smirciat

The problem with xrefs is fixed in master already; I will prepare a release. In any case, I definitely need a copy of a the PDF file to reproduce the issues, so please do link to it.

phihag avatar Nov 04 '18 06:11 phihag

The problem with xrefs is fixed in master already; I will prepare a release. In any case, I definitely need a copy of a the PDF file to reproduce the issues, so please do link to it.

I am excited about this repository and that you are still actively developing it! https://s3-us-west-2.amazonaws.com/bering-reservations/Original+OSM.pdf should get you the pdf I've been working on. Thanks!

smirciat avatar Nov 04 '18 06:11 smirciat

Verified that this issue is fixed for me in 1.0.14. I'll echo @smirciat 's sentiment -- thanks for making this package and keeping it up to date!

Eckhart-csjc avatar Aug 28 '19 19:08 Eckhart-csjc

I am experiencing this issue with the W9 form.

creativeJoe007 avatar Dec 04 '20 10:12 creativeJoe007