public class PdfStamperImp extends PdfWriter
body, CenterWindow, compressionLevel, crypto, currentPdfReaderInstance, DirectionL2R, DirectionR2L, DisplayDocTitle, documentOCG, FitWindow, fullCompression, HideMenubar, HideToolbar, HideWindowUI, newBookmarks, NonFullScreenPageModeUseNone, NonFullScreenPageModeUseOC, NonFullScreenPageModeUseOutlines, NonFullScreenPageModeUseThumbs, OCGLocked, OCGRadioGroup, OCProperties, PageLayoutOneColumn, PageLayoutSinglePage, PageLayoutTwoColumnLeft, PageLayoutTwoColumnRight, PageLayoutTwoPageLeft, PageLayoutTwoPageRight, PageModeFullScreen, PageModeUseAttachments, PageModeUseNone, PageModeUseOC, PageModeUseOutlines, PageModeUseThumbs, pdf, pdf_version, PDF_VERSION_1_2, PDF_VERSION_1_3, PDF_VERSION_1_4, PDF_VERSION_1_5, PDF_VERSION_1_6, PDF_VERSION_1_7, PDFA1A, PDFA1B, PDFA2A, PDFA2B, PDFX1A2001, PDFX32002, PDFXNONE, prevxref, PrintScalingNone, root, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5, VERSION_1_6, VERSION_1_7, xmpMetadata| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(PdfAnnotation annot)
Use this methods to add a
PdfAnnotation or a PdfFormField
to the document. |
void |
addViewerPreference(PdfName key,
PdfObject value)
Adds a viewer preference
|
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.
|
PdfObject |
getFileID() |
protected int |
getNewObjectNumber(PdfReader reader,
int number,
int generation) |
PdfIndirectReference |
getPageReference(int page)
Use this method to get a reference to a page existing or not.
|
Map |
getPdfLayers()
Gets the PdfLayer objects in an existing document as a Map
with the names/titles of the layers as keys.
|
protected void |
markUsed(PdfObject obj) |
void |
setAdditionalAction(PdfName actionType,
PdfAction action)
Additional-actions defining the actions to be taken in
response to various trigger events affecting the document
as a whole.
|
void |
setDuration(int seconds)
Always throws an
UnsupportedOperationException. |
void |
setOpenAction(PdfAction action)
When the document opens this
action will be
invoked. |
void |
setOpenAction(String name)
When the document opens it will jump to the destination with
this name.
|
void |
setPageAction(PdfName actionType,
PdfAction action)
Always throws an
UnsupportedOperationException. |
void |
setSigFlags(int f)
Set the signature flags.
|
void |
setThumbnail(Image image)
Use this method to set the thumbnail image for the current page.
|
void |
setTransition(PdfTransition transition)
Always throws an
UnsupportedOperationException. |
void |
setViewerPreferences(int preferences)
Sets the viewer preferences.
|
addDeveloperExtension, addFileAttachment, addSharedObjectsToBody, addToBody, addToBody, close, createXmpMetadata, fillOCProperties, freeReader, getAcroForm, getCatalog, getCompressionLevel, getCurrentDocumentSize, getCurrentPageNumber, getDefaultColorspace, getExtraCatalog, getGroup, getImportedPage, getInfo, getInstance, getOCProperties, getPageEvent, getPageNumber, getPageSize, getPdfIndirectReference, getPDFXConformance, getReferenceJBIG2Globals, getRootOutline, getRunDirection, getSpaceCharRatio, getStructureTreeRoot, getTabs, getUserunit, isFullCompression, isPdfX, isRgbTransparencyBlending, isStrictImageSequence, isTagged, isUserProperties, open, setAtLeastPdfVersion, setCollection, setCompressionLevel, setCropBoxSize, setEncryption, setEncryption, setGroup, setInitialLeading, setOutlines, setOutputIntents, setPageEmpty, setPageEvent, setPageLabels, setPageXmpMetadata, setPdfVersion, setPdfVersion, setPDFXConformance, setRgbTransparencyBlending, setRunDirection, setSpaceCharRatio, setStrictImageSequence, setTabs, setTagged, setUserProperties, setUserunit, setXmpMetadata, writeOutlinesadd, getISOBytes, isCloseStream, isPaused, newPage, resetFooter, resetHeader, resetPageCount, setCloseStream, setFooter, setHeader, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSizeprotected int getNewObjectNumber(PdfReader reader, int number, int generation)
getNewObjectNumber in class PdfWriterpublic PdfIndirectReference getPageReference(int page)
PdfWritergetPageReference in class PdfWriterpage - the page number. The first page is 1PdfWriter.getPageReference(int)public void addAnnotation(PdfAnnotation annot)
PdfAnnotationsPdfAnnotation or a PdfFormField
to the document. Only the top parent of a PdfFormField
needs to be added.addAnnotation in interface PdfAnnotationsaddAnnotation in class PdfWriterannot - the PdfAnnotation or the PdfFormField to addPdfWriter.addAnnotation(com.aowagie.text.pdf.PdfAnnotation)public void setViewerPreferences(int preferences)
setViewerPreferences in interface PdfViewerPreferencessetViewerPreferences in class PdfWriterpreferences - the viewer preferencesPdfWriter.setViewerPreferences(int)public void addViewerPreference(PdfName key, PdfObject value)
addViewerPreference in interface PdfViewerPreferencesaddViewerPreference in class PdfWriterkey - a key for a viewer preferencevalue - the value for the viewer preferencePdfViewerPreferences.addViewerPreference(com.aowagie.text.pdf.PdfName, com.aowagie.text.pdf.PdfObject)public void setSigFlags(int f)
setSigFlags in interface PdfAnnotationssetSigFlags in class PdfWriterf - the flags. This flags are ORed with current onesPdfAnnotations.setSigFlags(int)public void setPageAction(PdfName actionType, PdfAction action) throws com.aowagie.text.pdf.PdfException
UnsupportedOperationException.setPageAction in class PdfWriteractionType - ignoreaction - ignorePdfException - ignorepublic void setDuration(int seconds)
UnsupportedOperationException.setDuration in interface PdfPageActionssetDuration in class PdfWriterseconds - ignorePdfPageActions.setDuration(int)public void setTransition(PdfTransition transition)
UnsupportedOperationException.setTransition in interface PdfPageActionssetTransition in class PdfWritertransition - ignorePdfPageActions.setTransition(com.aowagie.text.pdf.PdfTransition)protected void markUsed(PdfObject obj)
public void setAdditionalAction(PdfName actionType, PdfAction action) throws com.aowagie.text.pdf.PdfException
DOCUMENT_CLOSE,
WILL_SAVE, DID_SAVE, WILL_PRINT
and DID_PRINT.setAdditionalAction in class PdfWriteractionType - the action typeaction - the action to execute in response to the triggerPdfException - on invalid action typepublic void setOpenAction(PdfAction action)
PdfDocumentActionsaction will be
invoked.setOpenAction in interface PdfDocumentActionssetOpenAction in class PdfWriteraction - the action to be invokedPdfWriter.setOpenAction(com.aowagie.text.pdf.PdfAction)public void setOpenAction(String name)
PdfDocumentActionssetOpenAction in interface PdfDocumentActionssetOpenAction in class PdfWritername - the name of the destination to jump toPdfWriter.setOpenAction(java.lang.String)public void setThumbnail(Image image)
PdfWritersetThumbnail in class PdfWriterimage - the imagePdfWriter.setThumbnail(com.aowagie.text.Image)public PdfContentByte getDirectContentUnder()
PdfWritergetDirectContentUnder in class PdfWriterpublic PdfContentByte getDirectContent()
PdfWritergetDirectContent in class PdfWriterpublic Map getPdfLayers()
public PdfObject getFileID()
Copyright © 2021. All rights reserved.