PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 4:50 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: Tue Jul 29, 2008 8:55 am 
Offline

Joined: Tue Jul 29, 2008 8:49 am
Posts: 1
How can I check with PDFSharp if a page contains images and text in color or only black/white objects?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 06, 2008 11:00 am 
Offline

Joined: Mon Oct 06, 2008 10:24 am
Posts: 3
also very interested in this. if anyone has an idea, please post

regards,

alin.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Nov 07, 2008 10:44 am 
Offline

Joined: Tue Oct 14, 2008 1:08 pm
Posts: 8
Location: England
The only way I have ever heard of being able to accomplish this is to turn the PDF file into an image (e.g. bitmap etc.., you can use Ghostscript to do this) then analyse each pixel for it colour ( you can do this using System.Drawing).

If there is an easier way then I would also be very interested to hear it, as the above method is a rather large chore. I know that PDFsharp was originally based on GDI+ so this may indeed be possible (although I have not noticed it).


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 368 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