public class PdfAStamperImp extends PdfWriter
PdfWriter.PdfBody, PdfWriter.PdfTrailer| Modifier and Type | Field and Description |
|---|---|
protected AcroFields |
acroFields |
protected boolean |
append |
protected boolean |
closed |
protected Counter |
COUNTER |
protected boolean |
fieldsAdded |
protected HashSet<PdfTemplate> |
fieldTemplates |
protected RandomAccessFileOrArray |
file |
protected boolean |
flat |
protected boolean |
flatannotations |
protected boolean |
flatFreeText |
protected int |
initialXrefSize |
protected IntHashtable |
marked |
protected HashMap<Object,PdfObject> |
namedDestinations |
protected int[] |
namePtr |
protected PdfAction |
openAction |
protected HashSet<String> |
partialFlattening |
protected int |
sigFlags |
protected boolean |
useVp |
protected PdfViewerPreferencesImp |
viewerPreferences |
ALLOW_ASSEMBLY, ALLOW_COPY, ALLOW_DEGRADED_PRINTING, ALLOW_FILL_IN, ALLOW_MODIFY_ANNOTATIONS, ALLOW_MODIFY_CONTENTS, ALLOW_PRINTING, ALLOW_SCREENREADERS, AllowAssembly, AllowCopy, AllowDegradedPrinting, AllowFillIn, AllowModifyAnnotations, AllowModifyContents, AllowPrinting, AllowScreenReaders, body, CenterWindow, colorNumber, colorProfile, compressionLevel, crypto, currentPageNumber, currentPdfReaderInstance, defaultColorspace, DID_PRINT, DID_SAVE, directContent, directContentUnder, DirectionL2R, DirectionR2L, DisplayDocTitle, DO_NOT_ENCRYPT_METADATA, DOCUMENT_CLOSE, documentColors, documentExtGState, documentFonts, documentOCG, documentOCGorder, documentPatterns, documentProperties, documentShadingPatterns, documentShadings, documentSpotPatterns, EMBEDDED_FILES_ONLY, ENCRYPTION_AES_128, ENCRYPTION_AES_256, extraCatalog, FitWindow, fontNumber, formXObjects, formXObjectsCounter, fullCompression, GENERATION_MAX, group, HideMenubar, HideToolbar, HideWindowUI, imageDictionary, JBIG2Globals, markAll, markInlineElementsOnly, newBookmarks, NO_SPACE_CHAR_RATIO, NonFullScreenPageModeUseNone, NonFullScreenPageModeUseOC, NonFullScreenPageModeUseOutlines, NonFullScreenPageModeUseThumbs, OCGLocked, OCGRadioGroup, OCProperties, originalFileID, PAGE_CLOSE, PAGE_OPEN, pageDictEntries, PageLayoutOneColumn, PageLayoutSinglePage, PageLayoutTwoColumnLeft, PageLayoutTwoColumnRight, PageLayoutTwoPageLeft, PageLayoutTwoPageRight, PageModeFullScreen, PageModeUseAttachments, PageModeUseNone, PageModeUseOC, PageModeUseOutlines, PageModeUseThumbs, pageReferences, patternColorspaceCMYK, patternColorspaceGRAY, patternColorspaceRGB, patternNumber, 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, pdfIsoConformance, PDFX1A2001, PDFX32002, PDFXNONE, prevxref, PrintScalingNone, readerInstances, root, RUN_DIRECTION_DEFAULT, RUN_DIRECTION_LTR, RUN_DIRECTION_NO_BIDI, RUN_DIRECTION_RTL, runDirection, SIGNATURE_APPEND_ONLY, SIGNATURE_EXISTS, SPACE_CHAR_RATIO_DEFAULT, STANDARD_ENCRYPTION_128, STANDARD_ENCRYPTION_40, STRENGTH128BITS, STRENGTH40BITS, structureTreeRoot, tabs, tagged, taggingMode, ttfUnicodeWriter, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5, VERSION_1_6, VERSION_1_7, WILL_PRINT, WILL_SAVE, xmpMetadata, xmpWriteradd, addCalculationOrder, addDeveloperExtension, addDirectImageSimple, addDirectImageSimple, addFileAttachment, addFileAttachment, addFileAttachment, addJavaScript, addJavaScript, addJavaScript, addJavaScript, addJavaScript, addJavaScript, addNamedDestination, addNamedDestinations, addOCGRadioGroup, addPageDictEntry, addSharedObjectsToBody, addToBody, addToBody, addToBody, addToBody, addToBody, addToBody, addXFormsToBody, buildStructTreeRootForTagged, checkElementRole, checkPdfIsoConformance, checkPdfIsoConformance, clearTextWrap, close, fillOCProperties, flushAcroFields, flushTaggedObjects, freeReader, getAcroForm, getBoxSize, getBoxSize, getCatalog, getColorProfile, getCompressionLevel, getCurrentDocumentSize, getCurrentPageNumber, getDefaultColorspace, getExtraCatalog, getGroup, getImportedPage, getIndirectReferenceNumber, getInfo, getInstance, getInstance, getNameString, getOCProperties, getOs, getPageDictEntries, getPageEvent, getPageNumber, getPageSize, getPdfIndirectReference, getPdfReaderInstance, getPDFXConformance, getReferenceJBIG2Globals, getRootOutline, getRunDirection, getSpaceCharRatio, getStandardStructElems, getStructureTreeRoot, getTabs, getVerticalPosition, getXmpWriter, isFullCompression, isPageEmpty, isPdfIso, isPdfX, isRgbTransparencyBlending, isStrictImageSequence, isTagged, isUserProperties, lockLayer, needToBeMarkedInContent, open, releaseTemplate, reorderPages, resetPageDictEntries, setAtLeastPdfVersion, setBoxSize, setCollection, setCompressionLevel, setCropBoxSize, setDefaultColorspace, setEncryption, setEncryption, setEncryption, setEncryption, setEncryption, setFullCompression, setGroup, setInitialLeading, setLanguage, setLinearPageMode, setOutlines, setOutputIntents, setOutputIntents, setPageEmpty, setPageEvent, setPageLabels, setPageViewport, setPageXmpMetadata, setPdfVersion, setPdfVersion, setRgbTransparencyBlending, setRunDirection, setSpaceCharRatio, setStrictImageSequence, setTabs, setTagged, setTagged, setUserProperties, setUserunit, setXmpMetadata, useExternalCacheForTagStructure, writeKeyInfo, writeOutlinesadd, addTabs, flush, getISOBytes, isCloseStream, isPaused, newPage, pause, resetPageCount, resume, setCloseStream, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSize, write, write, writeEnd, writeEnd, writeMarkupAttributes, writeStartprotected Counter COUNTER
protected RandomAccessFileOrArray file
protected boolean closed
protected AcroFields acroFields
protected boolean flat
protected boolean flatFreeText
protected boolean flatannotations
protected int[] namePtr
protected boolean useVp
protected PdfViewerPreferencesImp viewerPreferences
protected HashSet<PdfTemplate> fieldTemplates
protected boolean fieldsAdded
protected int sigFlags
protected boolean append
protected IntHashtable marked
protected int initialXrefSize
protected PdfAction openAction
protected void readColorProfile()
public void setOutputIntents(String outputConditionIdentifier, String outputCondition, String registryName, String info, ICC_Profile colorProfile) throws IOException
setOutputIntents in class PdfWriterIOExceptionPdfWriter.setOutputIntents(String, String, String, String, ICC_Profile)public void setPDFXConformance(int pdfx)
setPDFXConformance in class PdfWriterpdfx - protected TtfUnicodeWriter getTtfUnicodeWriter()
getTtfUnicodeWriter in class PdfWriterPdfWriter.getTtfUnicodeWriter()protected XmpWriter createXmpWriter(ByteArrayOutputStream baos, PdfDictionary info) throws IOException
createXmpWriter in class PdfWriterIOExceptionPdfWriter.createXmpWriter(java.io.ByteArrayOutputStream, com.itextpdf.text.pdf.PdfDictionary)protected XmpWriter createXmpWriter(ByteArrayOutputStream baos, HashMap<String,String> info) throws IOException
createXmpWriter in class PdfWriterIOExceptionprotected PdfIsoConformance initPdfIsoConformance()
initPdfIsoConformance in class PdfWriterPdfWriter.initPdfIsoConformance()protected Counter getCounter()
protected void cacheObject(PdfIndirectObject iobj)
cacheObject in class PdfWriterprotected void close(Map<String,String> moreInfo) throws IOException
IOExceptionpublic PdfAnnotation createAnnotation(Rectangle rect, PdfName subtype)
createAnnotation in class PdfWriterpublic PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfString title, PdfString content, PdfName subtype)
createAnnotation in class PdfWriterpublic PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfAction action, PdfName subtype)
createAnnotation in class PdfWriterpublic XMPMeta getXmpMeta()
protected void setViewerPreferences()
protected void close(PdfIndirectReference arg0, int arg1) throws IOException
IOExceptionprotected void alterContents()
throws IOException
IOExceptionprotected int getNewObjectNumber(PdfReader arg0, int arg1, int arg2)
getNewObjectNumber in class PdfWriterpublic void registerReader(PdfReader arg0, boolean arg1) throws IOException
IOExceptionpublic void unRegisterReader(PdfReader arg0)
public void addComments(FdfReader arg0) throws IOException
IOExceptionprotected void flatFields()
public void setFlatAnnotations(boolean arg0)
protected void flattenAnnotations()
protected void flatFreeTextFields()
public PdfIndirectReference getPageReference(int arg0)
getPageReference in class PdfWriterpublic void addAnnotation(PdfAnnotation arg0)
addAnnotation in interface PdfAnnotationsaddAnnotation in class PdfWriterprotected void addFieldResources()
throws IOException
IOExceptionprotected void setJavaScript()
throws IOException
IOExceptionprotected void addFileAttachments()
throws IOException
IOExceptionprotected void setOutlines()
throws IOException
IOExceptionpublic void setViewerPreferences(int arg0)
setViewerPreferences in interface PdfViewerPreferencessetViewerPreferences in class PdfWriterpublic void addViewerPreference(PdfName arg0, PdfObject arg1)
addViewerPreference in interface PdfViewerPreferencesaddViewerPreference in class PdfWriterpublic void setSigFlags(int arg0)
setSigFlags in interface PdfAnnotationssetSigFlags in class PdfWriterpublic void setPageAction(PdfName arg0, PdfAction arg1) throws PdfException
setPageAction in interface PdfPageActionssetPageAction in class PdfWriterPdfExceptionpublic void setDuration(int arg0)
setDuration in interface PdfPageActionssetDuration in class PdfWriterpublic void setTransition(PdfTransition arg0)
setTransition in interface PdfPageActionssetTransition in class PdfWriterprotected void markUsed(PdfObject arg0)
protected void markUsed(int arg0)
public PdfReader getPdfReader()
public void setAdditionalAction(PdfName arg0, PdfAction arg1) throws PdfException
setAdditionalAction in interface PdfDocumentActionssetAdditionalAction in class PdfWriterPdfExceptionpublic void setOpenAction(PdfAction arg0)
setOpenAction in interface PdfDocumentActionssetOpenAction in class PdfWriterpublic void setOpenAction(String arg0)
setOpenAction in interface PdfDocumentActionssetOpenAction in class PdfWriterpublic void setThumbnail(Image arg0)
setThumbnail in class PdfWriterpublic PdfContentByte getDirectContentUnder()
getDirectContentUnder in class PdfWriterpublic PdfContentByte getDirectContent()
getDirectContent in class PdfWriterprotected void readOCProperties()
public void createXmpMetadata()
createXmpMetadata in class PdfWriterprotected void updateNamedDestinations()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.