public class ProcessPrinter extends ProcessReport implements ProcessPrinterAPI
ProcessReportProcessReport.CleanDatasource, ProcessReport.DataWriter, ProcessReport.DrillDownTemplate, ProcessReport.PhoneHomeStats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_JOB_NAME
The default job name.
|
cacheHandler, NUM_HOURS_BETWEEN_LICENSE_CHECK_INS, NUM_HOURS_BETWEEN_LICENSE_CHECK_INS_PREV_FAILED, TEMPLATE_TYPE_DOCM, TEMPLATE_TYPE_DOCX, TEMPLATE_TYPE_HTML, TEMPLATE_TYPE_PPTM, TEMPLATE_TYPE_PPTX, TEMPLATE_TYPE_UNKNOWN, TEMPLATE_TYPE_XLSM, TEMPLATE_TYPE_XLSXCHARSET_DEFAULT, CHARSET_RTF, CHARSET_UNICODE, COPY_METADATA_ALWAYS, COPY_METADATA_IF_NO_DATASOURCE, COPY_METADATA_NEVER, DATA_MODE_ALL_ATTRIBUTES, DATA_MODE_DATA, DATA_MODE_EMBED, DATA_MODE_INCLUDE_BITMAPS, DATA_MODE_SELECT, ERROR_HANDLING_ALL, ERROR_HANDLING_NONE, ERROR_HANDLING_ONLY, ERROR_HANDLING_TRACK_ERRORS, ERROR_HANDLING_VERIFY, HIDDEN_IGNORE_PRINT_RANGE, HIDDEN_SHOW_ALL_ROWS_COLUMNS, HIDDEN_SHOW_HIDDEN_SHEETS, HIDDEN_SHOW_NO_PRINT, HYPHENATE_OFF, HYPHENATE_ON, HYPHENATE_TEMPLATE, LOCALE_DEFAULT, LOCALE_SYSTEM, MODE_PROCESS_EMBEDDED_ALWAYS, MODE_PROCESS_EMBEDDED_COPY, MODE_PROCESS_EMBEDDED_DROP, MODE_PROCESS_EMBEDDED_IF_DATA_APPLIED, MODE_PROCESS_EMBEDDED_KEEP_ORIGINAL_SCREENSHOT, RENDER_EXTENT_ALL, RENDER_EXTENT_CROP_EVERYTHING, RENDER_EXTENT_CROP_HEADER_AND_FOOTER, RENDER_EXTENT_CROP_MARGINS, RENDER_EXTENT_CROP_TO_CONTENT, TAG_STYLE_FIELD, TAG_STYLE_FIELD_2007, TAG_STYLE_TEXT, TYP_CSV, TYP_DOCX, TYP_HTML, TYP_IMAGE, TYP_PDF, TYP_PPTX, TYP_PRINTER, TYP_PS, TYP_RTF, TYP_TXT, TYP_XLSX| Constructor and Description |
|---|
ProcessPrinter(DataSourceProvider data,
java.io.InputStream template,
java.lang.String printer,
int copies)
Create a ProcessPrinter.
|
ProcessPrinter(DataSourceProvider data,
java.io.InputStream template,
java.lang.String printer,
int copies,
boolean useLegacyPrinterMode)
Create a ProcessPrinter.
|
ProcessPrinter(java.io.InputStream templateStream)
Create a ProcessPrinter.
|
ProcessPrinter(java.io.InputStream templateStream,
java.lang.String printer)
Create a printer report.
|
ProcessPrinter(ProcessPrinter src)
Creates and returns a copy of this ProcessPrinter object.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessReportAPIBase |
duplicate(java.io.OutputStream out)
Creates and returns a copy of this ProcessReport object.
|
int |
getCompressionLevel() |
int |
getCopies()
Gets the total number of copies to be printed.
|
PrinterConfiguration.Duplex |
getDuplex()
Get the printer's duplex setting.
|
java.lang.String |
getFirstPagePrinter()
Gets the name of the first page's printer.
|
int |
getFirstPageTray()
Gets the tray for the first page.
|
int |
getFontLevel() |
java.lang.String |
getJobName()
Get the name of the print job.
|
java.lang.String |
getPdfVersion() |
java.lang.String |
getPrinter()
Gets the printer name.
|
PrinterConfiguration |
getPrinterConfiguration()
Get the printer configuration for the report.
|
int |
getReportType()
Get the report format of the output stream.
|
java.lang.String |
getReportTypeString()
Get the report format of the output as a string.
|
int |
getTray()
Gets the tray to be printed to.
|
boolean |
isPageBasedReport()
true if the generated report is page based.
|
boolean |
isPdfA() |
boolean |
isPdfUA() |
boolean |
isUseLegacyPrinterMode() |
void |
setCopies(int copies)
Sets the total number of copies to be printed.
|
void |
setDuplex(PrinterConfiguration.Duplex value)
Set the printer's duplex setting.
|
void |
setEmbededDataMode(int mode)
Set the embed data setting.
|
void |
setFirstPagePrinter(java.lang.String printer)
Sets the first page printer.
|
void |
setFirstPageTray(int tray)
Sets the tray for the first page.
|
void |
setJobName(java.lang.String name)
Set the name of the print job.
|
void |
setPrinter(java.lang.String printer)
Sets the printer to the specified printer name.
|
void |
setTray(int tray)
Sets the tray to be printed to.
|
void |
setUseLegacyPrinterMode(boolean useLegacyPrinterMode) |
abort, addImportInfo, adjustFontName, adjustFontSize, applyLicenseKey, batchNext, batchSetup, buildSchema, checkTimeout, clean, clean, clean, cleanSelects, cleanSelects, close, findPodsUsed, getBaseDirectory, getCharset, getChartProvider, getChartRenderType, getCompany, getCopyMetadata, getDataMode, getDataProcessorVersion, getDataStream, getDataWriter, getDebugHandler, getDescription, getDrillDownInfo, getEmbedInfo, getErrorHandler, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeepBlankSheets, getKeywords, getLocale, getMaxReportPages, getModeProcessEmbedded, getNumPages, getOutputBuilder, getOutputBuilderData, getParameters, getProperties, getRenderExtent, getRenderPages, getReport, getSubject, getTagTree, getTemplateMetrics, getTemplateMetrics, getTemplateMetrics, getTemplateMetrics, getTemplateMetrics, getTemplateMetrics, getTemplateTypeString, getTemplateVersion, getTimeout, getTitle, getVersion, getVersionMajor, getVersionMinor, getVersionRelease, getWriteTags, hasDatasourcesApplied, hasProcessedTags, init, isDebugMode, isIgnoreTags, isLayoutDocument, isPreservePodFraming, isRemoveUnusedFormats, isReportTypeDocx, isReportTypeExcel, isReportTypeOpenXml, isReportTypePpt, isReportTypeWord, isSameOpenXml, isSkipITextLicense, isTagProcessor2Enabled, isTemplateTypeDOCX, isTemplateTypeEqualsReportType, isTemplateTypeOpenXml, isTemplateTypePPTX, isTemplateTypeXLSX, isTrackImports, isUseExternalOutputBuilder, isUseTemplateLocaleToParseData, loadTemplate, mergePodItemStyles, performLayout, process, processComplete, processComplete, processData, processData, processSetup, processSetup, processSetup, readInPropertiesFile, setBaseDirectory, setCharset, setCopyMetadata, setDataMode, setDataStream, setDebugHandler, setDebugMode, setDescription, setDrillDownInfo, setEmbedInfo, setEventHandler, setHiddenMode, setHyphenate, setIgnoreTags, setKeywords, setLayoutDocument, setLicense, setLocale, setModeProcessEmbedded, setOutputBuilder, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, shutdown, statBanner, statLineequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchNext, batchSetup, buildSchema, close, findPodsUsed, getBaseDirectory, getCharset, getCopyMetadata, getDataMode, getDataStream, getDescription, getDrillDownInfo, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeywords, getLocale, getModeProcessEmbedded, getNumPages, getOutputBuilder, getOutputBuilderData, getParameters, getProperties, getRenderExtent, getRenderPages, getReport, getSubject, getTemplateVersion, getTimeout, getTitle, getWriteTags, hasProcessedTags, isDebugMode, isLayoutDocument, isPreservePodFraming, isRemoveUnusedFormats, isReportTypeExcel, isReportTypeWord, isTrackImports, isUseExternalOutputBuilder, process, processComplete, processData, processData, processSetup, processSetup, processSetup, setBaseDirectory, setCharset, setCopyMetadata, setDataMode, setDataStream, setDebugMode, setDescription, setDrillDownInfo, setEventHandler, setHiddenMode, setHyphenate, setKeywords, setLayoutDocument, setLicense, setLocale, setModeProcessEmbedded, setOutputBuilder, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTagspublic static final java.lang.String DEFAULT_JOB_NAME
public ProcessPrinter(java.io.InputStream templateStream,
java.lang.String printer)
throws LicenseException,
SetupException
Objects created with this constructor must call:
Do not pass in buffered streams if you have the option. ProcessReport wraps all streams in buffers, generally BufferedReader and BufferedWriter.
templateStream - The template.printer - The name of the printer. Must not be null or empty.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionProcessReportpublic ProcessPrinter(java.io.InputStream templateStream)
throws LicenseException,
SetupException
Objects created with this constructor must call:
Do not pass in buffered streams if you have the option. ProcessReport wraps all streams in buffers, generally BufferedReader and BufferedWriter.
templateStream - The template.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionProcessReportpublic ProcessPrinter(DataSourceProvider data, java.io.InputStream template, java.lang.String printer, int copies, boolean useLegacyPrinterMode) throws LicenseException, SetupException
data - The data source provider.template - The template.printer - The printer name. Must not be null or empty.copies - Number of copies to print. Must be greater than zero. If a number less than one
is specified, one copy will be printed.useLegacyPrinterMode - If true, the printer will be used in legacy mode.LicenseExceptionSetupExceptionProcessReportpublic ProcessPrinter(DataSourceProvider data, java.io.InputStream template, java.lang.String printer, int copies) throws LicenseException, SetupException
data - The data source provider.template - The template.printer - The printer name. Must not be null or empty.copies - Number of copies to print. Must be greater than zero. If a number less than one
is specified, one copy will be printed.LicenseExceptionSetupExceptionProcessReportpublic ProcessPrinter(ProcessPrinter src) throws LicenseException, AlreadyProcessedException, SetupException
src - The ProcessPrinter object to copy.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.AlreadyProcessedExceptionSetupExceptionpublic ProcessReportAPIBase duplicate(java.io.OutputStream out) throws AlreadyProcessedException, LicenseException, SetupException
duplicate in interface ProcessReportAPIBaseout - Ignored for printer reports.AlreadyProcessedExceptionLicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic int getReportType()
getReportType in interface ProcessReportAPIBasepublic java.lang.String getReportTypeString()
getReportTypeString in interface ProcessReportAPIBasepublic void setEmbededDataMode(int mode)
mode - the embed data setting. You can only pass a 0.public boolean isPageBasedReport()
isPageBasedReport in interface ProcessReportAPIBaseisPageBasedReport in class ProcessReportpublic void setPrinter(java.lang.String printer)
setPrinter in interface ProcessPrinterAPIprinter - the name of the printerpublic java.lang.String getPrinter()
getPrinter in interface ProcessPrinterAPIpublic void setCopies(int copies)
ProcessPrinterAPIsetCopies in interface ProcessPrinterAPIcopies - the number of copies to printpublic int getCopies()
ProcessPrinterAPIgetCopies in interface ProcessPrinterAPIpublic void setTray(int tray)
setTray in interface ProcessPrinterAPItray - main traypublic int getTray()
getTray in interface ProcessPrinterAPIpublic void setFirstPagePrinter(java.lang.String printer)
setFirstPagePrinter in interface ProcessPrinterAPIprinter - printer namepublic java.lang.String getFirstPagePrinter()
getFirstPagePrinter in interface ProcessPrinterAPIpublic void setFirstPageTray(int tray)
setFirstPageTray in interface ProcessPrinterAPItray - first-page traypublic int getFirstPageTray()
getFirstPageTray in interface ProcessPrinterAPIpublic PrinterConfiguration getPrinterConfiguration()
ProcessPrinterAPIgetPrinterConfiguration in interface ProcessPrinterAPIpublic void setJobName(java.lang.String name)
ProcessPrinterAPIsetJobName in interface ProcessPrinterAPIname - The print job name.public java.lang.String getJobName()
ProcessPrinterAPIgetJobName in interface ProcessPrinterAPIpublic void setDuplex(PrinterConfiguration.Duplex value)
throws OutputLimitationException
ProcessPrinterAPIsetDuplex in interface ProcessPrinterAPIvalue - The desired duplex setting.OutputLimitationExceptionpublic boolean isPdfA()
isPdfA in class ProcessReportpublic boolean isPdfUA()
isPdfUA in class ProcessReportpublic int getCompressionLevel()
getCompressionLevel in class ProcessReportpublic java.lang.String getPdfVersion()
getPdfVersion in class ProcessReportpublic int getFontLevel()
getFontLevel in class ProcessReportpublic PrinterConfiguration.Duplex getDuplex()
ProcessPrinterAPIgetDuplex in interface ProcessPrinterAPIpublic boolean isUseLegacyPrinterMode()
public void setUseLegacyPrinterMode(boolean useLegacyPrinterMode)
Copyright © 2002-2026 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software