Some Pdfs are throwing this error:
Message: Rebuild failed: Object reference not set to an instance of an
object.; Original message: Object reference not set to an instance of an
object.
Details: iTextSharp.text.exceptions.InvalidPdfException: Rebuild failed:
Object reference not set to an instance of an object.; Original message:
Object reference not set to an instance of an object.
at iTextSharp.text.pdf.PdfReader..ctor(IRandomAccessSource byteSource,
Boolean partialRead, Byte[] ownerPassword, X509Certificate certificate,
ICipherParameters certificateKey, Boolean closeSourceOnConstructorError)
at iTextSharp.text.pdf.PdfReader..ctor(String filename)
If I add this null error handling code here, it works fine. Will this
cause other issues?
protected internal void ReadObjStm(PRStream stream, IntHashtable map)
{
if (stream == null)
return;
Andrew Roberts
Senior Software Engineer
<http://www.aconex.com/operation-maintenance-manuals>
Aconex
Project success. Easy as Aconex.
Suite 18, Brougham Plaza, 8-20 OConnell St, North Adelaide, South
Australia 5006, Australia
Tel: +61 8 8219 9113
Email: <mailto:[email protected]> [email protected]
<http://www.aconex.com/> www.aconex.com
This email and any attachments are confidential, subject to copyright and
may be privileged. No confidentiality or privilege is lost by an erroneous
transmission. If you have received this email in error, please let us know
by reply email and delete or destroy this email and all copies. If you are
not the intended recipient of this email you must not disseminate, copy or
use the information in it.
<<image001.png>>
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
