Table of Contents

Field W

Namespace
PdfSharp.Pdf.Advanced
Assembly
PdfSharp.dll

(Required) An array of integers representing the size of the fields in a single cross-reference entry. The table describes the types of entries and their fields. For PDF 1.5, W always contains three integers; the value of each integer is the number of bytes (in the decoded stream) of the corresponding field. For example, [1 2 1] means that the fields are one byte, two bytes, and one byte, respectively.

A value of zero for an element in the W array indicates that the corresponding field is not present in the stream, and the default value is used, if there is one. If the first element is zero, the type field is not present, and it defaults to type 1.

The sum of the items is the total length of each entry; it can be used with the Indexarray to determine the starting position of each subsection.

Note: Different cross-reference streams in a PDF file may use different values for W.

Entries in a cross-reference stream.

TYPE FIELD DESCRIPTION 0 1 The type of this entry, which must be 0. Type 0 entries define the linked list of free objects (corresponding to f entries in a cross-reference table). 2 The object number of the next free object. 3 The generation number to use if this object number is used again. 1 1 The type of this entry, which must be 1. Type 1 entries define objects that are in use but are not compressed (corresponding to n entries in a cross-reference table). 2 The byte offset of the object, starting from the beginning of the file. 3 The generation number of the object. Default value: 0. 2 1 The type of this entry, which must be 2. Type 2 entries define compressed objects. 2 The object number of the object stream in which this object is stored. (The generation number of the object stream is implicitly 0.) 3 The index of this object within the object stream.

public const string W = "/W"

Returns

string
(Required) An array of integers representing the size of the fields in a single cross-reference entry. The table describes the types of entries and their fields. For PDF 1.5, W always contains three integers; the value of each integer is the number of bytes (in the decoded stream) of the corresponding field. For example, [1 2 1] means that the fields are one byte, two bytes, and one byte, respectively. A value of zero for an element in the W array indicates that the corresponding field is not present in the stream, and the default value is used, if there is one. If the first element is zero, the type field is not present, and it defaults to type 1. The sum of the items is the total length of each entry; it can be used with the Indexarray to determine the starting position of each subsection. Note: Different cross-reference streams in a PDF file may use different values for W. Entries in a cross-reference stream. TYPE FIELD DESCRIPTION 0 1 The type of this entry, which must be 0. Type 0 entries define the linked list of free objects (corresponding to f entries in a cross-reference table). 2 The object number of the next free object. 3 The generation number to use if this object number is used again. 1 1 The type of this entry, which must be 1. Type 1 entries define objects that are in use but are not compressed (corresponding to n entries in a cross-reference table). 2 The byte offset of the object, starting from the beginning of the file. 3 The generation number of the object. Default value: 0. 2 1 The type of this entry, which must be 2. Type 2 entries define compressed objects. 2 The object number of the object stream in which this object is stored. (The generation number of the object stream is implicitly 0.) 3 The index of this object within the object stream.