public class PDFPageWithRichText extends PDFPage
PDFPage.BoxTextContent, PDFPage.FontAndSize
A4_LONGSIDE_IN_MM, A4_SHORTSIDE_IN_MM, TEXTTYPE_BULLET_L1, TEXTTYPE_BULLET_L2, TEXTTYPE_BULLET_L3, TEXTTYPE_LABEL, TEXTTYPE_PARAGRAPH_HEADER, TEXTTYPE_PLAIN, TEXTTYPE_PLAIN_BOLD, TEXTTYPE_PLAIN_BOLD_ITALIC, TEXTTYPE_PLAIN_ITALIC, TEXTTYPE_SECTION_HEADER, TEXTTYPE_TITLE
Constructor and Description |
---|
PDFPageWithRichText(boolean portrait,
float leftrightmargin,
float topbottommargin)
creates a PDF page allowing rich text in default A4 format.
|
PDFPageWithRichText(boolean portrait,
float leftrightmargin,
float topbottommargin,
boolean topatzero)
creates a PDF page with Rich Text in A4
|
PDFPageWithRichText(float customwidth,
float customheight,
float leftrightmargin,
float topbottommargin,
boolean topatzero)
creates a PDF Page with Rich text of custom dimensions
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<PDFPage.BoxTextContent> |
drawRichTextInBox(float left,
float top,
float right,
java.lang.String richtext)
draw rich text in a box
|
float |
drawRichTextInBoxAndGetHeight(float left,
float top,
float right,
java.lang.String richtext)
draw rich text in a box
|
addHeader, calculateBoxAndMaybeWriteText, calculateBoxAndMaybeWriteText, calculateBoxAndMaybeWriteText, calculateBoxAndMaybeWriteText, calculateTextSize, closepage, drawBox, drawBox, drawBox, drawBoxWithLineNumber, drawBoxWithLineNumber, drawBoxWithWidthAndHeight, drawBoxWithWidthAndHeight, drawCalculatedText, drawCalculatedText, drawCenteredTextAt, drawCircle, drawFixWidthRightAlignedTextAt, drawFreeFontTextAt, drawImageAt, drawImageAt, drawImageInsideBox, drawLeftPaddedTextAt, drawLeftPaddedTextAt, drawLeftPaddedTextAt, drawLine, drawParagraphHeaderAt, drawSimpleTextAt, drawSimpleTextAt, drawTextInBox, drawTextInBox, drawTextInBox, drawTextWidget, drawTextWithLabelInBox, fillBox, fillBoxWithLineNumber, getHeight, getNumberOfLinesAvailableForParagraph, getPageBottom, getPageIndex, getPageLeft, getPageNumber, getPageRight, getPagetop, getParagraphHeaderTextWidth, getTextSize, getTextWidth, getTextWidth, getWidth, initialize, isTopAtZero, isValid, layoutPages, print, remove, securedShowText, writeAsMuchTextAsPossible, writeAsMuchTextAsPossible
getParent, setParentPDFDocument
public PDFPageWithRichText(boolean portrait, float leftrightmargin, float topbottommargin) throws java.io.IOException
portrait
- if true, page is portrait, if false, page is landscapeleftrightmargin
- margin at left and right in mmtopbottommargin
- margin at top and bottom in mmjava.io.IOException
public PDFPageWithRichText(boolean portrait, float leftrightmargin, float topbottommargin, boolean topatzero) throws java.io.IOException
portrait
- if true, page is portrait, if false, page is landscapeleftrightmargin
- margin at left and right in mmtopbottommargin
- margin at top and bottom in mmtopatzeroif
- true, top coordinates are zero (natural), if false, top is at bottom (PDF)java.io.IOException
- if any issue related to file system happens creating the PDF pagepublic PDFPageWithRichText(float customwidth, float customheight, float leftrightmargin, float topbottommargin, boolean topatzero) throws java.io.IOException
customwidth
- custom width in mmcustomheight
- custom height in mmleftrightmargin
- margin at left and right in mmtopbottommargin
- margin at top and bottom in mmtopatzero
- if true, top coordinates are zero (natural), if false, top is at bottom (PDF)java.io.IOException
- if any issue related to file system happens creating the PDF pagepublic java.util.ArrayList<PDFPage.BoxTextContent> drawRichTextInBox(float left, float top, float right, java.lang.String richtext) throws java.io.IOException
left
- the left limit in mm (note: margins are inside)top
- the top of the box in mm (note: margins are inside)right
- the right limit in mm (note: margins are inside)richtext
- the Open Lowcode richtext to printjava.io.IOException
- if any issue related to file system happens creating the PDF pagepublic float drawRichTextInBoxAndGetHeight(float left, float top, float right, java.lang.String richtext) throws java.io.IOException
left
- the left limit in mm (note: margins are inside)top
- the top of the box in mm (note: margins are inside)right
- the right limit in mm (note: margins are inside)richtext
- the Open Lowcode richtext to printjava.io.IOException
- if any issue related to file system happens creating the PDF page