Package com.snowtide.pdf.util
Class KodakPrintData
- java.lang.Object
-
- com.snowtide.pdf.util.KodakPrintData
-
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
toextract(com.snowtide.pdf.Document)
to check for and extract any KDK data contained in the associated PDF document.- Since:
- v2.1
- Version:
- ©2004-2024 Snowtide
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KodakPrintData
extract(Document stream)
Searches for Kodak print job data within the PDF file held open by the providedDocument
.byte[]
getData()
Returns the raw KDK print job data as extracted from the PDF document.
-
-
-
Method Detail
-
getData
public byte[] getData()
Returns the raw KDK print job data as extracted from the PDF document.
-
extract
public static KodakPrintData extract(Document stream) throws IOException
Searches for Kodak print job data within the PDF file held open by the providedDocument
. If such data is found, then a KDKPrintData instance is returned; otherwise, this function returns null.- Throws:
IOException
-
-