Interface IPdfDrawer
-
- All Known Implementing Classes:
PdfDrawer
public interface IPdfDrawer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckOpenPages()voidcloseContentStream()voidcloseTemplate()voiddrawBooleanBox(java.util.List<java.lang.String> values, java.lang.String text, int x, int y)voiddrawBooleanField(PdfField field)voiddrawDataGroupField(PdfField field)voiddrawEnumerationField(PdfField field)voiddrawI18nDividerField(PdfField field)voiddrawLine(int x, int y, int fieldPosY, int width, int lineCounter, float strokeWidth, java.awt.Color color)voiddrawMultiChoiceField(PdfField field)voiddrawPageNumber()booleandrawSelectionButton(java.util.List<java.lang.String> values, java.lang.String choice, int x, int y, FieldType fieldType)voiddrawStroke(int x, int y, int fieldPosY, int width, int lineCounter, float strokeWidth)voiddrawTextField(PdfField field)voiddrawTitleField(PdfField field)voidnewPage()voidsetTemplatePdf(org.apache.pdfbox.pdmodel.PDDocument pdf)voidsetupDrawer(org.apache.pdfbox.pdmodel.PDDocument pdf, PdfResource pdfResource)voidwriteLabel(org.apache.pdfbox.pdmodel.font.PDType0Font font, int fontSize, int x, int y, java.lang.String text, java.awt.Color color)voidwriteString(org.apache.pdfbox.pdmodel.font.PDType0Font font, int fontSize, int x, int y, java.lang.String text, java.awt.Color color)
-
-
-
Method Detail
-
setupDrawer
void setupDrawer(org.apache.pdfbox.pdmodel.PDDocument pdf, PdfResource pdfResource)
-
setTemplatePdf
void setTemplatePdf(org.apache.pdfbox.pdmodel.PDDocument pdf)
-
closeTemplate
void closeTemplate() throws java.io.IOException- Throws:
java.io.IOException
-
newPage
void newPage() throws java.io.IOException- Throws:
java.io.IOException
-
checkOpenPages
void checkOpenPages() throws java.io.IOException- Throws:
java.io.IOException
-
closeContentStream
void closeContentStream() throws java.io.IOException- Throws:
java.io.IOException
-
drawTitleField
void drawTitleField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawDataGroupField
void drawDataGroupField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawTextField
void drawTextField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawI18nDividerField
void drawI18nDividerField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawBooleanField
void drawBooleanField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawEnumerationField
void drawEnumerationField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawMultiChoiceField
void drawMultiChoiceField(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
drawPageNumber
void drawPageNumber() throws java.io.IOException- Throws:
java.io.IOException
-
drawBooleanBox
void drawBooleanBox(java.util.List<java.lang.String> values, java.lang.String text, int x, int y) throws java.io.IOException- Throws:
java.io.IOException
-
drawSelectionButton
boolean drawSelectionButton(java.util.List<java.lang.String> values, java.lang.String choice, int x, int y, FieldType fieldType) throws java.io.IOException- Throws:
java.io.IOException
-
drawLine
void drawLine(int x, int y, int fieldPosY, int width, int lineCounter, float strokeWidth, java.awt.Color color) throws java.io.IOException- Throws:
java.io.IOException
-
writeString
void writeString(org.apache.pdfbox.pdmodel.font.PDType0Font font, int fontSize, int x, int y, java.lang.String text, java.awt.Color color) throws java.io.IOException- Throws:
java.io.IOException
-
writeLabel
void writeLabel(org.apache.pdfbox.pdmodel.font.PDType0Font font, int fontSize, int x, int y, java.lang.String text, java.awt.Color color) throws java.io.IOException- Throws:
java.io.IOException
-
drawStroke
void drawStroke(int x, int y, int fieldPosY, int width, int lineCounter, float strokeWidth) throws java.io.IOException- Throws:
java.io.IOException
-
-