Skip to main content
Skip table of contents

PdfCopy (1)

PdfCopy Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfCopy[[PdfCopy]]
  iTextSharp.text.pdf.PdfWriter[[PdfWriter]]
  end
iTextSharp.text.pdf.PdfWriter --> iTextSharp.text.pdf.PdfCopy

Members

Properties

Public properties
TypeNameMethods
IPdfPageEventPageEventset
boolRotateContentsget, set

Methods

Protected methods
Public methods
Protected internal methods
Internal methods
ReturnsName
PdfIndirectReferenceAdd(PdfPage page, PdfContents contents)
voidFixStructureTreeRoot(HashSet2<RefKey> activeKeys, HashSet2<PdfName> activeClassMaps)
voidFlushAcroFields()
voidFlushTaggedObjects()
voidMergeField(string name, Item item)
Internal Static methods
ReturnsName
Nullable<int>GetFlags(PdfDictionary field)
boolIsCheckButton(PdfDictionary field)
boolIsRadioButton(PdfDictionary field)
boolIsTextField(PdfDictionary field)

Details

Inheritance

Nested types

Classes
  • IndirectReferences
  • ImportedPage
  • PageStamp
  • StampContent

Constructors

PdfCopy
Source code
public PdfCopy(Document document, Stream os)
Arguments
TypeNameDescription
Documentdocument
Streamos

Methods

GetCounter
Source code
protected override ICounter GetCounter()
SetMergeFields
Source code
public virtual void SetMergeFields()
GetImportedPage [1/2]
Source code
public override PdfImportedPage GetImportedPage(PdfReader reader, int pageNumber)
Arguments
TypeNameDescription
PdfReaderreader
intpageNumber
GetImportedPage [2/2]
Source code
public virtual PdfImportedPage GetImportedPage(PdfReader reader, int pageNumber, bool keepTaggedPdfStructure)
Arguments
TypeNameDescription
PdfReaderreader
intpageNumber
boolkeepTaggedPdfStructure
StructureTreeRootKidsForReaderImported
Source code
protected internal virtual void StructureTreeRootKidsForReaderImported(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
FixStructureTreeRoot
Source code
internal virtual void FixStructureTreeRoot(HashSet2<RefKey> activeKeys, HashSet2<PdfName> activeClassMaps)
Arguments
TypeNameDescription
HashSet2<RefKey>activeKeys
HashSet2<PdfName>activeClassMaps
GetImportedPageImpl
Source code
protected virtual PdfImportedPage GetImportedPageImpl(PdfReader reader, int pageNumber)
Arguments
TypeNameDescription
PdfReaderreader
intpageNumber
CopyIndirect [1/2]
Source code
protected internal virtual PdfIndirectReference CopyIndirect(PRIndirectReference inp, bool keepStructure, bool directRootKids)
Arguments
TypeNameDescription
PRIndirectReferenceinp
boolkeepStructure
booldirectRootKids
CopyIndirect [2/2]
Source code
protected virtual PdfIndirectReference CopyIndirect(PRIndirectReference inp)
Arguments
TypeNameDescription
PRIndirectReferenceinp
CopyDictionary [1/2]
Source code
protected virtual PdfDictionary CopyDictionary(PdfDictionary inp, bool keepStruct, bool directRootKids)
Arguments
TypeNameDescription
PdfDictionaryinp
boolkeepStruct
booldirectRootKids
CopyDictionary [2/2]
Source code
protected virtual PdfDictionary CopyDictionary(PdfDictionary inp)
Arguments
TypeNameDescription
PdfDictionaryinp
CopyStream
Source code
protected virtual PdfStream CopyStream(PRStream inp)
Arguments
TypeNameDescription
PRStreaminp
CopyArray [1/2]
Source code
protected virtual PdfArray CopyArray(PdfArray inp, bool keepStruct, bool directRootKids)
Arguments
TypeNameDescription
PdfArrayinp
boolkeepStruct
booldirectRootKids
CopyArray [2/2]
Source code
protected virtual PdfArray CopyArray(PdfArray inp)
Arguments
TypeNameDescription
PdfArrayinp
CopyObject [1/2]
Source code
protected internal virtual PdfObject CopyObject(PdfObject inp, bool keepStruct, bool directRootKids)
Arguments
TypeNameDescription
PdfObjectinp
boolkeepStruct
booldirectRootKids
CopyObject [2/2]
Source code
protected internal virtual PdfObject CopyObject(PdfObject inp)
Arguments
TypeNameDescription
PdfObjectinp
SetFromIPage
Source code
protected virtual int SetFromIPage(PdfImportedPage iPage)
Arguments
TypeNameDescription
PdfImportedPageiPage
SetFromReader
Source code
protected virtual void SetFromReader(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
AddPage [1/2]
Source code
public virtual void AddPage(PdfImportedPage iPage)
Arguments
TypeNameDescription
PdfImportedPageiPage
AddPage [2/2]
Source code
public virtual void AddPage(Rectangle rect, int rotation)
Arguments
TypeNameDescription
Rectanglerect
introtation
AddDocument [1/2]
Source code
public virtual void AddDocument(PdfReader reader, List<int> pagesToKeep)
Arguments
TypeNameDescription
PdfReaderreader
List<int>pagesToKeep
CopyDocumentFields
Source code
public virtual void CopyDocumentFields(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
AddDocument [2/2]
Source code
public virtual void AddDocument(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
AddToBody [1/2]
Source code
public override PdfIndirectObject AddToBody(PdfObject objecta, PdfIndirectReference refa)
Arguments
TypeNameDescription
PdfObjectobjecta
PdfIndirectReferencerefa
AddToBody [2/2]
Source code
public override PdfIndirectObject AddToBody(PdfObject objecta, PdfIndirectReference refa, bool formBranching)
Arguments
TypeNameDescription
PdfObjectobjecta
PdfIndirectReferencerefa
boolformBranching
CacheObject
Source code
protected internal override void CacheObject(PdfIndirectObject iobj)
Arguments
TypeNameDescription
PdfIndirectObjectiobj
FlushTaggedObjects
Source code
internal override void FlushTaggedObjects()
FlushAcroFields
Source code
internal override void FlushAcroFields()
FixTaggedStructure
Source code
protected virtual void FixTaggedStructure()
FlushIndirectObjects
Source code
protected virtual void FlushIndirectObjects()
MergeField
Source code
internal void MergeField(string name, Item item)
Arguments
TypeNameDescription
stringname
Itemitem
GetCatalog
Source code
protected override PdfDictionary GetCatalog(PdfIndirectReference rootObj)
Arguments
TypeNameDescription
PdfIndirectReferencerootObj
IsStructTreeRootReference
Source code
protected virtual bool IsStructTreeRootReference(PdfIndirectReference prRef)
Arguments
TypeNameDescription
PdfIndirectReferenceprRef
Close
Source code
public override void Close()
AddAnnotation
Source code
public override void AddAnnotation(PdfAnnotation annot)
Arguments
TypeNameDescription
PdfAnnotationannot
Add
Source code
internal override PdfIndirectReference Add(PdfPage page, PdfContents contents)
Arguments
TypeNameDescription
PdfPagepage
PdfContentscontents
FreeReader
Source code
public override void FreeReader(PdfReader reader)
Arguments
TypeNameDescription
PdfReaderreader
GetOffStateName
Source code
protected virtual PdfName GetOffStateName(PdfDictionary widget)
Arguments
TypeNameDescription
PdfDictionarywidget
GetFlags
Source code
internal static Nullable<int> GetFlags(PdfDictionary field)
Arguments
TypeNameDescription
PdfDictionaryfield
IsCheckButton
Source code
internal static bool IsCheckButton(PdfDictionary field)
Arguments
TypeNameDescription
PdfDictionaryfield
IsRadioButton
Source code
internal static bool IsRadioButton(PdfDictionary field)
Arguments
TypeNameDescription
PdfDictionaryfield
IsTextField
Source code
internal static bool IsTextField(PdfDictionary field)
Arguments
TypeNameDescription
PdfDictionaryfield
CreatePageStamp
Source code
public virtual PageStamp CreatePageStamp(PdfImportedPage iPage)
Arguments
TypeNameDescription
PdfImportedPageiPage

Properties

PageEvent
public override IPdfPageEvent PageEvent { set; }
RotateContents
public virtual bool RotateContents { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.