iText 5

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

Type

Name

Methods

IPdfPageEvent

PageEvent

set

bool

RotateContents

get, set

Methods

Protected methods
Public methods
Protected internal methods
Internal methods

Returns

Name

PdfIndirectReference

Add

(

PdfPage

page,

PdfContents

contents)

void

FixStructureTreeRoot

(HashSet2<

RefKey

> activeKeys, HashSet2<

PdfName

> activeClassMaps)

void

FlushAcroFields

()

void

FlushTaggedObjects

()

void

MergeField

(string name, Item item)

Internal Static methods

Details

Inheritance

Nested types

Classes
  • IndirectReferences

  • ImportedPage

  • PageStamp

  • StampContent

Constructors

PdfCopy

Source code

public PdfCopy(Document document, Stream os)

Arguments

Type

Name

Description

Document

document

Stream

os

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

Type

Name

Description

PdfReader

reader

int

pageNumber

GetImportedPage [2/2]

Source code

public virtual PdfImportedPage GetImportedPage(PdfReader reader, int pageNumber, bool keepTaggedPdfStructure)

Arguments

Type

Name

Description

PdfReader

reader

int

pageNumber

bool

keepTaggedPdfStructure

StructureTreeRootKidsForReaderImported

Source code

protected internal virtual void StructureTreeRootKidsForReaderImported(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

FixStructureTreeRoot

Source code

internal virtual void FixStructureTreeRoot(HashSet2<RefKey> activeKeys, HashSet2<PdfName> activeClassMaps)

Arguments

Type

Name

Description

HashSet2<

RefKey

>

activeKeys

HashSet2<

PdfName

>

activeClassMaps

GetImportedPageImpl

Source code

protected virtual PdfImportedPage GetImportedPageImpl(PdfReader reader, int pageNumber)

Arguments

Type

Name

Description

PdfReader

reader

int

pageNumber

CopyIndirect [1/2]

Source code

protected internal virtual PdfIndirectReference CopyIndirect(PRIndirectReference inp, bool keepStructure, bool directRootKids)

Arguments

Type

Name

Description

PRIndirectReference

inp

bool

keepStructure

bool

directRootKids

CopyIndirect [2/2]

Source code

protected virtual PdfIndirectReference CopyIndirect(PRIndirectReference inp)

Arguments

Type

Name

Description

PRIndirectReference

inp

CopyDictionary [1/2]

Source code

protected virtual PdfDictionary CopyDictionary(PdfDictionary inp, bool keepStruct, bool directRootKids)

Arguments

Type

Name

Description

PdfDictionary

inp

bool

keepStruct

bool

directRootKids

CopyDictionary [2/2]

Source code

protected virtual PdfDictionary CopyDictionary(PdfDictionary inp)

Arguments

Type

Name

Description

PdfDictionary

inp

CopyStream

Source code

protected virtual PdfStream CopyStream(PRStream inp)

Arguments

Type

Name

Description

PRStream

inp

CopyArray [1/2]

Source code

protected virtual PdfArray CopyArray(PdfArray inp, bool keepStruct, bool directRootKids)

Arguments

Type

Name

Description

PdfArray

inp

bool

keepStruct

bool

directRootKids

CopyArray [2/2]

Source code

protected virtual PdfArray CopyArray(PdfArray inp)

Arguments

Type

Name

Description

PdfArray

inp

CopyObject [1/2]

Source code

protected internal virtual PdfObject CopyObject(PdfObject inp, bool keepStruct, bool directRootKids)

Arguments

Type

Name

Description

PdfObject

inp

bool

keepStruct

bool

directRootKids

CopyObject [2/2]

Source code

protected internal virtual PdfObject CopyObject(PdfObject inp)

Arguments

Type

Name

Description

PdfObject

inp

SetFromIPage

Source code

protected virtual int SetFromIPage(PdfImportedPage iPage)

Arguments

Type

Name

Description

PdfImportedPage

iPage

SetFromReader

Source code

protected virtual void SetFromReader(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

AddPage [1/2]

Source code

public virtual void AddPage(PdfImportedPage iPage)

Arguments

Type

Name

Description

PdfImportedPage

iPage

AddPage [2/2]

Source code

public virtual void AddPage(Rectangle rect, int rotation)

Arguments

Type

Name

Description

Rectangle

rect

int

rotation

AddDocument [1/2]

Source code

public virtual void AddDocument(PdfReader reader, List<int> pagesToKeep)

Arguments

Type

Name

Description

PdfReader

reader

List<int>

pagesToKeep

CopyDocumentFields

Source code

public virtual void CopyDocumentFields(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

AddDocument [2/2]

Source code

public virtual void AddDocument(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

AddToBody [1/2]

Source code

public override PdfIndirectObject AddToBody(PdfObject objecta, PdfIndirectReference refa)

Arguments

Type

Name

Description

PdfObject

objecta

PdfIndirectReference

refa

AddToBody [2/2]

Source code

public override PdfIndirectObject AddToBody(PdfObject objecta, PdfIndirectReference refa, bool formBranching)

Arguments

Type

Name

Description

PdfObject

objecta

PdfIndirectReference

refa

bool

formBranching

CacheObject

Source code

protected internal override void CacheObject(PdfIndirectObject iobj)

Arguments

Type

Name

Description

PdfIndirectObject

iobj

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

Type

Name

Description

string

name

Item

item

GetCatalog

Source code

protected override PdfDictionary GetCatalog(PdfIndirectReference rootObj)

Arguments

Type

Name

Description

PdfIndirectReference

rootObj

IsStructTreeRootReference

Source code

protected virtual bool IsStructTreeRootReference(PdfIndirectReference prRef)

Arguments

Type

Name

Description

PdfIndirectReference

prRef

Close

Source code

public override void Close()

AddAnnotation

Source code

public override void AddAnnotation(PdfAnnotation annot)

Arguments

Type

Name

Description

PdfAnnotation

annot

Add

Source code

internal override PdfIndirectReference Add(PdfPage page, PdfContents contents)

Arguments

Type

Name

Description

PdfPage

page

PdfContents

contents

FreeReader

Source code

public override void FreeReader(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

GetOffStateName

Source code

protected virtual PdfName GetOffStateName(PdfDictionary widget)

Arguments

Type

Name

Description

PdfDictionary

widget

GetFlags

Source code

internal static Nullable<int> GetFlags(PdfDictionary field)

Arguments

Type

Name

Description

PdfDictionary

field

IsCheckButton

Source code

internal static bool IsCheckButton(PdfDictionary field)

Arguments

Type

Name

Description

PdfDictionary

field

IsRadioButton

Source code

internal static bool IsRadioButton(PdfDictionary field)

Arguments

Type

Name

Description

PdfDictionary

field

IsTextField

Source code

internal static bool IsTextField(PdfDictionary field)

Arguments

Type

Name

Description

PdfDictionary

field

CreatePageStamp

Source code

public virtual PageStamp CreatePageStamp(PdfImportedPage iPage)

Arguments

Type

Name

Description

PdfImportedPage

iPage

Properties

PageEvent

public override IPdfPageEvent PageEvent { set; }

RotateContents

public virtual bool RotateContents { get; set; }

Generated with ModularDoc