com.itextpdf.text.pdf
Class PdfAStamper

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfStamper
      extended by 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

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfStamper
stamper
 
Constructor Summary
PdfAStamper(PdfReader reader, OutputStream os, char pdfVersion, boolean append, PdfAConformanceLevel conformanceLevel)
          Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.
PdfAStamper(PdfReader reader, OutputStream os, char pdfVersion, PdfAConformanceLevel conformanceLevel)
          Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.
PdfAStamper(PdfReader reader, OutputStream os, PdfAConformanceLevel conformanceLevel)
          Starts the process of adding extra content to an existing PDF document keeping the document PDF/A conformant.
 
Method Summary
 
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
 

Constructor Detail

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 reused
os - the output stream
conformanceLevel - 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 reused
os - the output stream
pdfVersion - the new pdf version or '\0' to keep the same version as the original document
conformanceLevel - 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 reused
os - the output stream
pdfVersion - the new pdf version or '\0' to keep the same version as the original document
append - if true appends the document changes as a new revision. This is only useful for multiple signatures as nothing is gained in speed or memory
conformanceLevel - PDF/A conformance level of a new PDF document
Throws:
DocumentException - on error
IOException - or error


Copyright © 2012. All Rights Reserved.