PDFTemplateBuilderpublic class PDVisibleSigBuilder extends java.lang.Object implements PDFTemplateBuilder
PDFTemplateBuilder. This builds the signature PDF but doesn't keep the
elements, these are kept in its PDF template structure.| Constructor | Description |
|---|---|
PDVisibleSigBuilder() |
Constructor, creates PDF template structure.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
appendRawCommands(java.io.OutputStream os,
java.lang.String commands) |
|
void |
closeTemplate(PDDocument template) |
Closes template
|
void |
createAcroForm(PDDocument template) |
Creates Acro forms in the template.
|
void |
createAcroFormDictionary(PDAcroForm acroForm,
PDSignatureField signatureField) |
Create AcroForm Dictionary.
|
void |
createAffineTransform(byte[] params) |
Deprecated.
|
void |
createAffineTransform(java.awt.geom.AffineTransform affineTransform) |
In order to create Affine Transform, using parameters.
|
void |
createAppearanceDictionary(PDFormXObject holderForml,
PDSignatureField signatureField) |
Creates appearance dictionary
|
void |
createBackgroundLayerForm(PDResources innerFormResource,
PDRectangle bbox) |
Creates the background layer form (n0).
|
void |
createFormatterRectangle(byte[] params) |
Deprecated.
|
void |
createFormatterRectangle(int[] params) |
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.
|
void |
createHolderForm(PDResources holderFormResources,
PDStream holderFormStream,
PDRectangle bbox) |
Creates Form
|
void |
createHolderFormResources() |
Creates resources of form
|
void |
createHolderFormStream(PDDocument template) |
|
void |
createImageForm(PDResources imageFormResources,
PDResources innerFormResource,
PDStream imageFormStream,
PDRectangle bbox,
java.awt.geom.AffineTransform at,
PDImageXObject img) |
Creates Image form
|
void |
createImageFormResources() |
Create resource of image form
|
void |
createImageFormStream(PDDocument template) |
|
void |
createInnerForm(PDResources innerFormResources,
PDStream innerFormStream,
PDRectangle bbox) |
|
void |
createInnerFormResource() |
Creates InnerForm
|
void |
createInnerFormStream(PDDocument template) |
|
void |
createPage(PDVisibleSignDesigner properties) |
Creates specified size page.
|
void |
createProcSetArray() |
Creates procSetArray of PDF,Text,ImageB,ImageC,ImageI.
|
void |
createSignature(PDSignatureField pdSignatureField,
PDPage page,
java.lang.String signerName) |
Creates the signature with the given name and assign it to the signature field parameter and assign the page
parameter to the widget.
|
void |
createSignatureField(PDAcroForm acroForm) |
Creates signature fields.
|
void |
createSignatureImage(PDDocument template,
java.awt.image.BufferedImage image) |
Creates signature image.
|
void |
createSignatureRectangle(PDSignatureField signatureField,
PDVisibleSignDesigner properties) |
Creates SignatureRectangle.
|
void |
createTemplate(PDPage page) |
Creates a PDDocument and adds the page parameter to it and keeps this as a template in the
PDF template Structure.
|
void |
createVisualSignature(PDDocument template) |
just to create visible signature
|
void |
createWidgetDictionary(PDSignatureField signatureField,
PDResources holderFormResources) |
adds Widget Dictionary
|
PDFTemplateStructure |
getStructure() |
|
void |
injectAppearanceStreams(PDStream holderFormStream,
PDStream innerFormStream,
PDStream imageFormStream,
COSName imageFormName,
COSName imageName,
COSName innerFormName,
PDVisibleSignDesigner properties) |
injects appearance streams
|
void |
injectProcSetArray(PDFormXObject innerForm,
PDPage page,
PDResources innerFormResources,
PDResources imageFormResources,
PDResources holderFormResources,
COSArray procSet) |
Inject procSetArray
|
void |
insertInnerFormToHolderResources(PDFormXObject innerForm,
PDResources holderFormResources) |
public PDVisibleSigBuilder()
public void createPage(PDVisibleSignDesigner properties)
PDFTemplateBuildercreatePage in interface PDFTemplateBuilderproperties - property valuepublic void createTemplate(PDPage page) throws java.io.IOException
createTemplate in interface PDFTemplateBuilderpage - java.io.IOExceptionpublic void createAcroForm(PDDocument template)
PDFTemplateBuildercreateAcroForm in interface PDFTemplateBuildertemplate - the template documentpublic PDFTemplateStructure getStructure()
getStructure in interface PDFTemplateBuilderpublic void createSignatureField(PDAcroForm acroForm) throws java.io.IOException
PDFTemplateBuildercreateSignatureField in interface PDFTemplateBuilderacroForm - the acroformjava.io.IOException - if something went wrongpublic void createSignature(PDSignatureField pdSignatureField, PDPage page, java.lang.String signerName) throws java.io.IOException
PDFTemplateBuildercreateSignature in interface PDFTemplateBuilderpdSignatureField - signature filedpage - the given pagesignerName - 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.java.io.IOException - if something went wrongpublic void createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField) throws java.io.IOException
PDFTemplateBuildercreateAcroFormDictionary in interface PDFTemplateBuilderacroForm - the acroformsignatureField - the signature fieldjava.io.IOException - if something went wrongpublic void createSignatureRectangle(PDSignatureField signatureField, PDVisibleSignDesigner properties) throws java.io.IOException
PDFTemplateBuildercreateSignatureRectangle in interface PDFTemplateBuildersignatureField - the signature fieldproperties - propertiesjava.io.IOException - if something went wrong@Deprecated public void createAffineTransform(byte[] params)
createAffineTransform in interface PDFTemplateBuilderparams - parameter valuespublic void createAffineTransform(java.awt.geom.AffineTransform affineTransform)
PDFTemplateBuildercreateAffineTransform in interface PDFTemplateBuilderaffineTransform - the transformationpublic void createProcSetArray()
PDFTemplateBuildercreateProcSetArray in interface PDFTemplateBuilderpublic void createSignatureImage(PDDocument template, java.awt.image.BufferedImage image) throws java.io.IOException
PDFTemplateBuildercreateSignatureImage in interface PDFTemplateBuildertemplate - template documentimage - signature imagejava.io.IOException - if something went wrong@Deprecated public void createFormatterRectangle(byte[] params)
createFormatterRectangle in interface PDFTemplateBuilderparams - parameterspublic void createFormatterRectangle(int[] params)
PDFTemplateBuildercreateFormatterRectangle in interface PDFTemplateBuilderparams - parameterspublic void createHolderFormStream(PDDocument template)
createHolderFormStream in interface PDFTemplateBuildertemplate - template documentpublic void createHolderFormResources()
PDFTemplateBuildercreateHolderFormResources in interface PDFTemplateBuilderpublic void createHolderForm(PDResources holderFormResources, PDStream holderFormStream, PDRectangle bbox)
PDFTemplateBuildercreateHolderForm in interface PDFTemplateBuilderholderFormResources - holder form resourcesholderFormStream - holder streambbox - bounding boxpublic void createAppearanceDictionary(PDFormXObject holderForml, PDSignatureField signatureField) throws java.io.IOException
PDFTemplateBuildercreateAppearanceDictionary in interface PDFTemplateBuilderholderForml - holder XObjectsignatureField - the signature fieldjava.io.IOException - if something went wrongpublic void createInnerFormStream(PDDocument template)
createInnerFormStream in interface PDFTemplateBuildertemplate - template documentpublic void createInnerFormResource()
PDFTemplateBuildercreateInnerFormResource in interface PDFTemplateBuilderpublic void createInnerForm(PDResources innerFormResources, PDStream innerFormStream, PDRectangle bbox)
createInnerForm in interface PDFTemplateBuilderinnerFormResources - inner form resourcesinnerFormStream - inner form streambbox - bounding boxpublic void insertInnerFormToHolderResources(PDFormXObject innerForm, PDResources holderFormResources)
insertInnerFormToHolderResources in interface PDFTemplateBuilderinnerForm - inner form XObjectholderFormResources - holder form resourcespublic void createImageFormStream(PDDocument template)
createImageFormStream in interface PDFTemplateBuildertemplate - template documentpublic void createImageFormResources()
PDFTemplateBuildercreateImageFormResources in interface PDFTemplateBuilderpublic void createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle bbox, java.awt.geom.AffineTransform at, PDImageXObject img) throws java.io.IOException
PDFTemplateBuildercreateImageForm in interface PDFTemplateBuilderimageFormResources - image form resourcesinnerFormResource - inner form resourcesimageFormStream - image from streambbox - bounding boxat - transformationimg - ImageXObjectjava.io.IOException - if something went wrongpublic void createBackgroundLayerForm(PDResources innerFormResource, PDRectangle bbox) throws java.io.IOException
PDFTemplateBuildercreateBackgroundLayerForm in interface PDFTemplateBuilderinnerFormResource - inner acroform resourcesbbox - rectangle of the formatterjava.io.IOException - if something went wrongpublic void injectProcSetArray(PDFormXObject innerForm, PDPage page, PDResources innerFormResources, PDResources imageFormResources, PDResources holderFormResources, COSArray procSet)
PDFTemplateBuilderinjectProcSetArray in interface PDFTemplateBuilderinnerForm - inner formpage - the given pageinnerFormResources - inner form resourcesimageFormResources - image form resourcesholderFormResources - holder form resourcesprocSet - procset valuespublic void injectAppearanceStreams(PDStream holderFormStream, PDStream innerFormStream, PDStream imageFormStream, COSName imageFormName, COSName imageName, COSName innerFormName, PDVisibleSignDesigner properties) throws java.io.IOException
PDFTemplateBuilderinjectAppearanceStreams in interface PDFTemplateBuilderholderFormStream - holder form streaminnerFormStream - inner form streamimageFormStream - image form streamimageFormName - image form nameimageName - image nameinnerFormName - inner form nameproperties - property valuesjava.io.IOException - if something went wrongpublic void appendRawCommands(java.io.OutputStream os,
java.lang.String commands)
throws java.io.IOException
java.io.IOExceptionpublic void createVisualSignature(PDDocument template)
PDFTemplateBuildercreateVisualSignature in interface PDFTemplateBuildertemplate - template documentpublic void createWidgetDictionary(PDSignatureField signatureField, PDResources holderFormResources) throws java.io.IOException
PDFTemplateBuildercreateWidgetDictionary in interface PDFTemplateBuildersignatureField - the signature fieldholderFormResources - holder form resourcesjava.io.IOException - if something went wrongpublic void closeTemplate(PDDocument template) throws java.io.IOException
PDFTemplateBuildercloseTemplate in interface PDFTemplateBuildertemplate - template documentjava.io.IOException - if something went wrongCopyright © 2002–2018. All rights reserved.