Why is PDFNet throwing an exception when opening this PDF?

Q: Why is PDFNet throwing an exception when opening this PDF?
---

A:

The document you sent contains a broken cross-reference table (i.e. it
is not a valid PDF). Acrobat attempts to fix the problem on the fly and
that is why the user is prompted to save the file in Acrobat Pro. If
you resave the file the error will go away. Alternatively you can
attempt to fix the xref table in PDFNet using XrefRebuilder class (or
Doc::FixBrokenDoc() in PDFNet 4.x or above).

We update the PDF programmatically.

How do you update the PDF? Do you use some third party tool? Could it
be that this tool corrupts the file?
---

We are creating barcode using iTextSharp on the second page.

Based on your description it seems that this is a bug in iTextSharp.
Unfortunately we do not support third party libraries, but you could
probably use PDFNet to completely replace and remove the dependency on
iTextSharp.