com.stimulsoft.report.export.service
Class StiPdfExportService

java.lang.Object
  extended by com.stimulsoft.report.export.service.StiExportService
      extended by com.stimulsoft.report.export.service.StiPdfExportService

public final class StiPdfExportService
extends StiExportService

Class represent export for PDF format Copyright Stimulsoft


Field Summary
static boolean compatibleMode160
           
 PdfFonts pdfFont
           
static boolean printScaling
          PrintScaling 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, maximumPassNumber, MILLISECONDS_IN_DAY, ONE_HOUR
 
Constructor Summary
StiPdfExportService()
           
 
Method Summary
 void clearFontsCache()
          Clear fonts cache
static java.lang.String convertToEscapeSequence(java.lang.String value)
          Convert String to Escape sequence
static java.lang.String convertToEscapeSequencePlusTabs(java.lang.String value)
          Convert String to Escape sequence with tabs
 void export(StiReport report, java.io.OutputStream outputStream, StiExportSettings exportSettings)
          Export StiReport
 void exportPdf(StiReport report, java.io.OutputStream outputStream, StiPdfExportSettings settings)
          Exports a rendered report to the pdf file.
 StiExportFormat getExportFormat()
          Returs service export format
 int getHatchNumber(StiHatchBrush brush)
          Returns number of hatch in table of hatches.
 boolean getMultipleFiles()
          Gets a value indicating a number of files in exported document as a result of export
 java.lang.String makeSignedByString(java.lang.String input, boolean padding)
           
 void popColorFromStack()
          Pop color from stack
 void pushColorToStack()
          Push color to stack
 void renderImage(StiPdfData pp, float imageResolution)
          Render image
 void renderText(StiPdfData pp)
          Render text
 void renderText2(StiPdfData pp, int pageNumber)
           
 void renderTextFont(StiPdfData pp)
          Render text font
 void setNonStrokeColor(StiColor tempColor)
          Stire non stroke color
 void setStrokeColor(StiColor tempColor)
          Store colors
 void storeHatchData(StiBrush brush)
          Store hatch data
 void storeImageDataForGeom(StiImage image)
           
 void storeShadingData1(StiBrush brush, int pageNumber)
          Store brushes data
 int storeShadingData2(double x, double y, double width, double height, StiBrush brush)
          Store shadding data
 
Methods inherited from class com.stimulsoft.report.export.service.StiExportService
export, export, export, export, getExFile, getExportedFiles, getExportSettings, getStatusString, invokeExporting, invokeExporting, invokeExporting, isStoped, setExFile, setExportReport, setExportSettings, setOutputStream, setProgress, setStatusString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pdfFont

public PdfFonts pdfFont

compatibleMode160

public static boolean compatibleMode160

printScaling

public static boolean printScaling
PrintScaling 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 Detail

StiPdfExportService

public StiPdfExportService()
Method Detail

renderText2

public void renderText2(StiPdfData pp,
                        int pageNumber)
                 throws java.io.IOException
Throws:
java.io.IOException

getHatchNumber

public int getHatchNumber(StiHatchBrush brush)
Returns number of hatch in table of hatches.

Parameters:
brush -
Returns:
Hatch number in store

convertToEscapeSequence

public static java.lang.String convertToEscapeSequence(java.lang.String value)
Convert String to Escape sequence

Parameters:
value -
Returns:
convertted string

convertToEscapeSequencePlusTabs

public static java.lang.String convertToEscapeSequencePlusTabs(java.lang.String value)
Convert String to Escape sequence with tabs

Parameters:
value -
Returns:
String value with tabs

setStrokeColor

public void setStrokeColor(StiColor tempColor)
                    throws java.io.IOException
Store colors

Parameters:
tempColor - StiColor
Throws:
java.io.IOException

setNonStrokeColor

public void setNonStrokeColor(StiColor tempColor)
                       throws java.io.IOException
Stire non stroke color

Parameters:
tempColor -
Throws:
java.io.IOException

pushColorToStack

public void pushColorToStack()
Push color to stack


popColorFromStack

public void popColorFromStack()
Pop color from stack


makeSignedByString

public java.lang.String makeSignedByString(java.lang.String input,
                                           boolean padding)
                                    throws java.security.InvalidKeyException,
                                           java.security.NoSuchAlgorithmException,
                                           java.security.NoSuchProviderException,
                                           javax.crypto.NoSuchPaddingException,
                                           java.security.InvalidAlgorithmParameterException,
                                           javax.crypto.IllegalBlockSizeException,
                                           javax.crypto.BadPaddingException
Throws:
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
javax.crypto.NoSuchPaddingException
java.security.InvalidAlgorithmParameterException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

renderText

public void renderText(StiPdfData pp)
                throws java.io.IOException
Render text

Parameters:
pp - StiPdfData
Throws:
java.io.IOException

renderTextFont

public void renderTextFont(StiPdfData pp)
                    throws java.io.IOException
Render text font

Parameters:
pp - StiPdfData
Throws:
java.io.IOException

storeImageDataForGeom

public void storeImageDataForGeom(StiImage image)

renderImage

public void renderImage(StiPdfData pp,
                        float imageResolution)
                 throws java.io.IOException
Render image

Parameters:
pp - StiPdfData
imageResolution -
Throws:
java.io.IOException

storeShadingData1

public void storeShadingData1(StiBrush brush,
                              int pageNumber)
Store brushes data

Parameters:
brush - StiBrush
pageNumber -

storeShadingData2

public int storeShadingData2(double x,
                             double y,
                             double width,
                             double height,
                             StiBrush brush)
Store shadding data

Parameters:
x -
y -
width -
height -
brush - StiBrush

storeHatchData

public void storeHatchData(StiBrush brush)
Store hatch data

Parameters:
brush - StiBrush

clearFontsCache

public void clearFontsCache()
Clear fonts cache


export

public void export(StiReport report,
                   java.io.OutputStream outputStream,
                   StiExportSettings exportSettings)
            throws StiException
Export StiReport

Specified by:
export in class StiExportService
Parameters:
report - StiReport to export
outputStream - OutputStream for export
exportSettings - StiExportSettings
Throws:
StiException

exportPdf

public void exportPdf(StiReport report,
                      java.io.OutputStream outputStream,
                      StiPdfExportSettings settings)
               throws StiException
Exports a rendered report to the pdf file.

Parameters:
report - A StiReport which instanceof to be exported.
outputStream - A OutputStream for the export of a document.
exportSettings - StiPdfExportSettings
Throws:
StiException

getExportFormat

public StiExportFormat getExportFormat()
Returs service export format

Specified by:
getExportFormat in class StiExportService
Returns:
StiExportFormat

getMultipleFiles

public boolean getMultipleFiles()
Gets a value indicating a number of files in exported document as a result of export

Specified by:
getMultipleFiles in class StiExportService
Returns:
Support multiple files