PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Apr 18, 2024 6:32 am

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
 Post subject: PDFSharp FlateDecode
PostPosted: Thu Jul 31, 2014 9:52 am 
Offline

Joined: Tue Jul 29, 2014 4:04 pm
Posts: 1
Hi,

I have an issue with a PDF that I can open in Adobe and Foxit Reader without any issues.
It looks like it uses an encode format that PDFSharp does not support.

PDFSharp is great but if I can't process this file then it will be useless to me :cry:

I can email the PDF in question if needed.

Thanks,

Lourens


Top
 Profile  
Reply with quote  
 Post subject: Re: PDFSharp FlateDecode
PostPosted: Wed Aug 13, 2014 3:58 pm 
Offline

Joined: Wed Aug 13, 2014 3:06 pm
Posts: 3
PdfSharp supports FlateDecode. It's usage is as follows:

Code:
byte[] input = new FlateDecode().Decode(dictionary.Stream.Value);


Make sure that you check to see that you dictionary stream has been encoded using FlateDecode:

Code:
if(dictionary.Elements.GetString("/Filter") == "/FlateDecode") { ... }


The API reference helped me a lot with the encoding, you can download it here. http://pdfsharp.codeplex.com/downloads/get/96265


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 109 guests


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