PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Feb 17, 2018 9:27 pm

All times are UTC




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

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.

Code:
System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=PdfSharp
  StackTrace:
       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
  InnerException:


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

Thx in advance!


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

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2773
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
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: No registered users 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:  
Powered by phpBB® Forum Software © phpBB Group