PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PdfReaderException - "Cannot handle iref streams."

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
Thomas



Joined: 25 Aug 2008
Posts: 7

PostPosted: Thu Apr 02, 2009 1:57 pm    Post subject: PdfReaderException - "Cannot handle iref streams." Reply with quote

Hi together,

I have a little trouble with the component (previously using version 1.0.898.0 of PDFsharp, now updated to 1.2.1269.0). By reading various pdf files and merging these I have some files which seem to be created with a newer version of Adobe Acrobat. Then the component throws an exception of type PdfReaderException with the following message:

Quote:
"Cannot handle iref streams. The current implementation of PDFsharp cannot handle this PDF feature introduced with Acrobat 6."


Looking around brought me these lines of code:

Code:
      Symbol symbol = ScanNextToken();
      // Is it an xref stream?
      if (symbol == Symbol.Integer)
        throw new PdfReaderException(PSSR.CannotHandleXRefStreams);
      // TODO: We have all code to handle them -> just do it


Just to understand that: what's the problem you have to solve here? And do you plan to make that happen next time? Wink

And what can I do to prevent that behaviour from an users point of view? For example I solved that issue one time with replacing the original pdf produced by Acrobat directly by printing it again with a pdf printer (CutePDF). But that does not seem to be a workaround for some hundred files we are working here.

Best regards,

Thomas
Back to top
View user's profile Send private message
arifzia



Joined: 04 Jun 2009
Posts: 1

PostPosted: Thu Jun 04, 2009 1:49 pm    Post subject: Reply with quote

Hi PDF Sharp Team,

We are waiting for your response on this thread. It will be better if you can either fix this issue or provide some hints to fix it. This problem will get even worse in future.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Jun 04, 2009 2:57 pm    Post subject: Reply with quote

We are working on PDFsharp 1.3 (to be released later this year).
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com