Example usage for Java com.lowagie.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_5 possible PDF version (catalog) |
PdfName | PDF_VERSION_1_7 possible PDF version (catalog) |
int | PageLayoutSinglePage A viewer preference |
int | PageLayoutOneColumn A viewer preference |
int | PageLayoutTwoColumnLeft A viewer preference |
int | PageLayoutTwoColumnRight A viewer preference |
int | PageLayoutTwoPageLeft A viewer preference |
int | PageLayoutTwoPageRight A viewer preference |
int | PageModeUseNone A viewer preference |
int | PageModeUseOutlines A viewer preference |
int | PageModeUseThumbs A viewer preference |
int | PageModeFullScreen A viewer preference |
int | PageModeUseOC A viewer preference |
int | PageModeUseAttachments A viewer preference |
int | HideToolbar A viewer preference |
int | HideMenubar A viewer preference |
int | HideWindowUI A viewer preference |
int | FitWindow A viewer preference |
int | CenterWindow A viewer preference |
int | DisplayDocTitle A viewer preference |
int | NonFullScreenPageModeUseNone A viewer preference |
int | NonFullScreenPageModeUseOutlines A viewer preference |
int | NonFullScreenPageModeUseThumbs A viewer preference |
int | NonFullScreenPageModeUseOC A viewer preference |
int | DirectionL2R A viewer preference |
int | DirectionR2L A viewer preference |
int | PrintScalingNone A viewer preference |
int | PDFA1A PDFA-1A level. |
int | PDFA1B PDFA-1B level. |
int | STANDARD_ENCRYPTION_40 Type of encryption |
int | STANDARD_ENCRYPTION_128 Type of encryption |
int | ENCRYPTION_AES_128 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 |
int | AllowPrinting |
int | AllowModifyContents |
int | AllowCopy |
int | AllowModifyAnnotations |
int | AllowFillIn |
int | AllowScreenReaders |
int | AllowAssembly |
int | AllowDegradedPrinting |
boolean | STRENGTH40BITS |
boolean | STRENGTH128BITS |
int | RUN_DIRECTION_LTR Use bidirectional reordering with left-to-right preferential run direction. |
int | RUN_DIRECTION_RTL Use bidirectional reordering with right-to-left preferential run direction. |
void | addAnnotation(PdfAnnotation annot) |
void | addFileAttachment(PdfFileSpecification fs) Use this method to add a file attachment at the document level. |
void | addJavaScript(PdfAction js) Use this method to add a JavaScript action at the document level. |
void | addJavaScript(String code) Use this method to adds a JavaScript action at the document level. |
void | addJavaScript(String code, boolean unicode) Use this method to add a JavaScript action at the document level. |
void | addJavaScript(String name, PdfAction js) Use this method to add a JavaScript action at the document level. |
void | addJavaScript(String name, String code) Use this method to adds a JavaScript action at the document level. |
void | addOCGRadioGroup(ArrayList group) Use this method to set a collection of optional content groups whose states are intended to follow a "radio button" paradigm. |
PdfIndirectObject | addToBody(PdfObject object) Use this method to add a PDF object to the PDF body. |
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(PdfReader reader) Use this method to writes the reader to the document and free the memory used by it. |
PdfAcroForm | getAcroForm() |
Rectangle | getBoxSize(String boxName) Use this method to get the size of a trim, art, crop or bleed box, or null if not defined. |
int | getCurrentDocumentSize() Use this method to gets the current document size. |
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. |
PdfDictionary | getExtraCatalog() Sets extra keys to the catalog. |
PdfImportedPage | getImportedPage(PdfReader reader, int pageNumber) Use this method to get a page from other PDF document. |
PdfDictionary | getInfo() Use this method to get the info dictionary if you want to change it directly (add keys and values to the info dictionary). |
PdfWriter | getInstance(Document document, OutputStream os) Use this method to get an instance of the PdfWriter . |
int | getPageNumber() Gets the pagenumber of this document. |
PdfIndirectReference | getPageReference(int page) Use this method to get a reference to a page existing or not. |
PdfOutline | getRootOutline() Use this method to get the root outline and construct bookmarks. |
PdfStructureTreeRoot | getStructureTreeRoot() Gets the structure tree root. |
float | getVerticalPosition(boolean ensureNewLine) Use this method to get the current vertical page position. |
void | lockLayer(PdfLayer layer) Use this method to lock an optional content group. |
void | open() Signals that the Document has been opened and that Elements can be added. |
void | setBoxSize(String boxName, Rectangle size) Use this method to set the page box sizes. |
void | setCloseStream(boolean closeStream) Sets the close state of the stream after document close |
void | setCompressionLevel(int compressionLevel) Sets the compression level to be used for streams written by this writer. |
void | setDefaultColorspace(PdfName key, PdfObject cs) Use this method to sets the default colorspace that will be applied to all the document. |
void | setEncryption(byte userPassword[], byte ownerPassword[], int permissions, int encryptionType) |
void | setEncryption(byte userPassword[], byte ownerPassword[], int permissions, boolean strength128Bits) 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 | setFullCompression() Use this method to set the document's compression to the PDF 1.5 mode with object streams and xref streams. |
void | setInitialLeading(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 | setOpenAction(String name) |
void | setOpenAction(PdfAction action) |
void | setPageEmpty(boolean pageEmpty) Use this method to make sure a page is added, even if it's empty. |
void | setPageEvent(PdfPageEvent event) Sets the PdfPageEvent for this document. |
void | setPageLabels(PdfPageLabels pageLabels) Use this method to add page labels |
void | setPageXmpMetadata(byte[] xmpMetadata) Use this method to set the XMP Metadata for each page. |
void | setPdfVersion(char version) |
void | setPdfVersion(PdfName version) |
void | setPDFXConformance(int pdfx) |
void | setRgbTransparencyBlending(boolean rgbTransparencyBlending) Sets the transparency blending colorspace to RGB. |
void | setStrictImageSequence(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 | setViewerPreferences(int preferences) |
void | setXmpMetadata(byte[] xmpMetadata) Use this method to set the XMP Metadata. |