Detect color pages or BW pages in PDF

Hello,

We have an urgent need with one of our customers. This customer, like other customers, process a very large amount of PDF documents. These PDF documents can all contain a mix of B/W, Color, and Grayscale images.  For example, Lets say we have a file TM.pdf and it contains 5 pages. The first two pages are color, and the last three are B/W. In our current implementation the user has to pre-set the conversion parameters to TIF. Our current implementation performs poorly in this case because color images in the PDF are converted to B/W, but the resulting image is not clear.

We have not been able to find a good solution to process properly each of these types using our current implementation. We need to have a way to open a PDF file and for each image in the PDF have a VeryPDF function that would tell us if the current image in the PDF is B/W, Color, or Grayscale. Or at least tell us if the PDF contains Color images. That way we can detect the type of image and convert it with the correct parameters. Can we do this with VeryPDF? If not, is this something that can be implemented and waht would be the cost?

Do you have any suggestions?
===============================================
Yes, our "Spool File Page Counter SDK" product has ability to count the color and BW pages in PDF file, you can download the trial version of Spool File Page Counter SDK from following page to try,


the "Spool File Page Counter SDK" product is can also count the BW and color pages in PCL5e, PCL5c, PCL-XL and Postscript formats.

Please refer to a user's response at following web page,


the following is a test case to count the BW and color pages in PDF file,
~~~~~~~~~~~~~~~~~~~~~
you can also run test application in CMD window to determine a PDF page is BW or Color, please refer to following test case,

C:\>E:\ps-and-pcl-info-sdk\bin\C#_ParsingTest.exe D:\temp\TestDoc.pdf
args length is 1
args index 0 is [D:\temp\TestDoc.pdf]
=============================
Page 1 is [Color]
Page 2 is [Color]
Page 3 is [ BW]
Page 4 is [ BW]
Page 5 is [ BW]
Page 6 is [ BW]
Page 7 is [ BW]
=============================
Statistics: bwPageCount=5, colorPageCount=2
File: D:\temp\PoemsTestDoc.pdf
Render To PDF: 1
BW Pages: 5
Color Pages: 2
Width: 0
Height: 0
Paper name:

as you see, you can get BW or color for each page easily.
~~~~~~~~~~~~~~~~~~~~~

after you purchased the "Spool File Page Counter SDK" product, please email to us your Order ID, we will send the latest version of "Spool File Page Counter SDK" product to you, the latest version of "Spool File Page Counter SDK" product is able return the color depth information for each PDF, PCL, PS page to your application via an array.

VeryPDF
===============================================
Thank you. Can you confirm that this is the only product that you have that contains this feature to detect if a PDF contains color of BW images? Thank you
===============================================
Yes, this is the only product which can count color pages and BW pages in PDF file. 

VeryPDF
===============================================
Thank you, does it support detecting grayscale pages? or just color and black and white pages? Thank you
========================
Thanks for your message, "Spool File Page Counter SDK" product will detect grayscale pages as black and white pages. However, if you need keep grayscale as "grayscale", this can be done easily, after you purchased "Spool File Page Counter SDK" product from us, please email to us your Order ID, we will ask our engineer to add the "recognize grayscale as grayscale " function to you free, you will get color, BW and grayscale three page types from PDF pages.

VeryPDF

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
Detect color pages or BW pages in PDF, 10.0 out of 10 based on 1 rating

Related Posts

This entry was posted in Spool File Page Counter SDK and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!