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

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

Introduction

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

The text is from its open source code.

Subclass

com.lowagie.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_5
possible PDF version (catalog)
PdfNamePDF_VERSION_1_7
possible PDF version (catalog)
intPageLayoutSinglePage
A viewer preference
intPageLayoutOneColumn
A viewer preference
intPageLayoutTwoColumnLeft
A viewer preference
intPageLayoutTwoColumnRight
A viewer preference
intPageLayoutTwoPageLeft
A viewer preference
intPageLayoutTwoPageRight
A viewer preference
intPageModeUseNone
A viewer preference
intPageModeUseOutlines
A viewer preference
intPageModeUseThumbs
A viewer preference
intPageModeFullScreen
A viewer preference
intPageModeUseOC
A viewer preference
intPageModeUseAttachments
A viewer preference
intHideToolbar
A viewer preference
intHideMenubar
A viewer preference
intHideWindowUI
A viewer preference
intFitWindow
A viewer preference
intCenterWindow
A viewer preference
intDisplayDocTitle
A viewer preference
intNonFullScreenPageModeUseNone
A viewer preference
intNonFullScreenPageModeUseOutlines
A viewer preference
intNonFullScreenPageModeUseThumbs
A viewer preference
intNonFullScreenPageModeUseOC
A viewer preference
intDirectionL2R
A viewer preference
intDirectionR2L
A viewer preference
intPrintScalingNone
A viewer preference
intPDFA1A
PDFA-1A level.
intPDFA1B
PDFA-1B level.
intSTANDARD_ENCRYPTION_40
Type of encryption
intSTANDARD_ENCRYPTION_128
Type of encryption
intENCRYPTION_AES_128
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
intAllowPrinting
intAllowModifyContents
intAllowCopy
intAllowModifyAnnotations
intAllowFillIn
intAllowScreenReaders
intAllowAssembly
intAllowDegradedPrinting
booleanSTRENGTH40BITS
booleanSTRENGTH128BITS
intRUN_DIRECTION_LTR
Use bidirectional reordering with left-to-right preferential run direction.
intRUN_DIRECTION_RTL
Use bidirectional reordering with right-to-left preferential run direction.

Method

voidaddAnnotation(PdfAnnotation annot)
voidaddFileAttachment(PdfFileSpecification fs)
Use this method to add a file attachment at the document level.
voidaddJavaScript(PdfAction js)
Use this method to add a JavaScript action at the document level.
voidaddJavaScript(String code)
Use this method to adds a JavaScript action at the document level.
voidaddJavaScript(String code, boolean unicode)
Use this method to add a JavaScript action at the document level.
voidaddJavaScript(String name, PdfAction js)
Use this method to add a JavaScript action at the document level.
voidaddJavaScript(String name, String code)
Use this method to adds a JavaScript action at the document level.
voidaddOCGRadioGroup(ArrayList group)
Use this method to set a collection of optional content groups whose states are intended to follow a "radio button" paradigm.
PdfIndirectObjectaddToBody(PdfObject object)
Use this method to add a PDF object to the PDF body.
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(PdfReader reader)
Use this method to writes the reader to the document and free the memory used by it.
PdfAcroFormgetAcroForm()
RectanglegetBoxSize(String boxName)
Use this method to get the size of a trim, art, crop or bleed box, or null if not defined.
intgetCurrentDocumentSize()
Use this method to gets the current document size.
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.
PdfDictionarygetExtraCatalog()
Sets extra keys to the catalog.
PdfImportedPagegetImportedPage(PdfReader reader, int pageNumber)
Use this method to get a page from other PDF document.
PdfDictionarygetInfo()
Use this method to get the info dictionary if you want to change it directly (add keys and values to the info dictionary).
PdfWritergetInstance(Document document, OutputStream os)
Use this method to get an instance of the PdfWriter.
intgetPageNumber()
Gets the pagenumber of this document.
PdfIndirectReferencegetPageReference(int page)
Use this method to get a reference to a page existing or not.
PdfOutlinegetRootOutline()
Use this method to get the root outline and construct bookmarks.
PdfStructureTreeRootgetStructureTreeRoot()
Gets the structure tree root.
floatgetVerticalPosition(boolean ensureNewLine)
Use this method to get the current vertical page position.
voidlockLayer(PdfLayer layer)
Use this method to lock an optional content group.
voidopen()
Signals that the Document has been opened and that Elements can be added.
voidsetBoxSize(String boxName, Rectangle size)
Use this method to set the page box sizes.
voidsetCloseStream(boolean closeStream)
Sets the close state of the stream after document close
voidsetCompressionLevel(int compressionLevel)
Sets the compression level to be used for streams written by this writer.
voidsetDefaultColorspace(PdfName key, PdfObject cs)
Use this method to sets the default colorspace that will be applied to all the document.
voidsetEncryption(byte userPassword[], byte ownerPassword[], int permissions, int encryptionType)
voidsetEncryption(byte userPassword[], byte ownerPassword[], int permissions, boolean strength128Bits)
Sets the encryption options for this document.
voidsetEncryption(boolean strength, String userPassword, String ownerPassword, int permissions)
Sets the encryption options for this document.
voidsetEncryption(int encryptionType, String userPassword, String ownerPassword, 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(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).
voidsetOpenAction(String name)
voidsetOpenAction(PdfAction action)
voidsetPageEmpty(boolean pageEmpty)
Use this method to make sure a page is added, even if it's empty.
voidsetPageEvent(PdfPageEvent event)
Sets the PdfPageEvent for this document.
voidsetPageLabels(PdfPageLabels pageLabels)
Use this method to add page labels
voidsetPageXmpMetadata(byte[] xmpMetadata)
Use this method to set the XMP Metadata for each page.
voidsetPdfVersion(char version)
voidsetPdfVersion(PdfName version)
voidsetPDFXConformance(int pdfx)
voidsetRgbTransparencyBlending(boolean rgbTransparencyBlending)
Sets the transparency blending colorspace to RGB.
voidsetStrictImageSequence(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.
voidsetViewerPreferences(int preferences)
voidsetXmpMetadata(byte[] xmpMetadata)
Use this method to set the XMP Metadata.