public class ProcessPdf extends ProcessReport implements ProcessPdfAPI
ProcessReport.CleanDatasource, ProcessReport.DrillDownTemplate, ProcessReport.PhoneHomeStatsNUM_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_XLSXALLOW_ALL, ALLOW_ASSEMBLY, ALLOW_COPY, ALLOW_DEGRADED_PRINTING, ALLOW_FILL_IN, ALLOW_MOD_ANNOTATIONS, ALLOW_MOD_CONTENTS, ALLOW_NONE, ALLOW_PRINTING, ALLOW_SCREEN_READERS, COMP_FAST, COMP_MAX, COMP_NONE, FONT_EMBEDED, FONT_INTERNAL, FONT_NO_EMBED, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5, VERSION_1_6, VERSION_1_7CHARSET_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 |
|---|
ProcessPdf(java.io.InputStream template)
Create a ProcessPdf object with the passed in template.
|
ProcessPdf(java.io.InputStream xmlData,
java.io.InputStream template,
java.io.OutputStream report)
Create a ProcessPdf object with the passed in template & data streams, writing it to
the passed in report stream.
|
ProcessPdf(java.io.InputStream template,
java.io.OutputStream report)
Create a ProcessPdf object with the passed in template, writing it to the passed in report stream.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessReportAPIBase |
duplicate(java.io.OutputStream out)
Creates and returns a copy of this object.
|
int |
getCompressionLevel()
Get the compression level.
|
net.windward.document.Document |
getDocument()
Gets the current document
|
int |
getFontLevel()
Get the font level.
|
int |
getKeyLength()
Get the password licenseKey length.
|
java.lang.String |
getOwnerPassword()
Get the owner password for the report.
|
java.lang.String |
getPdfVersion()
Gets the PDF version number used to create the file.
|
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 |
getSecurity()
Get the security for the created pdf report.
|
java.lang.String |
getUserPassword()
Get the user password for the report.
|
boolean |
isPageBasedReport()
true if the generated report is page based.
|
boolean |
isPdfA()
true if build a PDF/A-1b file.
|
static void |
loadFonts(int fontLevel) |
void |
setCompressionLevel(int level)
Set the compression level.
|
void |
setFontLevel(int level)
Set the font level.
|
void |
setKeyLength(int len)
Set the password licenseKey length.
|
void |
setOwnerPassword(java.lang.String password)
Set the owner password for the report.
|
void |
setPdfA(boolean pdfaMode)
true if build a PDF/A-1b file.
|
void |
setPdfVersion(java.lang.String version)
Gets the PDF version number used to create the file.
|
void |
setSecurity(int mode)
Set the security for the created pdf report.
|
void |
setUserPassword(java.lang.String password)
Set the user password for the report.
|
abort, addImportInfo, adjustFontName, adjustFontSize, applyLicenseKey, batchNext, batchSetup, buildSchema, checkTimeout, clean, clean, clean, cleanSelects, cleanSelects, close, findPodsUsed, getBaseDirectory, getCharset, getChartProvider, getChartRenderType, getCompany, getCopyMetadata, getDataMode, getDataStream, getDataWriter, getDebugHandler, getDescription, getDrillDownInfo, getErrorInfo, getEventHandler, getHiddenMode, getHyphenate, getImportInfo, getKeywords, getLocale, getMaxReportPages, getModeProcessEmbedded, getNumPages, getOutputBuilderData, getParameters, getProperties, getRenderExtent, getRenderPages, getReport, getSubject, getTagTree, 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, isTemplateTypeDOCX, isTemplateTypeEqualsReportType, isTemplateTypeOpenXml, isTemplateTypePPTX, isTemplateTypeXLSX, isTrackImports, isUseExternalOutputBuilder, loadTemplate, mergePodItemStyles, performLayout, process, processComplete, processComplete, processData, processData, processSetup, processSetup, setBaseDirectory, setCharset, setCopyMetadata, setDataMode, setDataStream, setDebugHandler, setDebugMode, setDescription, setDrillDownInfo, 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, statLine, updatePodsequals, 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, 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, setBaseDirectory, setCharset, setCopyMetadata, setDataMode, setDataStream, setDebugMode, setDescription, setDrillDownInfo, setEventHandler, setHiddenMode, setHyphenate, setKeywords, setLayoutDocument, setLicense, setLocale, setModeProcessEmbedded, setOutputBuilderData, setParameters, setPreservePodFraming, setRemoveUnusedFormats, setRenderExtent, setRenderPages, setSubject, setTemplateVersion, setTimeout, setTitle, setTrackErrors, setTrackImports, setUseExternalOutputBuilder, setWriteTags, updatePodspublic ProcessPdf(java.io.InputStream template)
throws LicenseException,
SetupException
template - The report template.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic ProcessPdf(java.io.InputStream template,
java.io.OutputStream report)
throws LicenseException,
SetupException
template - The report template.report - The stream to write the report to.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic ProcessPdf(java.io.InputStream xmlData,
java.io.InputStream template,
java.io.OutputStream report)
throws DataConnectionException,
LicenseException,
SetupException
xmlData - The xml data that will be placed into the report where there are xml elements.template - The report template.report - The stream to write the report to.DataConnectionException - thrown if there is a problem with the datasource.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic ProcessReportAPIBase duplicate(java.io.OutputStream out) throws AlreadyProcessedException, LicenseException, SetupException
duplicate in interface ProcessReportAPIBaseout - The stream to write the report to. If null will create a ByteArrayOutputStream.AlreadyProcessedException - thrown if call the process steps out of order or call ones other than data twice.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.SetupExceptionpublic static void loadFonts(int fontLevel)
public int getReportType()
getReportType in interface ProcessPdfAPIgetReportType in interface ProcessReportAPIBasepublic java.lang.String getReportTypeString()
getReportTypeString in interface ProcessReportAPIBasepublic boolean isPageBasedReport()
isPageBasedReport in interface ProcessReportAPIBaseisPageBasedReport in class ProcessReportpublic void setFontLevel(int level)
setFontLevel in interface ProcessPdfAPIlevel - The font level. Can be 0 - 2.public int getFontLevel()
getFontLevel in interface ProcessPdfAPIpublic void setCompressionLevel(int level)
setCompressionLevel in interface ProcessPdfAPIlevel - The compression level. Can be 0 - 2.public int getCompressionLevel()
getCompressionLevel in interface ProcessPdfAPIpublic void setOwnerPassword(java.lang.String password)
setOwnerPassword in interface ProcessPdfAPIpassword - The new owner password.public java.lang.String getOwnerPassword()
getOwnerPassword in interface ProcessPdfAPIpublic void setUserPassword(java.lang.String password)
setUserPassword in interface ProcessPdfAPIpassword - The new user password.public java.lang.String getUserPassword()
getUserPassword in interface ProcessPdfAPIpublic void setSecurity(int mode)
setSecurity in interface ProcessPdfAPImode - Set to a bitmask of the ALLOW_* final ints.public int getSecurity()
getSecurity in interface ProcessPdfAPIpublic void setKeyLength(int len)
setKeyLength in interface ProcessPdfAPIlen - Must be set to 40 or 128.public int getKeyLength()
getKeyLength in interface ProcessPdfAPIpublic boolean isPdfA()
isPdfA in interface ProcessPdfAPIpublic void setPdfA(boolean pdfaMode)
setPdfA in interface ProcessPdfAPIpdfaMode - true if build a PDF/A-1b file.public java.lang.String getPdfVersion()
getPdfVersion in interface ProcessPdfAPIpublic void setPdfVersion(java.lang.String version)
setPdfVersion in interface ProcessPdfAPIversion - the PDF version number used to create the file.public net.windward.document.Document getDocument()
Copyright © 2020 Windward Studios - All Rights Reserved. We are java reporting and document generation software