public class ProcessImage extends ProcessGraphics2D
ProcessReport.CleanDatasource, ProcessReport.DrillDownTemplate, ProcessReport.PhoneHomeStats
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_XLSX
CHARSET_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 |
---|
ProcessImage(java.io.InputStream template,
int imageFormat)
Deprecated.
use ProcessImage(InputStream template, String imageFormat) instead.
|
ProcessImage(java.io.InputStream template,
int imageFormat,
int dpi)
Deprecated.
use ProcessImage(InputStream template, String imageFormat, int dpi) instead.
|
ProcessImage(java.io.InputStream template,
java.lang.String imageFormat)
Create a ProcessImage object with the passed in template.
|
ProcessImage(java.io.InputStream template,
java.lang.String imageFormat,
int dpi)
Create a ProcessImage object with the passed in template.
|
Modifier and Type | Method and Description |
---|---|
ProcessReportAPIBase |
duplicate(java.io.OutputStream out)
Unsupported for images as this writes an array of page objects, not a single output stream.
|
int |
getDpi()
The Dots Per Inch to render the bitmaps at.
|
int |
getImageFormat()
The bitmap format for the pages.
|
java.util.List<byte[]> |
getPages()
Get the generated images, each page is a distinct bitmap or XML (SVG).
|
int |
getReportType()
Get the report format of the output stream.
|
java.lang.String |
getReportTypeString()
Get the report format of the output as a string.
|
boolean |
isPageBasedReport()
true if the generated report is page based.
|
void |
setEmbededDataMode(int mode)
Set the embed data setting.
|
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, getOutputBuilder, 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
public ProcessImage(java.io.InputStream template, java.lang.String imageFormat, int dpi) throws LicenseException, SetupException
template
- The report template.imageFormat
- The bitmap format for the pages. One of the following values: "bmp", "emf", "emz", gif",
"jpg", "png", "tif", "wmf", or "wmz".dpi
- The Dots Per Inch to render the bitmaps at.LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
public ProcessImage(java.io.InputStream template, java.lang.String imageFormat) throws LicenseException, SetupException
template
- The report template.imageFormat
- The bitmap format for the pages. One of the following values: "eps" or "svg".LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
public ProcessImage(java.io.InputStream template, int imageFormat, int dpi) throws LicenseException, SetupException
template
- The report template.imageFormat
- The bitmap format for the pages. One of the HtmlImage.BITMAP_* values.dpi
- The Dots Per Inch to render the bitmaps at.LicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
public ProcessImage(java.io.InputStream template, int imageFormat) throws LicenseException, SetupException
template
- The report template.imageFormat
- The bitmap format for the pages. One of the HtmlImage.RENDER_* values. SVG/EPS onlyLicenseException
- thrown if the license licenseKey check fails. The message will list the license check that failed.SetupException
public ProcessReportAPIBase duplicate(java.io.OutputStream out) throws AlreadyProcessedException, LicenseException, SetupException
out
- 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 called too often for the license type.SetupException
public int getImageFormat()
public int getDpi()
public java.util.List<byte[]> getPages()
public int getReportType()
public java.lang.String getReportTypeString()
public boolean isPageBasedReport()
isPageBasedReport
in interface ProcessReportAPIBase
isPageBasedReport
in class ProcessReport
public void setEmbededDataMode(int mode)
mode
- the embed data setting. You can only pass a 0.Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software