PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Aug 15, 2018 10:15 pm

All times are UTC

Forum rules

Please read this before posting on this forum: Forum Rules

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Aug 01, 2011 1:18 pm 

Joined: Tue May 24, 2011 9:40 am
Posts: 5
I ran into an issue when loading a particular pdf file.
I load the pdf and ask its page count. Apparantly no pages were found/loaded.
Adobe reader 9 gives me a document with 1 page though.

System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
       at PdfSharp.Pdf.PdfDocument.get_PageCount() in D:\Documents and Settings\tDebie\My Documents\Visual Studio 2010\Projects\PdfSharpBug\PdfSharp\PdfSharp.Pdf\PdfDocument.cs:line 481

I prefer to send the pdf by mail, so I'll see who responds and send it to you.

Thx in advance!

Reply with quote  
PostPosted: Mon Aug 29, 2011 1:59 pm 
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2847
Location: Cologne, Germany
I received your file and I can replicate the exception, but I can't fix it.

Stefan will have to look at it when he's back from his vacation.

The PDF file contains no information about the application that created it. Which application/library is it?

BTW: using JPEG compression (RGB) is not the best choice for that type of image (scanned invoice). Conversion to monochrome and saving as PNG reduced the file size to 114 kiB.

Thomas Hoevel
PDFsharp Team

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group