PDFTemplateBuilder. This builds the signature PDF but doesn't keep the
elements, these are kept in its PDF template structure.
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private final PDFTemplateStructure |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | closeTemplate(PDDocument
the document to be closed template)Implements org. Closes template |
| public void | createAcroForm(PDDocument
the document the acroform is added to template)Implements org. Creates Acro forms in the template. |
| public void | createAcroFormDictionary(PDAcroForm
the acroform the signature field is added to acroForm, PDSignatureField the signature filed to be added signatureField)Implements org. Create AcroForm Dictionary. |
| public void | createAffineTransform(AffineTransform
the affine transformation to be used affineTransform)Implements org. In order to create Affine Transform, using parameters. |
| public void | createAppearanceDictionary(PDFormXObject
form object to be used for the appearance stream holderForml, PDSignatureField the signature field the appearance stream is added to signatureField)Implements org. Creates appearance dictionary |
| public void | createBackgroundLayerForm(PDResources
resources to be used for the form object innerFormResource, PDRectangle the bounding box of the form object bbox)Implements org. Creates the background layer form (n0). |
| public void | createFormatterRectangle(int[]
the parameters of the formatter rectangle params)Implements org. An array of four numbers in the form coordinate system, giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject’s bounding box. |
| public void | createHolderForm(PDResources
resources to be used for the form object holderFormResources, PDStream the stream to be used for the form object holderFormStream, PDRectangle the bounding box of the form object bbox)Implements org. Creates Form |
| public void | createHolderFormResources()
Implements org. Creates resources of form |
| public void | createHolderFormStream(PDDocument
the document to be used to create the new stream template)Implements org. Create a holder for the form stream. |
| public void | createImageForm(PDResources
the resources of the form object imageFormResources, PDResources the resources the image object is added innerFormResource, PDStream the stream of the form object imageFormStream, PDRectangle the bounding box of the form object bbox, AffineTransform the matrix of the form object at, PDImageXObject the image object to be used for the form object img)Implements org. Creates Image form |
| public void | createImageFormResources()
Implements org. Create resource of image form |
| public void | createImageFormStream(PDDocument
the document to be used to create the new stream template)Implements org. Create image form stream. |
| public void | createInnerForm(PDResources
resources to be used for the inner form object innerFormResources, PDStream the stream to be used for the inner form object innerFormStream, PDRectangle the bounding box of the inner form object bbox)Implements org. Creates InnerForm. |
| public void | createInnerFormResource()
Implements org. Creates InnerForm |
| public void | createInnerFormStream(PDDocument
the document to be used to create the new stream template)Implements org. Create a holder for the inner form stream. |
| public void | createPage(PDVisibleSignDesigner
page properties properties)Implements org. Creates specified size page. |
| public void | createProcSetArray()
Implements org. Creates procSetArray of PDF,Text,ImageB,ImageC,ImageI. |
| public void | createSignature(PDSignatureField
the signature filed the signatur is added to pdSignatureField, PDPage the page the widgt ist added to page, String the name of the person or authority signing the document. According to the PDF specification,
this value should be used only when it is not possible to extract the name from the signature. signerName)Implements org. Creates the signature with the given name and assign it to the signature field parameter and assign the page parameter to the widget. |
| public void | createSignatureField(PDAcroForm
the acroform the signature is added to acroForm)Implements org. Creates signature fields. |
| public void | createSignatureImage(PDDocument
the document the image is added to template, BufferedImage to imager to be added image)Implements org. Creates signature image. |
| public void | createSignatureRectangle(PDSignatureField
the signature field the rectangle is added to signatureField, PDVisibleSignDesigner the properties used to create the rectangle properties)Implements org. Creates SignatureRectangle. |
| public void | createTemplate(PDPage
the page to be added page)Implements org. Creates a PDDocument and adds the page parameter to it and keeps this as a template in the PDF template Structure. |
| public void | createVisualSignature(PDDocument
the document holding the visible signatue template)Implements org. just to create visible signature |
| public void | createWidgetDictionary(PDSignatureField
the field to be used as widget dictionary signatureField, PDResources the resources to be added to the widget dictionary holderFormResources)Implements org. adds Widget Dictionary |
| public PDFTemplateStructure | getStructure()
Implements org. Resturns the PDF template Structure |
| public void | injectAppearanceStreams(PDStream
the holder form stream holderFormStream, PDStream the inner form stream innerFormStream, PDStream the image form stream imageFormStream, COSName the name of the form image to be used imageFormName, COSName the name of the image to be used imageName, COSName the name of the form object to be used innerFormName, PDVisibleSignDesigner properties to be used to create the appearance stream properties)Implements org. injects appearance streams |
| public void | injectProcSetArray(PDFormXObject
form object the given proc set array is added to innerForm, PDPage page the given proc set array is added to page, PDResources inner form resources the given proc set array is added to innerFormResources, PDResources inner image resources the given proc set array is added to imageFormResources, PDResources holder form resources the given proc set array is added to holderFormResources, COSArray the pro set array to be added procSet)Implements org. Inject procSetArray |
| public void | insertInnerFormToHolderResources(PDFormXObject
the form object to be inserted innerForm, PDResources resources the fomr object is added to holderFormResources)
Insert given from as inner form. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| pdfStructure | back to summary |
|---|---|
| private final PDFTemplateStructure pdfStructure | |
| PDVisibleSigBuilder | back to summary |
|---|---|
| public PDVisibleSigBuilder() Constructor, creates PDF template structure. | |
| appendRawCommands | back to summary |
|---|---|
| public void appendRawCommands(OutputStream os, String commands) throws IOException | |
| closeTemplate | back to summary |
|---|---|
| public void closeTemplate(PDDocument template) throws IOException Implements org. Doc from org. Closes template
| |
| createAcroForm | back to summary |
|---|---|
| public void createAcroForm(PDDocument template) Implements org. Doc from org. Creates Acro forms in the template.
| |
| createAcroFormDictionary | back to summary |
|---|---|
| public void createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField) throws IOException Implements org. Create AcroForm Dictionary.
| |
| createAffineTransform | back to summary |
|---|---|
| public void createAffineTransform(AffineTransform affineTransform) Implements org. In order to create Affine Transform, using parameters.
| |
| createAppearanceDictionary | back to summary |
|---|---|
| public void createAppearanceDictionary(PDFormXObject holderForml, PDSignatureField signatureField) throws IOException Implements org. Creates appearance dictionary
| |
| createBackgroundLayerForm | back to summary |
|---|---|
| public void createBackgroundLayerForm(PDResources innerFormResource, PDRectangle bbox) throws IOException Implements org. Creates the background layer form (n0).
| |
| createFormatterRectangle | back to summary |
|---|---|
| public void createFormatterRectangle(int[] params) Implements org. An array of four numbers in the form coordinate system, giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject’s bounding box. These boundaries shall be used to clip the form XObject and to determine its size for caching.
| |
| createHolderForm | back to summary |
|---|---|
| public void createHolderForm(PDResources holderFormResources, PDStream holderFormStream, PDRectangle bbox) Implements org. Doc from org. Creates Form
| |
| createHolderFormResources | back to summary |
|---|---|
| public void createHolderFormResources() Implements org. Creates resources of form
| |
| createHolderFormStream | back to summary |
|---|---|
| public void createHolderFormStream(PDDocument template) Implements org. Create a holder for the form stream.
| |
| createImageForm | back to summary |
|---|---|
| public void createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle bbox, AffineTransform at, PDImageXObject img) throws IOException Implements org. Doc from org. Creates Image form
| |
| createImageFormResources | back to summary |
|---|---|
| public void createImageFormResources() Implements org. Create resource of image form
| |
| createImageFormStream | back to summary |
|---|---|
| public void createImageFormStream(PDDocument template) Implements org. Create image form stream.
| |
| createInnerForm | back to summary |
|---|---|
| public void createInnerForm(PDResources innerFormResources, PDStream innerFormStream, PDRectangle bbox) Implements org. Doc from org. Creates InnerForm.
| |
| createInnerFormResource | back to summary |
|---|---|
| public void createInnerFormResource() Implements org. Creates InnerForm
| |
| createInnerFormStream | back to summary |
|---|---|
| public void createInnerFormStream(PDDocument template) Implements org. Create a holder for the inner form stream.
| |
| createPage | back to summary |
|---|---|
| public void createPage(PDVisibleSignDesigner properties) Implements org. Doc from org. Creates specified size page.
| |
| createProcSetArray | back to summary |
|---|---|
| public void createProcSetArray() Implements org. Doc from org. Creates procSetArray of PDF,Text,ImageB,ImageC,ImageI.
| |
| createSignature | back to summary |
|---|---|
| public void createSignature(PDSignatureField pdSignatureField, PDPage page, String signerName) throws IOException Implements org. Doc from org. Creates the signature with the given name and assign it to the signature field parameter and assign the page parameter to the widget.
| |
| createSignatureField | back to summary |
|---|---|
| public void createSignatureField(PDAcroForm acroForm) throws IOException Implements org. Creates signature fields.
| |
| createSignatureImage | back to summary |
|---|---|
| public void createSignatureImage(PDDocument template, BufferedImage image) throws IOException Implements org. Creates signature image.
| |
| createSignatureRectangle | back to summary |
|---|---|
| public void createSignatureRectangle(PDSignatureField signatureField, PDVisibleSignDesigner properties) throws IOException Implements org. Creates SignatureRectangle.
| |
| createTemplate | back to summary |
|---|---|
| public void createTemplate(PDPage page) throws IOException Implements org. Creates a PDDocument and adds the page parameter to it and keeps this as a template in the PDF template Structure.
| |
| createVisualSignature | back to summary |
|---|---|
| public void createVisualSignature(PDDocument template) Implements org. just to create visible signature
| |
| createWidgetDictionary | back to summary |
|---|---|
| public void createWidgetDictionary(PDSignatureField signatureField, PDResources holderFormResources) throws IOException Implements org. adds Widget Dictionary
| |
| getStructure | back to summary |
|---|---|
| public PDFTemplateStructure getStructure() Implements org. Doc from org. Resturns the PDF template Structure
| |
| injectAppearanceStreams | back to summary |
|---|---|
| public void injectAppearanceStreams(PDStream holderFormStream, PDStream innerFormStream, PDStream imageFormStream, COSName imageFormName, COSName imageName, COSName innerFormName, PDVisibleSignDesigner properties) throws IOException Implements org. injects appearance streams
| |
| injectProcSetArray | back to summary |
|---|---|
| public void injectProcSetArray(PDFormXObject innerForm, PDPage page, PDResources innerFormResources, PDResources imageFormResources, PDResources holderFormResources, COSArray procSet) Implements org. Doc from org. Inject procSetArray
| |
| insertInnerFormToHolderResources | back to summary |
|---|---|
| public void insertInnerFormToHolderResources(PDFormXObject innerForm, PDResources holderFormResources) Insert given from as inner form.
| |