PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jul 20, 2024 1:25 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Aug 12, 2011 6:08 pm 
Offline

Joined: Fri Aug 12, 2011 5:51 pm
Posts: 5
Hi guys,
I would like to know if is possible to use PDFsharp to read a pdf in silent mode and read the images within. I recieve a PDF that contains 4 images, so I need to find a way to extract those images and save it as individual resources.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 22, 2011 10:05 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
The Export Images sample doesn't support all possible filters yet, but may serve as a starter:
http://www.pdfsharp.net/wiki/ExportImages-sample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 29, 2011 4:15 pm 
Offline

Joined: Fri Aug 12, 2011 5:51 pm
Posts: 5
Hi Thomas,
I saw the example at http://www.pdfsharp.net/wiki/ExportImages-sample.ashx. The problem I'm facing is that the images within the PDF were compressed using CCITTFaxDecode,I mean this is the filter.
In the example you provided, I realized that you just support /DCTDecode and "/FlateDecode" what about "/CCITTFaxDecode"?


Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 30, 2011 8:25 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
michael.hidalgo wrote:
what about "/CCITTFaxDecode"?

Left as an exercise for the reader (as the sample source code says).

You can use code (e.g. from TIFFlib) for that filter - PDFsharp only contains the encoder as the decoder is not (yet) needed.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 42 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