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(byte[] params)
In order to create Affine Transform, using parameters.
|
void |
createAppearanceDictionary(PDFormXObject holderForml,
PDSignatureField signatureField)
Creates appearance dictionary
|
void |
createFormatterRectangle(byte[] params) |
void |
createHolderForm(PDResources holderFormResources,
PDStream holderFormStream,
PDRectangle formrect)
Creates Form
|
void |
createHolderFormResources()
Creates resources of form
|
void |
createHolderFormStream(PDDocument template) |
void |
createImageForm(PDResources imageFormResources,
PDResources innerFormResource,
PDStream imageFormStream,
PDRectangle formrect,
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 formrect) |
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 imageObjectName,
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) |
void createAffineTransform(byte[] params)
params
- void createPage(PDVisibleSignDesigner properties)
properties
- void createTemplate(PDPage page) throws IOException
page
- IOException
void createAcroForm(PDDocument template)
template
- void createSignatureField(PDAcroForm acroForm) throws IOException
acroForm
- IOException
void createSignature(PDSignatureField pdSignatureField, PDPage page, String signerName) throws IOException
pdSignatureField
- page
- signerName
- 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
void createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField) throws IOException
acroForm
- signatureField
- IOException
void createSignatureRectangle(PDSignatureField signatureField, PDVisibleSignDesigner properties) throws IOException
signatureField
- properties
- IOException
void createProcSetArray()
void createSignatureImage(PDDocument template, BufferedImage image) throws IOException
template
- image
- IOException
void createFormatterRectangle(byte[] params)
params
- void createHolderFormStream(PDDocument template)
template
- void createHolderFormResources()
void createHolderForm(PDResources holderFormResources, PDStream holderFormStream, PDRectangle formrect)
holderFormResources
- holderFormStream
- formrect
- void createAppearanceDictionary(PDFormXObject holderForml, PDSignatureField signatureField) throws IOException
holderForml
- signatureField
- IOException
void createInnerFormStream(PDDocument template)
template
- void createInnerFormResource()
void createInnerForm(PDResources innerFormResources, PDStream innerFormStream, PDRectangle formrect)
innerFormResources
- innerFormStream
- formrect
- void insertInnerFormToHolderResources(PDFormXObject innerForm, PDResources holderFormResources)
innerForm
- holderFormResources
- void createImageFormStream(PDDocument template)
template
- void createImageFormResources()
void createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle formrect, AffineTransform affineTransform, PDImageXObject img) throws IOException
imageFormResources
- innerFormResource
- imageFormStream
- formrect
- affineTransform
- img
- IOException
void injectProcSetArray(PDFormXObject innerForm, PDPage page, PDResources innerFormResources, PDResources imageFormResources, PDResources holderFormResources, COSArray procSet)
innerForm
- page
- innerFormResources
- imageFormResources
- holderFormResources
- procSet
- void injectAppearanceStreams(PDStream holderFormStream, PDStream innerFormStream, PDStream imageFormStream, COSName imageObjectName, COSName imageName, COSName innerFormName, PDVisibleSignDesigner properties) throws IOException
holderFormStream
- innerFormStream
- imageFormStream
- imageObjectName
- imageName
- innerFormName
- properties
- IOException
void createVisualSignature(PDDocument template)
template
- void createWidgetDictionary(PDSignatureField signatureField, PDResources holderFormResources) throws IOException
signatureField
- holderFormResources
- IOException
PDFTemplateStructure getStructure()
void closeTemplate(PDDocument template) throws IOException
template
- IOException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.