Applies extra content to the pages of a PDF document. This extra content can be all the objects allowed in PdfContentByte including pages from other Pdfs. The original PDF will keep all the interactive elements including bookmarks, links and form fields. It is also possible to change the field values and to flatten them. New fields can be added but not flattened. Methods inherited from class java.
|Published (Last):||5 June 2018|
|PDF File Size:||5.58 Mb|
|ePub File Size:||19.90 Mb|
|Price:||Free* [*Free Regsitration Required]|
Applies extra content to the pages of a PDF document. This extra content can be all the objects allowed in PdfContentByte including pages from other Pdfs. The original PDF will keep all the interactive elements including bookmarks, links and form fields. It is also possible to change the field values and to flatten them.
New fields can be added but not flattened. Methods inherited from class java. Object clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait. Field Detail. Parameters: reader - the original document.
This is only useful for multiple signatures as nothing is gained in speed or memory Throws: DocumentException - on error IOException - on error. If closing a signed document with an external signature the closing must be done in the PdfSignatureAppearance instance. New blog post: Getting started with Astyanax, the open source Cassandra java library and connect your application to one of the most important NoSQL database.
Read Blog Post. Javadox Java Articles Maven Dependency. Object com. Author: Paulo Soares psoares consiste. Only the content is replaced not the fields and annotations. This method must be called before getOverContent or getUndercontent are called for the same page. Parameters: r - the PdfReader from where the new page will be imported pageImported - the page number of the imported page pageReplaced - the page to replace in this document Since: iText 2. All the pages above and including pageNumber will be shifted up.
If pageNumber is bigger than the total number of pages the new page will be the last one. Parameters: pageNumber - the page number position where the new page will be inserted mediabox - the size of the new page getSignatureAppearance public PdfSignatureAppearance getSignatureAppearance Gets the signing instance.
The appearances and other parameters can the be set. No more content can be written after the document is closed. Parameters: pageNum - the page number where the extra content is written Returns: a PdfContentByte to write over the page of the original document isRotateContents public boolean isRotateContents Checks if the content is automatically adjusted to compensate the original page rotation.
The default is true. The userPassword and the ownerPassword can be null or have zero length. In this case the ownerPassword is replaced by a random string.
The permissions can be combined by ORing them. Parameters: userPassword - the user password. Can be null or empty ownerPassword - the owner password. Can be null or empty permissions - the user permissions encryptionType - the type of encryption.
Parameters: strength - true for bit key length, false for 40 bit key length userPassword - the user password. Parameters: encryptionType - the type of encryption. An array of one or more public certificates must be provided together with an array of the same size for the permissions for each certificate.
Note that calling this method more than once with the same parameters will retrieve the same object. Parameters: reader - the PDF document where the page is pageNumber - the page number.
The fields added with addAnnotation PdfAnnotation,int will never be flattened. Parameters: flat - true to flatten the FreeText annotations, false the default to keep the FreeText annotations as active content. This page number can be overridden with PdfAnnotation. Parameters: name - the name of the signature page - the page number llx - lower left x coordinate of the signature's position lly - lower left y coordinate of the signature's position urx - upper right x coordinate of the signature's position ury - upper right y coordinate of the signature's position Returns: a signature form field Since: 2.
Choose one of the following names: PdfName. D detailed view PdfName. T tiled view PdfName. H hidden Pass this name as a parameter and your PDF will be a portable collection with all the embedded and attached files as entries. Parameters: initialView - can be PdfName. D, PdfName. T or PdfName. Parameters: collection - the new collection dictionary. PdfName, com. Parameters: xmp - See Also: PdfWriter. Returns: true if the 1. It can be set at any time but once set it can't be unset.
Parameters: actionType - the action type. It can be PdfWriter. A negative value removes the entry page - the page where the duration will be applied.
A null removes the transition page - the page where the transition will be applied. The returned PdfStamper can be used normally as the signature is only applied when closing.
If it's a directory a temporary file will be created there. If it's a file it will be used directly. The file will be deleted on exit unless os is null. In that case the document can be retrieved directly from the temporary file. Note that the pdf is created in memory. All Rights Reserved. Related Articles. Cassandra Java Library: Astyanax.
Get Started with Astyanax, the Cassandra java library by Netflix. Learn More NOW! Add the Maven Dependecy to your project: maven dependecy for com. All rights reserved. New Blog Post! Astyanax, the Cassandra Java library New blog post: Getting started with Astyanax, the open source Cassandra java library and connect your application to one of the most important NoSQL database.
Hack 78 Permanently Merge a PDF Form and its Data
New Blog Post!
how to merge in-memory PDFs