Table of Contents

Class COSDocument

Namespace
Org.Apache.Pdfbox.Cos
Assembly
MASES.NetPDF.dll
public class COSDocument : COSBase, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICOSObjectable
Inheritance
COSDocument
Implements
Inherited Members

Constructors

COSDocument()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public COSDocument()

COSDocument(IJVMBridgeBaseInitializer)

Internal constructor: used internally from JCOBridge

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public COSDocument(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

COSDocument(ICOSParser)

public COSDocument(ICOSParser arg0)

Parameters

arg0 ICOSParser

ICOSParser

COSDocument(StreamCacheCreateFunction)

public COSDocument(RandomAccessStreamCache.StreamCacheCreateFunction arg0)

Parameters

arg0 RandomAccessStreamCache.StreamCacheCreateFunction

RandomAccessStreamCache.StreamCacheCreateFunction

COSDocument(StreamCacheCreateFunction, ICOSParser)

public COSDocument(RandomAccessStreamCache.StreamCacheCreateFunction arg0, ICOSParser arg1)

Parameters

arg0 RandomAccessStreamCache.StreamCacheCreateFunction

RandomAccessStreamCache.StreamCacheCreateFunction

arg1 ICOSParser

ICOSParser

COSDocument(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public COSDocument(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

DocumentID

public COSArray DocumentID { get; set; }

Property Value

COSArray

DocumentState

public COSDocumentState DocumentState { get; }

Property Value

COSDocumentState

EncryptionDictionary

public COSDictionary EncryptionDictionary { get; set; }

Property Value

COSDictionary

HighestXRefObjectNumber

public long HighestXRefObjectNumber { get; set; }

Property Value

long

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

LinearizedDictionary

public COSDictionary LinearizedDictionary { get; }

Property Value

COSDictionary

StartXref

public long StartXref { get; set; }

Property Value

long

Trailer

public COSDictionary Trailer { get; set; }

Property Value

COSDictionary

Version

public float Version { get; set; }

Property Value

float

XrefTable

public Map<COSObjectKey, Long> XrefTable { get; }

Property Value

Map<COSObjectKey, Long>

Methods

AddXRefTable(Map<COSObjectKey, Long>)

public void AddXRefTable(Map<COSObjectKey, Long> arg0)

Parameters

arg0 Map<COSObjectKey, Long>

Map

Close()

public void Close()

Exceptions

IOException

CreateCOSStream()

public COSStream CreateCOSStream()

Returns

COSStream

COSStream

CreateCOSStream(COSDictionary, long, long)

public COSStream CreateCOSStream(COSDictionary arg0, long arg1, long arg2)

Parameters

arg0 COSDictionary

COSDictionary

arg1 long

long

arg2 long

long

Returns

COSStream

COSStream

Exceptions

IOException

GetObjectFromPool(COSObjectKey)

public COSObject GetObjectFromPool(COSObjectKey arg0)

Parameters

arg0 COSObjectKey

COSObjectKey

Returns

COSObject

COSObject

GetObjectsByType(COSName)

public List<COSObject> GetObjectsByType(COSName arg0)

Parameters

arg0 COSName

COSName

Returns

List<COSObject>

List

GetObjectsByType(COSName, COSName)

public List<COSObject> GetObjectsByType(COSName arg0, COSName arg1)

Parameters

arg0 COSName

COSName

arg1 COSName

COSName

Returns

List<COSObject>

List

HasHybridXRef()

public bool HasHybridXRef()

Returns

bool

bool

IsClosed()

public bool IsClosed()

Returns

bool

bool

IsDecrypted()

public bool IsDecrypted()

Returns

bool

bool

IsEncrypted()

public bool IsEncrypted()

Returns

bool

bool

IsXRefStream()

public bool IsXRefStream()

Returns

bool

bool

SetDecrypted()

public void SetDecrypted()

SetHasHybridXRef()

public void SetHasHybridXRef()

SetIsXRefStream(bool)

public void SetIsXRefStream(bool arg0)

Parameters

arg0 bool

bool

Operators

implicit operator Closeable(COSDocument)

Converter from COSDocument to Closeable

public static implicit operator Closeable(COSDocument t)

Parameters

t COSDocument

Returns

Closeable