Class StiPdfExportService
java.lang.Object
com.stimulsoft.report.export.service.StiExportService
com.stimulsoft.report.export.service.StiPdfExportService
Class represent export for PDF format
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanPrintScaling property shows, how Acrobat Reader must to use margins of the printer.Fields inherited from class com.stimulsoft.report.export.service.StiExportService
currentPassNumber, DATE_1900, exFile, exportedFiles, exportReport, exportSettings, maximumPassNumber, MILLISECONDS_IN_DAY, multipleFiles, ONE_HOUR, outputStream, RenderedPagesCount, statusString -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear fonts cachestatic StringconvertToEscapeSequence(String value) Convert String to Escape sequencestatic StringConvert String to Escape sequence with tabsvoidexport(StiReport report, OutputStream outputStream, StiExportSettings exportSettings) ExportStiReportvoidexportPdf(StiReport report, OutputStream outputStream, StiPdfExportSettings settings) Exports a rendered report to the pdf file.Returs service export formatintgetHatchNumber(StiHatchBrush brush) Returns number of hatch in table of hatches.booleanGets a value indicating a number of files in exported document as a result of exportintgetShadingFunctionNumber(StiColor color1, StiColor color2, boolean isGlare) Returns number of shadingFunctionArray in table of shadingFunctions.makeSignedByString(String input, boolean padding) voidPop color from stackvoidPush color to stackvoidrenderImage(StiPdfData pp, float imageResolution) Render imagevoidrenderImage(StiPdfData pp, float imageResolution, boolean forceResolutionModeAuto) Render imagevoidrenderText(StiPdfData pp) Render textvoidrenderText2(StiPdfData pp, int pageNumber) voidRender text fontvoidsetNonStrokeColor(StiColor tempColor) Stire non stroke colorvoidsetStrokeColor(StiColor tempColor) Store colorsvoidstoreHatchData(StiBrush brush) Store hatch datavoidstoreImageDataForGeom(StiImage image) voidstoreShadingData1(StiBrush brush, int pageNumber) Store brushes dataintstoreShadingData2(double x, double y, double width, double height, StiBrush brush) Store shadding dataintstoreShadingData2(double x, double y, double width, double height, StiBrush brush, float compAngle) voidwriteImageInfo2(StiPdfData pp, double imageResolutionX, double imageResolutionY) Methods inherited from class com.stimulsoft.report.export.service.StiExportService
closeProgress, export, export, export, export, getExFile, getExportedFiles, getExportSettings, getStatusString, invokeExporting, invokeExporting, invokeExporting, isStoped, processFile, sendEMail, sendEMail, setExFile, setExportReport, setExportSettings, setOutputStream, setProgress, setStatusString
-
Field Details
-
pdfFont
-
compatibleMode160
public static boolean compatibleMode160 -
printScaling
public static boolean printScalingPrintScaling property shows, how Acrobat Reader must to use margins of the printer. if true, then default settings of the Acrobat Reader will be used (usually "Fit to printer margin") else PrintScaling parameter of the pdf file will be set to None.
-
-
Constructor Details
-
StiPdfExportService
public StiPdfExportService()
-
-
Method Details
-
renderText2
- Throws:
IOException
-
getHatchNumber
Returns number of hatch in table of hatches.- Parameters:
brush-- Returns:
- Hatch number in store
-
getShadingFunctionNumber
Returns number of shadingFunctionArray in table of shadingFunctions.- Parameters:
color1-color2-isGlare-- Returns:
-
convertToEscapeSequence
Convert String to Escape sequence- Parameters:
value-- Returns:
- convertted string
-
convertToEscapeSequencePlusTabs
Convert String to Escape sequence with tabs- Parameters:
value-- Returns:
- String value with tabs
-
setStrokeColor
Store colors- Parameters:
tempColor-StiColor- Throws:
IOException
-
setNonStrokeColor
Stire non stroke color- Parameters:
tempColor-- Throws:
IOException
-
pushColorToStack
public void pushColorToStack()Push color to stack -
popColorFromStack
public void popColorFromStack()Pop color from stack -
makeSignedByString
public String makeSignedByString(String input, boolean padding) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException -
renderText
Render text- Parameters:
pp-StiPdfData- Throws:
IOException
-
renderTextFont
Render text font- Parameters:
pp-StiPdfData- Throws:
IOException
-
storeImageDataForGeom
-
renderImage
Render image- Parameters:
pp-StiPdfDataimageResolution-- Throws:
IOException
-
renderImage
public void renderImage(StiPdfData pp, float imageResolution, boolean forceResolutionModeAuto) throws IOException Render image- Parameters:
pp-StiPdfDataimageResolution-- Throws:
IOException
-
storeShadingData1
Store brushes data- Parameters:
brush-StiBrushpageNumber-
-
storeShadingData2
public int storeShadingData2(double x, double y, double width, double height, StiBrush brush, float compAngle) -
storeShadingData2
Store shadding data- Parameters:
x-y-width-height-brush-StiBrush
-
storeHatchData
Store hatch data- Parameters:
brush-StiBrush
-
getCreatorString
-
clearFontsCache
public void clearFontsCache()Clear fonts cache -
export
public void export(StiReport report, OutputStream outputStream, StiExportSettings exportSettings) throws StiException ExportStiReport- Specified by:
exportin classStiExportService- Parameters:
report-StiReportto exportoutputStream-OutputStreamfor exportexportSettings-StiExportSettings- Throws:
StiException
-
exportPdf
public void exportPdf(StiReport report, OutputStream outputStream, StiPdfExportSettings settings) throws StiException Exports a rendered report to the pdf file.- Parameters:
report- AStiReportwhich instanceof to be exported.outputStream- AOutputStreamfor the export of a document.exportSettings-StiPdfExportSettings- Throws:
StiException
-
getExportFormat
Returs service export format- Specified by:
getExportFormatin classStiExportService- Returns:
StiExportFormat
-
getMultipleFiles
public boolean getMultipleFiles()Gets a value indicating a number of files in exported document as a result of export- Specified by:
getMultipleFilesin classStiExportService- Returns:
- Support multiple files
-
renderIndicators
- Throws:
IOException
-
writeImageInfo2
public void writeImageInfo2(StiPdfData pp, double imageResolutionX, double imageResolutionY) throws IOException - Throws:
IOException
-