public class PDVisibleSigBuilder extends Object implements PDFTemplateBuilder
PDFTemplateBuilder
Constructor and Description |
---|
PDVisibleSigBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
appendRawCommands(OutputStream os,
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)
In order to create Affine Transform, using parameters
|
void |
createAppearanceDictionary(PDXObjectForm holderForml,
PDSignatureField signatureField)
Creates appearance dictionary
|
void |
createFormaterRectangle(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,
PDJpeg 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 signatureName)
Creates PDSignature
|
void |
createSignatureField(PDAcroForm acroForm)
Creates signature fields
|
void |
createSignatureImage(PDDocument template,
InputStream inputStream)
Creates signature image
|
void |
createSignatureRectangle(PDSignatureField signatureField,
PDVisibleSignDesigner properties)
Creates SingatureRectangle
|
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 innterFormStream,
PDStream imageFormStream,
String imageObjectName,
String imageName,
String innerFormName,
PDVisibleSignDesigner properties)
injects appearance streams
|
void |
injectProcSetArray(PDXObjectForm innerForm,
PDPage page,
PDResources innerFormResources,
PDResources imageFormResources,
PDResources holderFormResources,
COSArray procSet)
Inject procSetArray
|
void |
insertInnerFormToHolerResources(PDXObjectForm innerForm,
PDResources holderFormResources) |
public void createPage(PDVisibleSignDesigner properties)
PDFTemplateBuilder
createPage
in interface PDFTemplateBuilder
public void createTemplate(PDPage page) throws IOException
PDFTemplateBuilder
createTemplate
in interface PDFTemplateBuilder
IOException
public void createAcroForm(PDDocument template)
PDFTemplateBuilder
createAcroForm
in interface PDFTemplateBuilder
public PDFTemplateStructure getStructure()
getStructure
in interface PDFTemplateBuilder
public void createSignatureField(PDAcroForm acroForm) throws IOException
PDFTemplateBuilder
createSignatureField
in interface PDFTemplateBuilder
IOException
public void createSignature(PDSignatureField pdSignatureField, PDPage page, String signatureName) throws IOException
PDFTemplateBuilder
createSignature
in interface PDFTemplateBuilder
IOException
public void createAcroFormDictionary(PDAcroForm acroForm, PDSignatureField signatureField) throws IOException
PDFTemplateBuilder
createAcroFormDictionary
in interface PDFTemplateBuilder
IOException
public void createSignatureRectangle(PDSignatureField signatureField, PDVisibleSignDesigner properties) throws IOException
PDFTemplateBuilder
createSignatureRectangle
in interface PDFTemplateBuilder
IOException
public void createAffineTransform(byte[] params)
PDFTemplateBuilder
createAffineTransform
in interface PDFTemplateBuilder
public void createProcSetArray()
PDFTemplateBuilder
createProcSetArray
in interface PDFTemplateBuilder
public void createSignatureImage(PDDocument template, InputStream inputStream) throws IOException
PDFTemplateBuilder
createSignatureImage
in interface PDFTemplateBuilder
IOException
public void createFormaterRectangle(byte[] params)
createFormaterRectangle
in interface PDFTemplateBuilder
public void createHolderFormStream(PDDocument template)
createHolderFormStream
in interface PDFTemplateBuilder
public void createHolderFormResources()
PDFTemplateBuilder
createHolderFormResources
in interface PDFTemplateBuilder
public void createHolderForm(PDResources holderFormResources, PDStream holderFormStream, PDRectangle formrect)
PDFTemplateBuilder
createHolderForm
in interface PDFTemplateBuilder
public void createAppearanceDictionary(PDXObjectForm holderForml, PDSignatureField signatureField) throws IOException
PDFTemplateBuilder
createAppearanceDictionary
in interface PDFTemplateBuilder
IOException
public void createInnerFormStream(PDDocument template)
createInnerFormStream
in interface PDFTemplateBuilder
public void createInnerFormResource()
PDFTemplateBuilder
createInnerFormResource
in interface PDFTemplateBuilder
public void createInnerForm(PDResources innerFormResources, PDStream innerFormStream, PDRectangle formrect)
createInnerForm
in interface PDFTemplateBuilder
public void insertInnerFormToHolerResources(PDXObjectForm innerForm, PDResources holderFormResources)
insertInnerFormToHolerResources
in interface PDFTemplateBuilder
public void createImageFormStream(PDDocument template)
createImageFormStream
in interface PDFTemplateBuilder
public void createImageFormResources()
PDFTemplateBuilder
createImageFormResources
in interface PDFTemplateBuilder
public void createImageForm(PDResources imageFormResources, PDResources innerFormResource, PDStream imageFormStream, PDRectangle formrect, AffineTransform affineTransform, PDJpeg img) throws IOException
PDFTemplateBuilder
createImageForm
in interface PDFTemplateBuilder
IOException
public void injectProcSetArray(PDXObjectForm innerForm, PDPage page, PDResources innerFormResources, PDResources imageFormResources, PDResources holderFormResources, COSArray procSet)
PDFTemplateBuilder
injectProcSetArray
in interface PDFTemplateBuilder
public void injectAppearanceStreams(PDStream holderFormStream, PDStream innterFormStream, PDStream imageFormStream, String imageObjectName, String imageName, String innerFormName, PDVisibleSignDesigner properties) throws IOException
PDFTemplateBuilder
injectAppearanceStreams
in interface PDFTemplateBuilder
IOException
public void appendRawCommands(OutputStream os, String commands) throws IOException
IOException
public void createVisualSignature(PDDocument template)
PDFTemplateBuilder
createVisualSignature
in interface PDFTemplateBuilder
public void createWidgetDictionary(PDSignatureField signatureField, PDResources holderFormResources) throws IOException
PDFTemplateBuilder
createWidgetDictionary
in interface PDFTemplateBuilder
IOException
public void closeTemplate(PDDocument template) throws IOException
PDFTemplateBuilder
closeTemplate
in interface PDFTemplateBuilder
IOException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.