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) boolean
Deprecated.protected Counter
Deprecated.Deprecated.(package private) ArrayList<AcroFields>
Deprecated.Deprecated.(package private) RandomAccessFileOrArray
Deprecated.(package private) PdfDictionary
Deprecated.private boolean
Deprecated.private static final PdfName
Deprecated.Deprecated.(package private) Document
Deprecated.private boolean
Deprecated.(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) PdfDictionary
Deprecated.Deprecated.(package private) HashMap<PdfReader,
IntHashtable> Deprecated.Deprecated.private static final Integer
Deprecated.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) void
addDocument
(PdfReader reader) Deprecated.(package private) void
addDocument
(PdfReader reader, List<Integer> pagesToKeep) Deprecated.(package private) void
addPageOffsetToField
(Map<String, AcroFields.Item> fd, int pageOffset) Deprecated.private void
adjustTabOrder
(PdfArray annots, PdfIndirectReference ind, PdfNumber nn) Deprecated.protected PdfArray
branchForm
(HashMap<String, Object> level, PdfIndirectReference parent, String fname) Deprecated.void
close()
Deprecated.Signals that theDocument
was closed and that no otherElements
will be added.protected void
closeIt()
Deprecated.Creates the new PDF by merging the fields and forms.protected void
Deprecated.(package private) void
createWidgets
(ArrayList<Object> list, AcroFields.Item item) Deprecated.protected PdfDictionary
getCatalog
(PdfIndirectReference rootObj) Deprecated.private static String
getCOName
(PdfReader reader, PRIndirectReference ref) Deprecated.protected Counter
Deprecated.protected int
getNewObjectNumber
(PdfReader reader, int number, int generation) Deprecated.protected PdfIndirectReference
Deprecated.protected PdfName
getOffStateName
(PdfDictionary widget) Deprecated.getPageReference
(int page) Deprecated.Use this method to get a reference to a page existing or not.(package private) RandomAccessFileOrArray
getReaderFile
(PdfReader reader) Deprecated.protected boolean
Deprecated.Checks if a reference refers to a page object.protected boolean
Deprecated.protected boolean
Deprecated.Checks if a reference has already been "visited" in the copy process.(package private) void
mergeField
(String name, AcroFields.Item item) Deprecated.(package private) void
Deprecated.(package private) void
Deprecated.void
openDoc()
Deprecated.(package private) void
propagate
(PdfObject obj, PdfIndirectReference refo, boolean restricted) Deprecated.protected boolean
Deprecated.Sets a reference to "visited" in the copy process.protected void
updateCalculationOrder
(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, writeOutlines
Methods 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:
getCounter
in classPdfWriter
-
addDocument
Deprecated.- Throws:
DocumentException
IOException
-
addDocument
Deprecated.- Throws:
DocumentException
IOException
-
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:PdfWriter
Signals that theDocument
was closed and that no otherElements
will 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:
close
in interfaceDocListener
- Overrides:
close
in 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:PdfWriter
Use 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:
getPageReference
in classPdfWriter
- Parameters:
page
- the page number. The first page is 1- Returns:
- the reference to the page
-
getCatalog
Deprecated.- Overrides:
getCatalog
in classPdfWriter
-
getNewReference
Deprecated. -
getNewObjectNumber
Deprecated.- Overrides:
getNewObjectNumber
in 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:
getReaderFile
in classPdfWriter
-
openDoc
public void openDoc()Deprecated.
-