Class 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 to extract(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 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 provided Document. If such data is found, then a KDKPrintData instance is returned; otherwise, this function returns null.
        Throws:
        IOException