Class DocumentIdentifier
A pair of 16-byte identifiers that uniquely identify a PDF document (spec §7.5.5, /ID entry). The first identifier is created when the file is first written; the second is updated when the file is modified.
Inherited Members
Namespace: DRIT.Pdf
Assembly: DRIT.Pdf.dll
Syntax
public sealed class DocumentIdentifier
Constructors
DocumentIdentifier(byte[], byte[])
Initializes a document identifier with the given permanent and changing IDs.
Declaration
public DocumentIdentifier(byte[] permanentId, byte[] changingId)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | permanentId | |
| byte[] | changingId |
Properties
ChangingId
The changing identifier (second element, updated on each save).
Declaration
public byte[] ChangingId { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
PermanentId
The permanent identifier (first element of the /ID array).
Declaration
public byte[] PermanentId { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Methods
ToString()
Returns a hex string representation of the permanent ID.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |