Example usage for Java com.lowagie.text.pdf PdfStamper fields, constructors, methods, implement or subclass
The text is from its open source code.
PdfStamper(PdfReader reader, OutputStream os) Starts the process of adding extra content to an existing PDF document. | |
PdfStamper(PdfReader reader, OutputStream os, char pdfVersion, boolean append) Starts the process of adding extra content to an existing PDF document, possibly as a new revision. | |
PdfStamper(PdfReader reader, OutputStream os, char pdfVersion) Starts the process of adding extra content to an existing PDF document. |
void | addAnnotation(PdfAnnotation annot, int page) Adds an annotation of form field in a specific page. |
void | addFileAttachment(String description, byte fileStore[], String file, String fileDisplay) Adds a file attachment at the document level. |
void | addFileAttachment(String description, PdfFileSpecification fs) Adds a file attachment at the document level. |
void | addJavaScript(String js) Adds a JavaScript action at the document level. |
void | addViewerPreference(PdfName key, PdfObject value) Adds a viewer preference |
void | close() Closes the document. |
PdfStamper | createSignature(PdfReader reader, OutputStream os, char pdfVersion) Applies a digital signature to a document. |
PdfStamper | createSignature(PdfReader reader, OutputStream os, char pdfVersion, File tempFile, boolean append) Applies a digital signature to a document, possibly as a new revision, making possible multiple signatures. |
AcroFields | getAcroFields() Gets the AcroFields object that allows to get and set field values and to merge FDF forms. |
PdfImportedPage | getImportedPage(PdfReader reader, int pageNumber) Gets a page from other PDF document. |
HashMap | getMoreInfo() Gets the optional String map to add or change values in the info dictionary. |
PdfContentByte | getOverContent(int pageNum) Gets a PdfContentByte to write over the page of the original document. |
Map | getPdfLayers() Gets the PdfLayer objects in an existing document as a Map with the names/titles of the layers as keys. |
PdfReader | getReader() Gets the underlying PdfReader. |
PdfSignatureAppearance | getSignatureAppearance() Gets the signing instance. |
PdfContentByte | getUnderContent(int pageNum) Gets a PdfContentByte to write under the page of the original document. |
PdfWriter | getWriter() Gets the underlying PdfWriter. |
void | insertPage(int pageNumber, Rectangle mediabox) Inserts a blank page. |
void | makePackage(PdfName initialView) This is the most simple way to change a PDF into a portable collection. |
void | makePackage(PdfCollection collection) Adds or replaces the Collection Dictionary in the Catalog. |
boolean | partialFormFlattening(String name) Adds name to the list of fields that will be flattened on close, all the other fields will remain. |
void | setEncryption(byte userPassword[], byte ownerPassword[], int permissions, boolean strength128Bits) Sets the encryption options for this document. |
void | setEncryption(byte userPassword[], byte ownerPassword[], int permissions, int encryptionType) Sets the encryption options for this document. |
void | setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document. |
void | setEncryption(int encryptionType, String userPassword, String ownerPassword, int permissions) Sets the encryption options for this document. |
void | setFormFlattening(boolean flat) Determines if the fields are flattened on close. |
void | setFullCompression() Sets the document's compression to the new 1.5 mode with object streams and xref streams. |
void | setMoreInfo(HashMap moreInfo) An optional String map to add or change values in the info dictionary. |
void | setOutlines(List outlines) Sets the bookmarks. |
void | setViewerPreferences(int preferences) Sets the viewer preferences. |
void | setXmpMetadata(byte[] xmp) Sets the XMP metadata. |