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, xmpWriter
add, 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, writeOutlines
add, addTabs, flush, getISOBytes, isCloseStream, isPaused, newPage, pause, resetPageCount, resume, setCloseStream, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSize, write, write, writeEnd, writeEnd, writeMarkupAttributes, writeStart
protected 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 PdfWriter
IOException
PdfWriter.setOutputIntents(String, String, String, String, ICC_Profile)
public void setPDFXConformance(int pdfx)
setPDFXConformance
in class PdfWriter
pdfx
- protected TtfUnicodeWriter getTtfUnicodeWriter()
getTtfUnicodeWriter
in class PdfWriter
PdfWriter.getTtfUnicodeWriter()
protected XmpWriter createXmpWriter(ByteArrayOutputStream baos, PdfDictionary info) throws IOException
createXmpWriter
in class PdfWriter
IOException
PdfWriter.createXmpWriter(java.io.ByteArrayOutputStream, com.itextpdf.text.pdf.PdfDictionary)
protected XmpWriter createXmpWriter(ByteArrayOutputStream baos, HashMap<String,String> info) throws IOException
createXmpWriter
in class PdfWriter
IOException
protected PdfIsoConformance initPdfIsoConformance()
initPdfIsoConformance
in class PdfWriter
PdfWriter.initPdfIsoConformance()
protected Counter getCounter()
protected void cacheObject(PdfIndirectObject iobj)
cacheObject
in class PdfWriter
protected void close(Map<String,String> moreInfo) throws IOException
IOException
public PdfAnnotation createAnnotation(Rectangle rect, PdfName subtype)
createAnnotation
in class PdfWriter
public PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfString title, PdfString content, PdfName subtype)
createAnnotation
in class PdfWriter
public PdfAnnotation createAnnotation(float llx, float lly, float urx, float ury, PdfAction action, PdfName subtype)
createAnnotation
in class PdfWriter
public XMPMeta getXmpMeta()
protected void setViewerPreferences()
protected void close(PdfIndirectReference arg0, int arg1) throws IOException
IOException
protected void alterContents() throws IOException
IOException
protected int getNewObjectNumber(PdfReader arg0, int arg1, int arg2)
getNewObjectNumber
in class PdfWriter
public void registerReader(PdfReader arg0, boolean arg1) throws IOException
IOException
public void unRegisterReader(PdfReader arg0)
public void addComments(FdfReader arg0) throws IOException
IOException
protected void flatFields()
public void setFlatAnnotations(boolean arg0)
protected void flattenAnnotations()
protected void flatFreeTextFields()
public PdfIndirectReference getPageReference(int arg0)
getPageReference
in class PdfWriter
public void addAnnotation(PdfAnnotation arg0)
addAnnotation
in interface PdfAnnotations
addAnnotation
in class PdfWriter
protected void addFieldResources() throws IOException
IOException
protected void setJavaScript() throws IOException
IOException
protected void addFileAttachments() throws IOException
IOException
protected void setOutlines() throws IOException
IOException
public void setViewerPreferences(int arg0)
setViewerPreferences
in interface PdfViewerPreferences
setViewerPreferences
in class PdfWriter
public void addViewerPreference(PdfName arg0, PdfObject arg1)
addViewerPreference
in interface PdfViewerPreferences
addViewerPreference
in class PdfWriter
public void setSigFlags(int arg0)
setSigFlags
in interface PdfAnnotations
setSigFlags
in class PdfWriter
public void setPageAction(PdfName arg0, PdfAction arg1) throws PdfException
setPageAction
in interface PdfPageActions
setPageAction
in class PdfWriter
PdfException
public void setDuration(int arg0)
setDuration
in interface PdfPageActions
setDuration
in class PdfWriter
public void setTransition(PdfTransition arg0)
setTransition
in interface PdfPageActions
setTransition
in class PdfWriter
protected void markUsed(PdfObject arg0)
protected void markUsed(int arg0)
public PdfReader getPdfReader()
public void setAdditionalAction(PdfName arg0, PdfAction arg1) throws PdfException
setAdditionalAction
in interface PdfDocumentActions
setAdditionalAction
in class PdfWriter
PdfException
public void setOpenAction(PdfAction arg0)
setOpenAction
in interface PdfDocumentActions
setOpenAction
in class PdfWriter
public void setOpenAction(String arg0)
setOpenAction
in interface PdfDocumentActions
setOpenAction
in class PdfWriter
public void setThumbnail(Image arg0)
setThumbnail
in class PdfWriter
public PdfContentByte getDirectContentUnder()
getDirectContentUnder
in class PdfWriter
public PdfContentByte getDirectContent()
getDirectContent
in class PdfWriter
protected void readOCProperties()
public void createXmpMetadata()
createXmpMetadata
in class PdfWriter
protected void updateNamedDestinations() throws IOException
IOException
Copyright © 2017. All rights reserved.