public class KodakPrintData extends Object
This class extracts Kodak print job data (%KDK commands). KDK commands are a Kodak-specific extension to the
PDF file format; they are used to specify print settings to Kodak printers (such as
copy counts, duplex options, finishing options, etc). Simply pass an open Document
to
KodakPrintData.extract(com.snowtide.pdf.Document)
to check for and extract any KDK data contained in the associated PDF document.
Modifier and Type | Method and Description |
---|---|
static KodakPrintData |
extract(Document stream)
Searches for Kodak print job data within the PDF file held open by the provided
Document . |
byte[] |
getData()
Returns the raw KDK print job data as extracted from the PDF document.
|
public byte[] getData()
public static KodakPrintData extract(Document stream)
Document
.
If such data is found, then a KDKPrintData instance is returned; otherwise, this function returns null.