“Cannot handle iref streams. The current implementation of PDFsharp cannot handle this PDF feature introduced with Acrobat 6.” Looking. [July 09 Update] As some people have emailed and commented, another option to work around this solution is to plugin iTextSharp and. Error Processing Command: ‘Cannot Handle iref Streams. The Current Implementation of PDFsharp Cannot Handle this PDF Feature.
|Published (Last):||19 September 2011|
|PDF File Size:||16.56 Mb|
|ePub File Size:||3.11 Mb|
|Price:||Free* [*Free Regsitration Required]|
PDFsharp & MigraDoc Foundation
An unhandled exception of type ‘PdfSharp. PdfReaderException’ occurred in PdfSharp. Cannot handle iref streams.
What can I do with it? I need to merge all files, I cannot just skip it. I tried to find solution, but found not answered or just very old feedback from PDFsharp Team that they are going to “fix it”.
I use PDFsharp v1. I open documents using this code: Import ; And while opening one document with PDF version 1. You can use iText5 or iText7 to remove the iref streams. PdfReader sourceStream ; iTextSharp. PdfStamper reader, outputStream ; pdfStamper.
PDFsharp & MigraDoc Foundation • View topic – Cannot handle iref streams
PdfReader inputStream ; iText. PdfDocument pdfReader, new iText.
PdfWriter outputStream, writerProperties ; iText. GetAcroForm pdfStamper, true ; if! SetFullCompressionMode false ; pdfStamper. SetCloseStream false ; pdfStamper.
The op clearly uses pdfsharp, not iText. In such a case it is considered bad style to answer with a solution based on that different pdf library.
Answer from knitTheCode is relevant as there are no ways to solve this problem using only PDFSharp except for beta versions but whose can’t be used in production environmentsas stated by PDFSharp admin in link provided. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email stremas Password.
Omatic Software Support