com.itextpdf.text.pdf
Class PdfAStamper
java.lang.Object
com.itextpdf.text.pdf.PdfStamper
com.itextpdf.text.pdf.PdfAStamper
- All Implemented Interfaces:
- PdfEncryptionSettings, PdfViewerPreferences
public class PdfAStamper
- extends PdfStamper
Extension of PdfStamper that will attempt to keep a file
in conformance with the PDF/A standard.
- See Also:
PdfStamper
Methods inherited from class com.itextpdf.text.pdf.PdfStamper |
addAnnotation, addComments, addFileAttachment, addFileAttachment, addJavaScript, addSignature, addViewerPreference, close, createSignature, createSignature, createSignature, getAcroFields, getImportedPage, getLtvVerification, getMoreInfo, getOverContent, getPdfLayers, getReader, getSignatureAppearance, getUnderContent, getWriter, insertPage, isFullCompression, isRotateContents, makePackage, makePackage, markUsed, partialFormFlattening, replacePage, setDuration, setEncryption, setEncryption, setEncryption, setEncryption, setEncryption, setFormFlattening, setFreeTextFlattening, setFullCompression, setMoreInfo, setOutlines, setPageAction, setRotateContents, setThumbnail, setTransition, setViewerPreferences, setXmpMetadata |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdfAStamper
public PdfAStamper(PdfReader reader,
OutputStream os,
PdfAConformanceLevel conformanceLevel)
throws DocumentException,
IOException
- Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.
- Parameters:
reader
- the original document. It cannot be reusedos
- the output streamconformanceLevel
- PDF/A conformance level of a new PDF document
- Throws:
DocumentException
- on error
IOException
- or error
PdfAStamper
public PdfAStamper(PdfReader reader,
OutputStream os,
char pdfVersion,
PdfAConformanceLevel conformanceLevel)
throws DocumentException,
IOException
- Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.
- Parameters:
reader
- the original document. It cannot be reusedos
- the output streampdfVersion
- the new pdf version or '\0' to keep the same version as the original documentconformanceLevel
- PDF/A conformance level of a new PDF document
- Throws:
DocumentException
- on error
IOException
- or error
PdfAStamper
public PdfAStamper(PdfReader reader,
OutputStream os,
char pdfVersion,
boolean append,
PdfAConformanceLevel conformanceLevel)
throws DocumentException,
IOException
- Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.
- Parameters:
reader
- the original document. It cannot be reusedos
- the output streampdfVersion
- the new pdf version or '\0' to keep the same version as the original documentappend
- if true
appends the document changes as a new revision. This is only useful for multiple signatures as nothing is gained in speed or memoryconformanceLevel
- PDF/A conformance level of a new PDF document
- Throws:
DocumentException
- on error
IOException
- or error
Copyright © 2012. All Rights Reserved.