Example usage for Java com.itextpdf.text.pdf PdfWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
char | VERSION_1_2 possible PDF version (header) |
char | VERSION_1_3 possible PDF version (header) |
char | VERSION_1_4 possible PDF version (header) |
char | VERSION_1_5 possible PDF version (header) |
char | VERSION_1_6 possible PDF version (header) |
char | VERSION_1_7 possible PDF version (header) |
PdfName | PDF_VERSION_1_2 possible PDF version (catalog) |
PdfName | PDF_VERSION_1_3 possible PDF version (catalog) |
PdfName | PDF_VERSION_1_4 possible PDF version (catalog) |
PdfName | PDF_VERSION_1_5 possible PDF version (catalog) |
PdfName | PDF_VERSION_1_6 possible PDF version (catalog) |
PdfName | PDF_VERSION_1_7 possible PDF version (catalog) |
int | PageLayoutSinglePage A viewer preference |
int | PageModeUseOutlines A viewer preference |
int | PageModeUseOC A viewer preference |
int | FitWindow A viewer preference |
int | DisplayDocTitle A viewer preference |
int | PrintScalingNone A viewer preference |
int | PDFX1A2001 A PDF/X level. |
int | STANDARD_ENCRYPTION_40 Type of encryption |
int | STANDARD_ENCRYPTION_128 Type of encryption |
int | ENCRYPTION_AES_128 Type of encryption |
int | ENCRYPTION_AES_256 Type of encryption |
int | DO_NOT_ENCRYPT_METADATA Add this to the mode to keep the metadata in clear text |
int | ALLOW_PRINTING The operation permitted when the document is opened with the user password |
int | ALLOW_MODIFY_CONTENTS The operation permitted when the document is opened with the user password |
int | ALLOW_COPY The operation permitted when the document is opened with the user password |
int | ALLOW_MODIFY_ANNOTATIONS The operation permitted when the document is opened with the user password |
int | ALLOW_FILL_IN The operation permitted when the document is opened with the user password |
int | ALLOW_SCREENREADERS The operation permitted when the document is opened with the user password |
int | ALLOW_ASSEMBLY The operation permitted when the document is opened with the user password |
int | ALLOW_DEGRADED_PRINTING The operation permitted when the document is opened with the user password |
PdfName | PAGE_OPEN action value |
int | RUN_DIRECTION_DEFAULT Use the default run direction. |
int | RUN_DIRECTION_RTL Use bidirectional reordering with right-to-left preferential run direction. |
void | addAnnotation(final PdfAnnotation annot) |
PdfName | addDirectImageSimple(final Image image) Use this method to adds an image to the document but not to the page resources. |
void | addJavaScript(final String code, final boolean unicode) Use this method to add a JavaScript action at the document level. |
void | addJavaScript(final String name, final PdfAction js) Use this method to add a JavaScript action at the document level. |
void | addJavaScript(final String name, final String code) Use this method to adds a JavaScript action at the document level. |
void | addPageDictEntry(final PdfName key, final PdfObject object) Adds an additional entry for the page dictionary. |
void | close() Signals that the Document was closed and that no other Elements will be added. |
void | createXmpMetadata() Use this method to creates XMP Metadata based on the metadata in the PdfDocument. |
void | flush() Flushes the BufferedOutputStream . |
void | freeReader(final PdfReader reader) Use this method to writes the reader to the document and free the memory used by it. |
PdfAcroForm | getAcroForm() |
Rectangle | getBoxSize(final String boxName) Use this method to get the size of a trim, art, crop or bleed box, or null if not defined. |
int | getCurrentPageNumber() |
PdfContentByte | getDirectContent() Use this method to get the direct content for this document. |
PdfContentByte | getDirectContentUnder() Use this method to get the direct content under for this document. |
PdfImportedPage | getImportedPage(final PdfReader reader, final int pageNumber) Use this method to get a page from other PDF document. |
PdfWriter | getInstance(final Document document, final OutputStream os) Use this method to get an instance of the PdfWriter . |
PdfPageEvent | getPageEvent() Gets the PdfPageEvent for this document or null if none is set. |
int | getPageNumber() Gets the pagenumber of this document. |
Rectangle | getPageSize() Use this method to get the size of the media box. |
PdfOutline | getRootOutline() Use this method to get the root outline and construct bookmarks. |
PdfStructureTreeRoot | getStructureTreeRoot() Gets the structure tree root. |
float | getVerticalPosition(final boolean ensureNewLine) Use this method to get the current vertical page position. |
boolean | newPage() Signals that an new page has to be started. |
void | open() Signals that the Document has been opened and that Elements can be added. |
void | releaseTemplate(final PdfTemplate tp) Use this method to releases the memory used by a template. |
int | reorderPages(final int order[]) Use this method to reorder the pages in the document. |
void | setBoxSize(final String boxName, final Rectangle size) Use this method to set the page box sizes. |
void | setCompressionLevel(final int compressionLevel) Sets the compression level to be used for streams written by this writer. |
void | setCropBoxSize(final Rectangle crop) Use this method to set the crop box. |
void | setDefaultColorspace(final PdfName key, final PdfObject cs) Use this method to sets the default colorspace that will be applied to all the document. |
void | setEncryption(final byte userPassword[], final byte ownerPassword[], final int permissions, final int encryptionType) Sets the encryption options for this document. |
void | setEncryption(final byte userPassword[], final byte ownerPassword[], final int permissions, final boolean strength128Bits) Sets the encryption options for this document. |
void | setEncryption(final boolean strength, final String userPassword, final String ownerPassword, final int permissions) Sets the encryption options for this document. |
void | setEncryption(final int encryptionType, final String userPassword, final String ownerPassword, final int permissions) Sets the encryption options for this document. |
void | setFullCompression() Use this method to set the document's compression to the PDF 1.5 mode with object streams and xref streams. |
void | setInitialLeading(final float leading) Sets the initial leading for the PDF document. |
void | setLinearPageMode() Use this method to make sure the page tree has a linear structure (every leave is attached directly to the root). |
void | setOutlines(final List Sets the bookmarks. |
void | setOutputIntents(final String outputConditionIdentifier, final String outputCondition, final String registryName, final String info, final ICC_Profile colorProfile) Sets the values of the output intent dictionary. |
void | setOutputIntents(final String outputConditionIdentifier, final String outputCondition, final String registryName, final String info, final byte destOutputProfile[]) Sets the values of the output intent dictionary. |
void | setPageEmpty(final boolean pageEmpty) Use this method to make sure a page is added, even if it's empty. |
void | setPageEvent(final PdfPageEvent event) Sets the PdfPageEvent for this document. |
void | setPdfVersion(final char version) |
void | setPdfVersion(final PdfName version) |
void | setPDFXConformance(final int pdfx) |
void | setRgbTransparencyBlending(final boolean rgbTransparencyBlending) Sets the transparency blending colorspace to RGB. |
void | setStrictImageSequence(final boolean strictImageSequence) Use this method to set the image sequence, so that it follows the text in strict order (or not). |
void | setTagged() Mark this document for tagging. |
void | setUserProperties(final boolean userProperties) Sets the flag indicating the presence of structure elements that contain user properties attributes. |
void | setViewerPreferences(final int preferences) |
void | setXmpMetadata(final byte[] xmpMetadata) Use this method to set the XMP Metadata. |