Package com.itextpdf.text.pdf
Class PdfCopyFieldsImp
java.lang.Object
com.itextpdf.text.DocWriter
com.itextpdf.text.pdf.PdfWriter
com.itextpdf.text.pdf.PdfCopyFieldsImp
- All Implemented Interfaces:
DocListener,ElementListener,PdfAnnotations,PdfDocumentActions,PdfEncryptionSettings,PdfPageActions,PdfRunDirection,PdfVersion,PdfViewerPreferences,EventListener
- Direct Known Subclasses:
PdfCopyFormsImp
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.itextpdf.text.pdf.PdfWriter
PdfWriter.PdfBody, PdfWriter.PdfTrailer -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.Deprecated.(package private) booleanDeprecated.protected CounterDeprecated.Deprecated.(package private) ArrayList<AcroFields> Deprecated.Deprecated.(package private) RandomAccessFileOrArrayDeprecated.(package private) PdfDictionaryDeprecated.private booleanDeprecated.private static final PdfNameDeprecated.Deprecated.(package private) DocumentDeprecated.private booleanDeprecated.(package private) ArrayList<PdfDictionary> Deprecated.(package private) ArrayList<PdfIndirectReference> Deprecated.(package private) HashMap<PdfReader, IntHashtable> Deprecated.Deprecated.(package private) HashMap<PdfReader, IntHashtable> Deprecated.(package private) PdfDictionaryDeprecated.Deprecated.(package private) HashMap<PdfReader, IntHashtable> Deprecated.Deprecated.private static final IntegerDeprecated.Fields inherited from class com.itextpdf.text.pdf.PdfWriter
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, ENCRYPTION_MASK, 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddDocument(PdfReader reader) Deprecated.(package private) voidaddDocument(PdfReader reader, List<Integer> pagesToKeep) Deprecated.(package private) voidaddPageOffsetToField(Map<String, AcroFields.Item> fd, int pageOffset) Deprecated.private voidadjustTabOrder(PdfArray annots, PdfIndirectReference ind, PdfNumber nn) Deprecated.protected PdfArraybranchForm(HashMap<String, Object> level, PdfIndirectReference parent, String fname) Deprecated.voidclose()Deprecated.Signals that theDocumentwas closed and that no otherElementswill be added.protected voidcloseIt()Deprecated.Creates the new PDF by merging the fields and forms.protected voidDeprecated.(package private) voidcreateWidgets(ArrayList<Object> list, AcroFields.Item item) Deprecated.protected PdfDictionarygetCatalog(PdfIndirectReference rootObj) Deprecated.private static StringgetCOName(PdfReader reader, PRIndirectReference ref) Deprecated.protected CounterDeprecated.protected intgetNewObjectNumber(PdfReader reader, int number, int generation) Deprecated.protected PdfIndirectReferenceDeprecated.protected PdfNamegetOffStateName(PdfDictionary widget) Deprecated.getPageReference(int page) Deprecated.Use this method to get a reference to a page existing or not.(package private) RandomAccessFileOrArraygetReaderFile(PdfReader reader) Deprecated.protected booleanDeprecated.Checks if a reference refers to a page object.protected booleanDeprecated.protected booleanDeprecated.Checks if a reference has already been "visited" in the copy process.(package private) voidmergeField(String name, AcroFields.Item item) Deprecated.(package private) voidDeprecated.(package private) voidDeprecated.voidopenDoc()Deprecated.(package private) voidpropagate(PdfObject obj, PdfIndirectReference refo, boolean restricted) Deprecated.protected booleanDeprecated.Sets a reference to "visited" in the copy process.protected voidupdateCalculationOrder(PdfReader reader) Deprecated.Methods inherited from class com.itextpdf.text.pdf.PdfWriter
add, add, add, addAnnotation, addAnnotation, addCalculationOrder, addDeveloperExtension, addDirectImageSimple, addDirectImageSimple, addDirectTemplateSimple, addFileAttachment, addFileAttachment, addFileAttachment, addJavaScript, addJavaScript, addJavaScript, addJavaScript, addJavaScript, addJavaScript, addLocalDestinations, addNamedDestination, addNamedDestinations, addOCGRadioGroup, addPageDictEntry, addSharedObjectsToBody, addSimple, addSimple, addSimpleExtGState, addSimplePattern, addSimplePatternColorspace, addSimpleProperty, addSimpleShading, addSimpleShadingPattern, addToBody, addToBody, addToBody, addToBody, addToBody, addToBody, addViewerPreference, addXFormsToBody, buildStructTreeRootForTagged, cacheObject, checkElementRole, checkPdfIsoConformance, checkPdfIsoConformance, clearTextWrap, createAnnotation, createAnnotation, createAnnotation, createXmpMetadata, createXmpWriter, createXmpWriter, eliminateFontSubset, fillOCProperties, flushAcroFields, flushTaggedObjects, freeReader, getAcroForm, getBoxSize, getBoxSize, getColorProfile, getColorspaceName, getCompressionLevel, getCurrentDocumentSize, getCurrentPage, getCurrentPageNumber, getDefaultColorspace, getDirectContent, getDirectContentUnder, getEncryption, getExtraCatalog, getGroup, getImageReference, getImportedPage, getIndirectReferenceNumber, getInfo, getInstance, getInstance, getNameString, getOCProperties, getOs, getPageDictEntries, getPageEvent, getPageNumber, getPageSize, getPdfDocument, getPdfIndirectReference, getPdfReaderInstance, getPdfVersion, getPDFXConformance, getReferenceJBIG2Globals, getRootOutline, getRunDirection, getSpaceCharRatio, getStandardStructElems, getStructureTreeRoot, getTabs, getTtfUnicodeWriter, getVerticalPosition, getXmpWriter, initPdfIsoConformance, isFullCompression, isPageEmpty, isPdfIso, isPdfX, isRgbTransparencyBlending, isStrictImageSequence, isTagged, isUserProperties, lockLayer, needToBeMarkedInContent, open, propertyExists, registerLayer, releaseTemplate, reorderPages, resetContent, resetPageDictEntries, setAdditionalAction, setAtLeastPdfVersion, setBoxSize, setCollection, setCompressionLevel, setCropBoxSize, setDefaultColorspace, setDuration, setEncryption, setEncryption, setEncryption, setEncryption, setEncryption, setFullCompression, setGroup, setInitialLeading, setLanguage, setLinearPageMode, setOpenAction, setOpenAction, setOutlines, setOutputIntents, setOutputIntents, setOutputIntents, setPageAction, setPageEmpty, setPageEvent, setPageLabels, setPageViewport, setPageXmpMetadata, setPdfVersion, setPdfVersion, setPDFXConformance, setRgbTransparencyBlending, setRunDirection, setSigFlags, setSpaceCharRatio, setStrictImageSequence, setTabs, setTagged, setTagged, setThumbnail, setTransition, setUserProperties, setUserunit, setViewerPreferences, setXmpMetadata, useExternalCacheForTagStructure, writeKeyInfo, writeOutlinesMethods inherited from class com.itextpdf.text.DocWriter
add, addTabs, flush, getISOBytes, isCloseStream, isPaused, newPage, pause, resetPageCount, resume, setCloseStream, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSize, write, write, writeEnd, writeEnd, writeMarkupAttributes, writeStart
-
Field Details
-
iTextTag
Deprecated. -
zero
Deprecated. -
readers
Deprecated. -
readers2intrefs
HashMap<PdfReader,IntHashtable> readers2intrefsDeprecated. -
pages2intrefs
HashMap<PdfReader,IntHashtable> pages2intrefsDeprecated. -
visited
HashMap<PdfReader,IntHashtable> visitedDeprecated. -
fields
ArrayList<AcroFields> fieldsDeprecated. -
file
Deprecated. -
fieldTree
Deprecated. -
pageRefs
ArrayList<PdfIndirectReference> pageRefsDeprecated. -
pageDics
ArrayList<PdfDictionary> pageDicsDeprecated. -
resources
PdfDictionary resourcesDeprecated. -
form
PdfDictionary formDeprecated. -
closing
boolean closingDeprecated. -
nd
Document ndDeprecated. -
tabOrder
Deprecated. -
calculationOrder
Deprecated. -
calculationOrderRefs
Deprecated. -
hasSignature
private boolean hasSignatureDeprecated. -
needAppearances
private boolean needAppearancesDeprecated. -
mergedRadioButtons
Deprecated. -
COUNTER
Deprecated. -
widgetKeys
Deprecated. -
fieldKeys
Deprecated.
-
-
Constructor Details
-
PdfCopyFieldsImp
PdfCopyFieldsImp(OutputStream os) throws DocumentException Deprecated.- Throws:
DocumentException
-
PdfCopyFieldsImp
PdfCopyFieldsImp(OutputStream os, char pdfVersion) throws DocumentException Deprecated.- Throws:
DocumentException
-
-
Method Details
-
getCounter
Deprecated.- Overrides:
getCounterin classPdfWriter
-
addDocument
Deprecated.- Throws:
DocumentExceptionIOException
-
addDocument
Deprecated.- Throws:
DocumentExceptionIOException
-
getCOName
Deprecated. -
updateCalculationOrder
Deprecated.- Since:
- 2.1.5; before 2.1.5 the method was private
-
propagate
Deprecated.- Throws:
IOException
-
adjustTabOrder
Deprecated. -
branchForm
protected PdfArray branchForm(HashMap<String, Object> level, PdfIndirectReference parent, String fname) throws IOExceptionDeprecated.- Throws:
IOException
-
getOffStateName
Deprecated. -
createAcroForms
Deprecated.- Throws:
IOException
-
close
public void close()Deprecated.Description copied from class:PdfWriterSignals that theDocumentwas closed and that no otherElementswill be added.The pages-tree is built and written to the outputstream. A Catalog is constructed, as well as an Info-object, the reference table is composed and everything is written to the outputstream embedded in a Trailer.
- Specified by:
closein interfaceDocListener- Overrides:
closein classPdfWriter- See Also:
-
closeIt
Deprecated.Creates the new PDF by merging the fields and forms.- Throws:
IOException
-
addPageOffsetToField
Deprecated. -
createWidgets
Deprecated. -
mergeField
Deprecated. -
mergeWithMaster
Deprecated. -
mergeFields
void mergeFields()Deprecated. -
getPageReference
Deprecated.Description copied from class:PdfWriterUse this method to get a reference to a page existing or not. If the page does not exist yet the reference will be created in advance. If on closing the document, a page number greater than the total number of pages was requested, an exception is thrown.- Overrides:
getPageReferencein classPdfWriter- Parameters:
page- the page number. The first page is 1- Returns:
- the reference to the page
-
getCatalog
Deprecated.- Overrides:
getCatalogin classPdfWriter
-
getNewReference
Deprecated. -
getNewObjectNumber
Deprecated.- Overrides:
getNewObjectNumberin classPdfWriter
-
setVisited
Deprecated.Sets a reference to "visited" in the copy process.- Parameters:
ref- the reference that needs to be set to "visited"- Returns:
- true if the reference was set to visited
-
isVisited
Deprecated.Checks if a reference has already been "visited" in the copy process.- Parameters:
ref- the reference that needs to be checked- Returns:
- true if the reference was already visited
-
isVisited
Deprecated. -
isPage
Deprecated.Checks if a reference refers to a page object.- Parameters:
ref- the reference that needs to be checked- Returns:
- true is the reference refers to a page object.
-
getReaderFile
Deprecated.- Overrides:
getReaderFilein classPdfWriter
-
openDoc
public void openDoc()Deprecated.
-