Class ClassicPdfProducer
- java.lang.Object
-
- net.sf.jasperreports.export.pdf.classic.ClassicPdfProducer
-
- All Implemented Interfaces:
PdfProducer
public class ClassicPdfProducer extends Object implements PdfProducer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_DOCUMENT_LANGUAGEThe language of PDF the document, used for glyph substitution when Apache FOP is present and thePROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLEDproperty is set.static StringPROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLEDFlag that determines whether glyph substitution based on Apache FOP is enabled.
-
Constructor Summary
Constructors Constructor Description ClassicPdfProducer(PdfProducerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PdfImageclipImage(PdfImage image, int clipWidth, int clipHeight, int translateX, int translateY)voidclose()PdfRadioCheckcreateCheckField(float llx, float lly, float urx, float ury, String fieldName, String onValue)PdfTextChunkcreateChunk(String text, Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)PdfChunkcreateChunk(PdfImage imageContainer)PdfTextFieldcreateComboField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)PdfDocumentcreateDocument(PrintPageFormat pageFormat)PdfImagecreateImage(byte[] data, boolean verify)PdfTextFieldcreateListField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)PdfContentcreatePdfContent()PdfPhrasecreatePhrase()PdfPhrasecreatePhrase(PdfChunk chunk)PdfTextFieldcreateTextField(float llx, float lly, float urx, float ury, String fieldName)protected com.lowagie.text.pdf.TextFieldcreateTextFormField(float llx, float lly, float urx, float ury, String fieldName)PdfDocumentWritercreateWriter(OutputStream os)PdfImagedrawImage(JRPrintImage image, Graphics2DRenderable renderer, boolean forceSvgShapes, double renderWidth, double renderHeight)voidendPage()PdfProducerContextgetContext()com.lowagie.text.FontgetFont(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)PdfContentgetPdfContent()com.lowagie.text.pdf.PdfContentBytegetPdfContentByte()PdfStructuregetPdfStructure()com.lowagie.text.pdf.PdfWritergetPdfWriter()PdfRadioCheckgetRadioField(float llx, float lly, float urx, float ury, String fieldName, String onValue)protected com.lowagie.text.pdf.PdfFormFieldgetRadioGroup(com.lowagie.text.pdf.RadioCheckField radioCheckField)PdfOutlineEntrygetRootOutline()AbstractPdfTextRenderergetTextRenderer(JRPrintText text, JRStyledText styledText, Locale textLocale, boolean awtIgnoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)Deprecated.Replaced bygetTextRenderer(PdfTextRendererContext).AbstractPdfTextRenderergetTextRenderer(PdfTextRendererContext textContext)voidinitReport()voidnewPage()protected voidsetDocumentProperties(com.lowagie.text.Document pdfDocument)protected voidsetFieldChoices(com.lowagie.text.pdf.TextField textField, String value, String[] choices)voidsetForceLineBreakPolicy(boolean forceLineBreakPolicy)voidsetPageSize(PrintPageFormat pageFormat, int pageWidth, int pageHeight)voidsetTagged()
-
-
-
Field Detail
-
PROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLED
public static final String PROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLED
Flag that determines whether glyph substitution based on Apache FOP is enabled.
-
PROPERTY_DOCUMENT_LANGUAGE
public static final String PROPERTY_DOCUMENT_LANGUAGE
The language of PDF the document, used for glyph substitution when Apache FOP is present and thePROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLEDproperty is set.
-
-
Constructor Detail
-
ClassicPdfProducer
public ClassicPdfProducer(PdfProducerContext context)
-
-
Method Detail
-
getContext
public PdfProducerContext getContext()
- Specified by:
getContextin interfacePdfProducer
-
createDocument
public PdfDocument createDocument(PrintPageFormat pageFormat)
- Specified by:
createDocumentin interfacePdfProducer
-
setDocumentProperties
protected void setDocumentProperties(com.lowagie.text.Document pdfDocument)
-
createWriter
public PdfDocumentWriter createWriter(OutputStream os) throws JRException
- Specified by:
createWriterin interfacePdfProducer- Throws:
JRException
-
getPdfWriter
public com.lowagie.text.pdf.PdfWriter getPdfWriter()
-
setTagged
public void setTagged()
- Specified by:
setTaggedin interfacePdfProducer
-
createPdfContent
public PdfContent createPdfContent()
- Specified by:
createPdfContentin interfacePdfProducer
-
getPdfContent
public PdfContent getPdfContent()
- Specified by:
getPdfContentin interfacePdfProducer
-
getPdfContentByte
public com.lowagie.text.pdf.PdfContentByte getPdfContentByte()
-
initReport
public void initReport()
- Specified by:
initReportin interfacePdfProducer
-
setForceLineBreakPolicy
public void setForceLineBreakPolicy(boolean forceLineBreakPolicy)
- Specified by:
setForceLineBreakPolicyin interfacePdfProducer
-
newPage
public void newPage()
- Specified by:
newPagein interfacePdfProducer
-
setPageSize
public void setPageSize(PrintPageFormat pageFormat, int pageWidth, int pageHeight)
- Specified by:
setPageSizein interfacePdfProducer
-
endPage
public void endPage()
- Specified by:
endPagein interfacePdfProducer
-
close
public void close()
- Specified by:
closein interfacePdfProducer
-
getTextRenderer
public AbstractPdfTextRenderer getTextRenderer(PdfTextRendererContext textContext)
- Specified by:
getTextRendererin interfacePdfProducer
-
getTextRenderer
public AbstractPdfTextRenderer getTextRenderer(JRPrintText text, JRStyledText styledText, Locale textLocale, boolean awtIgnoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
Deprecated.Replaced bygetTextRenderer(PdfTextRendererContext).- Specified by:
getTextRendererin interfacePdfProducer
-
createImage
public PdfImage createImage(byte[] data, boolean verify) throws IOException, JRException
- Specified by:
createImagein interfacePdfProducer- Throws:
IOExceptionJRException
-
drawImage
public PdfImage drawImage(JRPrintImage image, Graphics2DRenderable renderer, boolean forceSvgShapes, double renderWidth, double renderHeight) throws JRException, IOException
- Specified by:
drawImagein interfacePdfProducer- Throws:
JRExceptionIOException
-
clipImage
public PdfImage clipImage(PdfImage image, int clipWidth, int clipHeight, int translateX, int translateY) throws JRException
- Specified by:
clipImagein interfacePdfProducer- Throws:
JRException
-
getFont
public com.lowagie.text.Font getFont(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
-
createChunk
public PdfTextChunk createChunk(String text, Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
- Specified by:
createChunkin interfacePdfProducer
-
createChunk
public PdfChunk createChunk(PdfImage imageContainer)
- Specified by:
createChunkin interfacePdfProducer
-
createPhrase
public PdfPhrase createPhrase()
- Specified by:
createPhrasein interfacePdfProducer
-
createPhrase
public PdfPhrase createPhrase(PdfChunk chunk)
- Specified by:
createPhrasein interfacePdfProducer
-
createTextField
public PdfTextField createTextField(float llx, float lly, float urx, float ury, String fieldName)
- Specified by:
createTextFieldin interfacePdfProducer
-
createTextFormField
protected com.lowagie.text.pdf.TextField createTextFormField(float llx, float lly, float urx, float ury, String fieldName)
-
createComboField
public PdfTextField createComboField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)
- Specified by:
createComboFieldin interfacePdfProducer
-
setFieldChoices
protected void setFieldChoices(com.lowagie.text.pdf.TextField textField, String value, String[] choices)
-
createListField
public PdfTextField createListField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)
- Specified by:
createListFieldin interfacePdfProducer
-
createCheckField
public PdfRadioCheck createCheckField(float llx, float lly, float urx, float ury, String fieldName, String onValue)
- Specified by:
createCheckFieldin interfacePdfProducer
-
getRadioField
public PdfRadioCheck getRadioField(float llx, float lly, float urx, float ury, String fieldName, String onValue)
- Specified by:
getRadioFieldin interfacePdfProducer
-
getRadioGroup
protected com.lowagie.text.pdf.PdfFormField getRadioGroup(com.lowagie.text.pdf.RadioCheckField radioCheckField)
-
getRootOutline
public PdfOutlineEntry getRootOutline()
- Specified by:
getRootOutlinein interfacePdfProducer
-
getPdfStructure
public PdfStructure getPdfStructure()
- Specified by:
getPdfStructurein interfacePdfProducer
-
-