PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 30, 2024 6:22 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Mar 27, 2014 6:37 pm 
Offline

Joined: Thu Mar 27, 2014 6:30 pm
Posts: 2
Hi guys.

I know that this has been asked before but it seems that I can't find the rigth answer.
I'm trying to convert to JPEG a single page PDF file. So far I have this link http://www.pdfsharp.net/wiki/ExportImages-sample.ashx but all I get when I reproduce that code is a partially converted file in black background. When I say partially I mean that it was like the resulting image was cut in half.
Can anyone point me in the rigth direction?
Thanks in advance.

I'm adding new information to the question:

The PDF file is a scanned image, it's not actually a PDF file, and since the code that I'm using extract the images inside a PDF, I was hoping to obtain the entire image in JPEG format.
Let me attached the result image that I'm getting.


Attachments:
File comment: Result Image
ReceiptsIdentificationImage.jpeg
ReceiptsIdentificationImage.jpeg [ 83.09 KiB | Viewed 4529 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 29, 2014 6:53 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
Hi!

The Export sample only exports the JPEG files as they come in the PDF file. It does not take care of the JPEG filter parameters. These filter parameters can be used to invert an image or do other tricks.

So maybe the scan is like that and the filter tells Adobe Reader to negate it.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 31, 2014 9:47 am 
Offline

Joined: Thu Mar 27, 2014 6:30 pm
Posts: 2
Hi! Thanks for your reply.

Do you know if I can manipulate those filters parameters?
And another thing: Why do I only get half of the image? The other half is gone.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 94 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group