Class Printer


  • public class Printer
    extends java.lang.Object
    Cloud Office Print supports to print directly to an IP Printer. If your IPP printer supports PDF files, your documents will be converter to PDF and sent to IPP printer. If your printer does not support PDF and supports Postscript then the PDF generated is converter to PDF using pdftops. You need download xpdf tools from: https://www.xpdfreader.com/download.html. Make sure that the binary pdftops is on PATH variable. You can download executables from cloudofficeprint.com to check whether or not your IPP printer supports PDF/postscript. This class represents an IP-enabled printer to use with the Cloud Office Print server.
    • Constructor Summary

      Constructors 
      Constructor Description
      Printer​(java.lang.String location, java.lang.String version, java.lang.String requester, java.lang.String jobName)
      Cloud Office Print supports to print directly to an IP Printer.
    • Constructor Detail

      • Printer

        public Printer​(java.lang.String location,
                       java.lang.String version,
                       java.lang.String requester,
                       java.lang.String jobName)
        Cloud Office Print supports to print directly to an IP Printer. If your IPP printer supports PDF files, your documents will be converter to PDF and sent to IPP printer. If your printer does not support PDF and supports Postscript then the PDF generated is converter to PDF using pdftops. You need download xpdf tools from: https://www.xpdfreader.com/download.html. Make sure that the binary pdftops is on PATH variable. You can download executables from cloudofficeprint.com to check whether or not your IPP printer supports PDF/postscript. This Pritner object represents an IP-enabled printer to use with the Cloud Office Print server.
        Parameters:
        location - HTTP adress of the printer.
        version - Version of the IPP protocol.
        requester - Name of the requester for the printer (often just your name).
        jobName - Name of the job for the printer.
    • Method Detail

      • getLocation

        public java.lang.String getLocation()
        Returns:
        Address where the printer is available.
      • setLocation

        public void setLocation​(java.lang.String location)
        Parameters:
        location - Address where the printer is available.
      • getVersion

        public java.lang.String getVersion()
        Returns:
        IPP version used.
      • setVersion

        public void setVersion​(java.lang.String version)
        Parameters:
        version - IPP version used.
      • getRequester

        public java.lang.String getRequester()
        Returns:
        Name of the requester. (Often just your name).
      • setRequester

        public void setRequester​(java.lang.String requester)
        Parameters:
        requester - Name of the requester. (Often just your name).
      • getJobName

        public java.lang.String getJobName()
        Returns:
        Name of the job for the printer.
      • setJobName

        public void setJobName​(java.lang.String jobName)
        Parameters:
        jobName - Name of the job for the printer.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Returns:
        JSONObject with the tags for the printer for the Cloud Office Print server.