View previous topic :: View next topic |
Author |
Message |
PDF_User
Joined: 29 Jul 2008 Posts: 1
|
Posted: Tue Jul 29, 2008 8:55 am Post subject: How can I count the color pages and the b/w pages? |
|
|
How can I check with PDFSharp if a page contains images and text in color or only black/white objects? |
|
Back to top |
|
|
alin_edric
Joined: 06 Oct 2008 Posts: 3
|
Posted: Mon Oct 06, 2008 11:00 am Post subject: |
|
|
also very interested in this. if anyone has an idea, please post
regards,
alin. |
|
Back to top |
|
|
PeterGillespie
Joined: 14 Oct 2008 Posts: 8 Location: England
|
Posted: Fri Nov 07, 2008 10:44 am Post subject: |
|
|
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). |
|
Back to top |
|
|
|