Package net.sf.jasperreports.pdf.classic
Class ClassicPdfProducer
java.lang.Object
net.sf.jasperreports.pdf.classic.ClassicPdfProducer
- All Implemented Interfaces:
PdfProducer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe language of PDF the document, used for glyph substitution when Apache FOP is present and thePROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLEDproperty is set.static final StringFlag that determines whether glyph substitution based on Apache FOP is enabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createCheckField(float llx, float lly, float urx, float ury, String fieldName, String onValue) createChunk(String text, Map<AttributedCharacterIterator.Attribute, Object> attributes, Locale locale) createChunk(PdfImage imageContainer) createComboField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices) createDocument(PrintPageFormat pageFormat) createImage(byte[] data, boolean verify) createListField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices) createPhrase(PdfChunk chunk) createTextField(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) drawImage(JRPrintImage image, Graphics2DRenderable renderer, boolean forceSvgShapes, double renderWidth, double renderHeight) voidendPage()com.lowagie.text.FontgetFont(Map<AttributedCharacterIterator.Attribute, Object> attributes, Locale locale) com.lowagie.text.pdf.PdfContentBytecom.lowagie.text.pdf.PdfWritergetRadioField(float llx, float lly, float urx, float ury, String fieldName, String onValue) protected com.lowagie.text.pdf.PdfFormFieldgetRadioGroup(com.lowagie.text.pdf.RadioCheckField radioCheckField) getTextRenderer(JRPrintText text, JRStyledText styledText, Locale textLocale, boolean awtIgnoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine) Deprecated.getTextRenderer(PdfTextRendererContext textContext) voidvoidnewPage()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) void
-
Field Details
-
PROPERTY_FOP_GLYPH_SUBSTITUTION_ENABLED
Flag that determines whether glyph substitution based on Apache FOP is enabled.- See Also:
-
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.- See Also:
-
-
Constructor Details
-
ClassicPdfProducer
-
-
Method Details
-
getContext
- Specified by:
getContextin interfacePdfProducer
-
createDocument
- Specified by:
createDocumentin interfacePdfProducer
-
setDocumentProperties
protected void setDocumentProperties(com.lowagie.text.Document pdfDocument) -
createWriter
- Specified by:
createWriterin interfacePdfProducer- Throws:
JRException
-
getPdfWriter
public com.lowagie.text.pdf.PdfWriter getPdfWriter() -
setTagged
public void setTagged()- Specified by:
setTaggedin interfacePdfProducer
-
createPdfContent
- Specified by:
createPdfContentin interfacePdfProducer
-
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
- Specified by:
setPageSizein interfacePdfProducer
-
endPage
public void endPage()- Specified by:
endPagein interfacePdfProducer
-
close
public void close()- Specified by:
closein interfacePdfProducer
-
getTextRenderer
- 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
- 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
- Specified by:
createChunkin interfacePdfProducer
-
createPhrase
- Specified by:
createPhrasein interfacePdfProducer
-
createPhrase
- Specified by:
createPhrasein interfacePdfProducer
-
createTextField
- 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
-
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
- Specified by:
getRootOutlinein interfacePdfProducer
-
getPdfStructure
- Specified by:
getPdfStructurein interfacePdfProducer
-
getTextRenderer(PdfTextRendererContext).