These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Finding bit depth

THarrisWM
Registered: Apr 9 2008
Posts: 21
Answered

Hi,

Is there a way to find the bit depth of a PDF and write it out to a text file? I've searched around but have yet to find anything.

Thanks.

My Product Information:
Acrobat Standard 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What do you mean by bit depth?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

THarrisWM
Registered: Apr 9 2008
Posts: 21
This is the problem that I'm trying to solve: "For Color PDFs, we end up manually searching through each file to detect color."

I'm supposed to find some way to write out the bit depth to a text file for a PDF. (Maybe Color depth (bits-per-pixel).)

Does that help any?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
That's what I thought you meant.

There is no PDF wide color space. Each line, graphic, character, and bitmap can have a completely different color space. Now, it's possible, and even likely in most cases that everything in the PDF will share the same color space, but this is not required.

This information is not available to Acrobat JavaScript. What you need is a reporting tool. Either a plug-in or an independant tool.

Here's an Acrobat Plug-in that will write object info, including color space and bit depth to a text file, or to an annotation on the PDF.

http://www.windjack.com/products/pdfcanopener.php

There are several other third party tools from vendors like Quite, Callas, InFocus, Appligent, Apago, and others.

Have you looked at the built-in preflight profiles. Several of these are for analyzing PDF colors.

If you can't find anything that fits your exact purpose, then you can write your own plug-in.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script