[gs-bugs] [Bug 689943] Support extractions of embedded objects

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Fri Jul 4 13:49:22 PDT 2008


http://bugs.ghostscript.com/show_bug.cgi?id=689943





------- Additional Comments From ray.johnston at artifex.com  2008-07-04 13:49 -------
Created an attachment (id=4182)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=4182&action=view)
extractICCprofiles.ps

Embedded object _can_ be extracted from PDF's using Ghostscript. Here's an
example that extracts ICC profiles from a PDF. Doing this kind of thing does
require some understanding of the Ghostscript PDF interpreter, currently 
implemented in PostScript.

If someone generalizes this (and improves the UI) it may be worth carrying
forward if we ever move to a C (or C++, OMG) PDF interpreter.

An example invocation of this is:

gs  -q -dNODISPLAY extractICCprofiles.ps -c "(ICC_) (examples/annots.pdf)
extractICCprofiles quit"

which will extract a profile to a file named: ICC_Cs8




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the gs-bugs mailing list