Java com.itextpdf.text.pdf PdfWriter fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.text.pdf PdfWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.text.pdf PdfWriter.

The text is from its open source code.

Subclass

com.itextpdf.text.pdf.PdfWriter has subclasses.
Click this link to see all its subclasses.

Field

charVERSION_1_2
possible PDF version (header)
charVERSION_1_3
possible PDF version (header)
charVERSION_1_4
possible PDF version (header)
charVERSION_1_5
possible PDF version (header)
charVERSION_1_6
possible PDF version (header)
charVERSION_1_7
possible PDF version (header)
PdfNamePDF_VERSION_1_2
possible PDF version (catalog)
PdfNamePDF_VERSION_1_3
possible PDF version (catalog)
PdfNamePDF_VERSION_1_4
possible PDF version (catalog)
PdfNamePDF_VERSION_1_5
possible PDF version (catalog)
PdfNamePDF_VERSION_1_6
possible PDF version (catalog)
PdfNamePDF_VERSION_1_7
possible PDF version (catalog)
intPageLayoutSinglePage
A viewer preference
intPageModeUseOutlines
A viewer preference
intPageModeUseOC
A viewer preference
intFitWindow
A viewer preference
intDisplayDocTitle
A viewer preference
intPrintScalingNone
A viewer preference
intPDFX1A2001
A PDF/X level.
intSTANDARD_ENCRYPTION_40
Type of encryption
intSTANDARD_ENCRYPTION_128
Type of encryption
intENCRYPTION_AES_128
Type of encryption
intENCRYPTION_AES_256
Type of encryption
intDO_NOT_ENCRYPT_METADATA
Add this to the mode to keep the metadata in clear text
intALLOW_PRINTING
The operation permitted when the document is opened with the user password
intALLOW_MODIFY_CONTENTS
The operation permitted when the document is opened with the user password
intALLOW_COPY
The operation permitted when the document is opened with the user password
intALLOW_MODIFY_ANNOTATIONS
The operation permitted when the document is opened with the user password
intALLOW_FILL_IN
The operation permitted when the document is opened with the user password
intALLOW_SCREENREADERS
The operation permitted when the document is opened with the user password
intALLOW_ASSEMBLY
The operation permitted when the document is opened with the user password
intALLOW_DEGRADED_PRINTING
The operation permitted when the document is opened with the user password
PdfNamePAGE_OPEN
action value
intRUN_DIRECTION_DEFAULT
Use the default run direction.
intRUN_DIRECTION_RTL
Use bidirectional reordering with right-to-left preferential run direction.

Method

voidaddAnnotation(final PdfAnnotation annot)
PdfNameaddDirectImageSimple(final Image image)
Use this method to adds an image to the document but not to the page resources.
voidaddJavaScript(final String code, final boolean unicode)
Use this method to add a JavaScript action at the document level.
voidaddJavaScript(final String name, final PdfAction js)
Use this method to add a JavaScript action at the document level.
voidaddJavaScript(final String name, final String code)
Use this method to adds a JavaScript action at the document level.
voidaddPageDictEntry(final PdfName key, final PdfObject object)
Adds an additional entry for the page dictionary.
voidclose()
Signals that the Document was closed and that no other Elements will be added.
voidcreateXmpMetadata()
Use this method to creates XMP Metadata based on the metadata in the PdfDocument.
voidflush()
Flushes the BufferedOutputStream.
voidfreeReader(final PdfReader reader)
Use this method to writes the reader to the document and free the memory used by it.
PdfAcroFormgetAcroForm()
RectanglegetBoxSize(final String boxName)
Use this method to get the size of a trim, art, crop or bleed box, or null if not defined.
intgetCurrentPageNumber()
PdfContentBytegetDirectContent()
Use this method to get the direct content for this document.
PdfContentBytegetDirectContentUnder()
Use this method to get the direct content under for this document.
PdfImportedPagegetImportedPage(final PdfReader reader, final int pageNumber)
Use this method to get a page from other PDF document.
PdfWritergetInstance(final Document document, final OutputStream os)
Use this method to get an instance of the PdfWriter.
PdfPageEventgetPageEvent()
Gets the PdfPageEvent for this document or null if none is set.
intgetPageNumber()
Gets the pagenumber of this document.
RectanglegetPageSize()
Use this method to get the size of the media box.
PdfOutlinegetRootOutline()
Use this method to get the root outline and construct bookmarks.
PdfStructureTreeRootgetStructureTreeRoot()
Gets the structure tree root.
floatgetVerticalPosition(final boolean ensureNewLine)
Use this method to get the current vertical page position.
booleannewPage()
Signals that an new page has to be started.
voidopen()
Signals that the Document has been opened and that Elements can be added.
voidreleaseTemplate(final PdfTemplate tp)
Use this method to releases the memory used by a template.
intreorderPages(final int order[])
Use this method to reorder the pages in the document.
voidsetBoxSize(final String boxName, final Rectangle size)
Use this method to set the page box sizes.
voidsetCompressionLevel(final int compressionLevel)
Sets the compression level to be used for streams written by this writer.
voidsetCropBoxSize(final Rectangle crop)
Use this method to set the crop box.
voidsetDefaultColorspace(final PdfName key, final PdfObject cs)
Use this method to sets the default colorspace that will be applied to all the document.
voidsetEncryption(final byte userPassword[], final byte ownerPassword[], final int permissions, final int encryptionType)
Sets the encryption options for this document.
voidsetEncryption(final byte userPassword[], final byte ownerPassword[], final int permissions, final boolean strength128Bits)
Sets the encryption options for this document.
voidsetEncryption(final boolean strength, final String userPassword, final String ownerPassword, final int permissions)
Sets the encryption options for this document.
voidsetEncryption(final int encryptionType, final String userPassword, final String ownerPassword, final int permissions)
Sets the encryption options for this document.
voidsetFullCompression()
Use this method to set the document's compression to the PDF 1.5 mode with object streams and xref streams.
voidsetInitialLeading(final float leading)
Sets the initial leading for the PDF document.
voidsetLinearPageMode()
Use this method to make sure the page tree has a linear structure (every leave is attached directly to the root).
voidsetOutlines(final List> outlines)
Sets the bookmarks.
voidsetOutputIntents(final String outputConditionIdentifier, final String outputCondition, final String registryName, final String info, final ICC_Profile colorProfile)
Sets the values of the output intent dictionary.
voidsetOutputIntents(final String outputConditionIdentifier, final String outputCondition, final String registryName, final String info, final byte destOutputProfile[])
Sets the values of the output intent dictionary.
voidsetPageEmpty(final boolean pageEmpty)
Use this method to make sure a page is added, even if it's empty.
voidsetPageEvent(final PdfPageEvent event)
Sets the PdfPageEvent for this document.
voidsetPdfVersion(final char version)
voidsetPdfVersion(final PdfName version)
voidsetPDFXConformance(final int pdfx)
voidsetRgbTransparencyBlending(final boolean rgbTransparencyBlending)
Sets the transparency blending colorspace to RGB.
voidsetStrictImageSequence(final boolean strictImageSequence)
Use this method to set the image sequence, so that it follows the text in strict order (or not).
voidsetTagged()
Mark this document for tagging.
voidsetUserProperties(final boolean userProperties)
Sets the flag indicating the presence of structure elements that contain user properties attributes.
voidsetViewerPreferences(final int preferences)
voidsetXmpMetadata(final byte[] xmpMetadata)
Use this method to set the XMP Metadata.