public interface PDFTemplateBuilder
Modifier and Type | Method and Description |
---|---|
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(AffineTransform affineTransform)
In order to create Affine Transform, using parameters.
|
void |
createAffineTransform(byte[] params)
Deprecated.
|
void |
createAppearanceDictionary(PDFormXObject holderForml,
PDSignatureField signatureField)
Creates appearance dictionary
|
void |
createBackgroundLayerForm(PDResources innerFormResource,
PDRectangle formatter)
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,
AffineTransform affineTransform,
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,
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,
BufferedImage image)
Creates signature image.
|
void |
createSignatureRectangle(PDSignatureField signatureField,
PDVisibleSignDesigner properties)
Creates SignatureRectangle.
|
void |
createTemplate(PDPage page)
Creates template using page.
|
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) |
@Deprecated void createAffineTransform(byte[] params)
createAffineTransform(java.awt.geom.AffineTransform)
params
- parameter valuesvoid createAffineTransform(AffineTransform affineTransform)
affineTransform
- the transformationvoid createPage(PDVisibleSignDesigner properties)
properties
- property valuevoid createTemplate(PDPage page) throws IOException
page
- the given pageIOException
- if something went wrongvoid createAcroForm(PDDocument template)
template
- the template documentvoid createSignatureField(PDAcroForm acroForm) throws IOException
acroForm
- the acroformIOException
- if something went wrongvoid createSignature(PDSignatureField pdSignatureField, PDPage page, String signerName) throws IOException
pdSignatureField
- 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.IOException
- if something went wrongvoid createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField) throws IOException
acroForm
- the acroformsignatureField
- the signature fieldIOException
- if something went wrongvoid createSignatureRectangle(PDSignatureField signatureField, PDVisibleSignDesigner properties) throws IOException
signatureField
- the signature fieldproperties
- propertiesIOException
- if something went wrongvoid createProcSetArray()
void createSignatureImage(PDDocument template, BufferedImage image) throws IOException
template
- template documentimage
- signature imageIOException
- if something went wrong@Deprecated void createFormatterRectangle(byte[] params)
createFormatterRectangle(int[])
params
- parametersvoid createFormatterRectangle(int[] params)
params
- parametersvoid createHolderFormStream(PDDocument template)
template
- template documentvoid createHolderFormResources()
void createHolderForm(PDResources holderFormResources, PDStream holderFormStream, PDRectangle bbox)
holderFormResources
- holder form resourcesholderFormStream
- holder streambbox
- bounding boxvoid createAppearanceDictionary(PDFormXObject holderForml, PDSignatureField signatureField) throws IOException
holderForml
- holder XObjectsignatureField
- the signature fieldIOException
- if something went wrongvoid createInnerFormStream(PDDocument template)
template
- template documentvoid createInnerFormResource()
void createInnerForm(PDResources innerFormResources, PDStream innerFormStream, PDRectangle bbox)
innerFormResources
- inner form resourcesinnerFormStream
- inner form streambbox
- bounding boxvoid insertInnerFormToHolderResources(PDFormXObject innerForm, PDResources holderFormResources)
innerForm
- inner form XObjectholderFormResources
- holder form resourcesvoid createImageFormStream(PDDocument template)
template
- template documentvoid createImageFormResources()
void createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle bbox, AffineTransform affineTransform, PDImageXObject img) throws IOException
imageFormResources
- image form resourcesinnerFormResource
- inner form resourcesimageFormStream
- image from streambbox
- bounding boxaffineTransform
- transformationimg
- ImageXObjectIOException
- if something went wrongvoid createBackgroundLayerForm(PDResources innerFormResource, PDRectangle formatter) throws IOException
innerFormResource
- inner acroform resourcesformatter
- rectangle of the formatterIOException
- if something went wrongvoid injectProcSetArray(PDFormXObject innerForm, PDPage page, PDResources innerFormResources, PDResources imageFormResources, PDResources holderFormResources, COSArray procSet)
innerForm
- inner formpage
- the given pageinnerFormResources
- inner form resourcesimageFormResources
- image form resourcesholderFormResources
- holder form resourcesprocSet
- procset valuesvoid injectAppearanceStreams(PDStream holderFormStream, PDStream innerFormStream, PDStream imageFormStream, COSName imageFormName, COSName imageName, COSName innerFormName, PDVisibleSignDesigner properties) throws IOException
holderFormStream
- holder form streaminnerFormStream
- inner form streamimageFormStream
- image form streamimageFormName
- image form nameimageName
- image nameinnerFormName
- inner form nameproperties
- property valuesIOException
- if something went wrongvoid createVisualSignature(PDDocument template)
template
- template documentvoid createWidgetDictionary(PDSignatureField signatureField, PDResources holderFormResources) throws IOException
signatureField
- the signature fieldholderFormResources
- holder form resourcesIOException
- if something went wrongPDFTemplateStructure getStructure()
void closeTemplate(PDDocument template) throws IOException
template
- template documentIOException
- if something went wrongCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.