Package net.sf.jasperreports.pdf.common
Interface PdfProducer
-
- All Known Implementing Classes:
ClassicPdfProducer
public interface PdfProducer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description PdfImage
clipImage(PdfImage image, int clipWidth, int clipHeight, int translateX, int translateY)
void
close()
PdfRadioCheck
createCheckField(float llx, float lly, float urx, float ury, String fieldName, String onValue)
PdfTextChunk
createChunk(String text, Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
PdfChunk
createChunk(PdfImage imageContainer)
PdfTextField
createComboField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)
PdfDocument
createDocument(PrintPageFormat pageFormat)
PdfImage
createImage(byte[] loadBytesFromResource, boolean verify)
PdfTextField
createListField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)
PdfContent
createPdfContent()
PdfPhrase
createPhrase()
PdfPhrase
createPhrase(PdfChunk chunk)
PdfTextField
createTextField(float llx, float lly, float urx, float ury, String fieldName)
PdfDocumentWriter
createWriter(OutputStream os)
PdfImage
drawImage(JRPrintImage image, Graphics2DRenderable renderer, boolean forceSvgShapes, double renderWidth, double renderHeight)
void
endPage()
PdfProducerContext
getContext()
PdfContent
getPdfContent()
PdfStructure
getPdfStructure()
PdfRadioCheck
getRadioField(float llx, float lly, float urx, float ury, String fieldName, String onValue)
PdfOutlineEntry
getRootOutline()
AbstractPdfTextRenderer
getTextRenderer(JRPrintText text, JRStyledText styledText, Locale textLocale, boolean awtIgnoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
Deprecated.Replaced bygetTextRenderer(PdfTextRendererContext)
.default AbstractPdfTextRenderer
getTextRenderer(PdfTextRendererContext context)
void
initReport()
void
newPage()
void
setForceLineBreakPolicy(boolean forceLineBreakPolicy)
void
setPageSize(PrintPageFormat pageFormat, int pageWidth, int pageHeight)
void
setTagged()
-
-
-
Method Detail
-
getContext
PdfProducerContext getContext()
-
createDocument
PdfDocument createDocument(PrintPageFormat pageFormat)
-
createWriter
PdfDocumentWriter createWriter(OutputStream os) throws JRException
- Throws:
JRException
-
setTagged
void setTagged()
-
getPdfStructure
PdfStructure getPdfStructure()
-
createPdfContent
PdfContent createPdfContent()
-
getPdfContent
PdfContent getPdfContent()
-
initReport
void initReport()
-
setForceLineBreakPolicy
void setForceLineBreakPolicy(boolean forceLineBreakPolicy)
-
newPage
void newPage()
-
setPageSize
void setPageSize(PrintPageFormat pageFormat, int pageWidth, int pageHeight)
-
endPage
void endPage()
-
getTextRenderer
default AbstractPdfTextRenderer getTextRenderer(PdfTextRendererContext context)
-
getTextRenderer
AbstractPdfTextRenderer getTextRenderer(JRPrintText text, JRStyledText styledText, Locale textLocale, boolean awtIgnoreMissingFont, boolean defaultIndentFirstLine, boolean defaultJustifyLastLine)
Deprecated.Replaced bygetTextRenderer(PdfTextRendererContext)
.
-
createImage
PdfImage createImage(byte[] loadBytesFromResource, boolean verify) throws IOException, JRException
- Throws:
IOException
JRException
-
clipImage
PdfImage clipImage(PdfImage image, int clipWidth, int clipHeight, int translateX, int translateY) throws JRException
- Throws:
JRException
-
drawImage
PdfImage drawImage(JRPrintImage image, Graphics2DRenderable renderer, boolean forceSvgShapes, double renderWidth, double renderHeight) throws JRException, IOException
- Throws:
JRException
IOException
-
createChunk
PdfTextChunk createChunk(String text, Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
-
createPhrase
PdfPhrase createPhrase()
-
createTextField
PdfTextField createTextField(float llx, float lly, float urx, float ury, String fieldName)
-
createComboField
PdfTextField createComboField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)
-
createListField
PdfTextField createListField(float llx, float lly, float urx, float ury, String fieldName, String value, String[] choices)
-
createCheckField
PdfRadioCheck createCheckField(float llx, float lly, float urx, float ury, String fieldName, String onValue)
-
getRadioField
PdfRadioCheck getRadioField(float llx, float lly, float urx, float ury, String fieldName, String onValue)
-
getRootOutline
PdfOutlineEntry getRootOutline()
-
close
void close()
-
-