PDF file collection dictionary object.
Product availability: All |
Platform availability: All |
Syntax
A PDCollection
represents a collection dictionary in a PDF file.
Collection view types and split types are unusual due to the way the PDF Reference is written. A straight mapping of the View key and the Split key would result in the key/value of /View/H
being part of the view type enumeration, but that would result in ambiguity when setting View to H and Split to N (/View/H
maps to "preview" in Acrobat 8, but /Split/N
is documented to map to "no split, show navigator" in Acrobat 9. Because of this, and the fact that /View/H
is really interpreted as a kind of split rather than a style of navigator, Preview was moved to the split type enumeration in the API. This interacts with the underlying file as follows: when a /View/H
value is read it is mapped to "Tile" and "Preview" for the navigator style and split position. When the Tile/Preview combination is written out, it is recorded back to /View/H
for consistency with Acrobat 8.
See Also
File: PDExpT.h |
Line: 6855 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 6938 |
Product availability: All |
Platform availability: All |
Syntax
typedef struct CPDCollectionSchema* PDCollectionSchema;
An opaque pointer to a collection schema object.
A PDCollectionSchema
is ordered with the following considerations. The PDCollectionSchema
has characteristics of both a collection of named fields and an array. Field names are guaranteed to be unique. Indexing is guaranteed to be 0-based, in ascending order, with no gaps. When repositioning a field by changing its index, the schema will be re-indexed as necessary to conform to this convention. If a field is assigned an out-of-bound index, the index is adjusted to be in bounds rather than raising an error.
File: PDExpT.h |
Line: 6920 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 6861 |
Product availability: All |
Platform availability: All |
Syntax
File: PDExpT.h |
Line: 6906 |
Product availability: All |
Platform availability: All |
Syntax
enum PDCollectionSplitType {}
File: PDExpT.h |
Line: 6878 |
Elements
| kCollectionSplitDefault | Default split based on view. |
|
| kCollectionSplitHorizontal | Split vertical. |
|
| kCollectionSplitVertical | Split horizontal. |
|
| kCollectionSplitNone | No split; show the navigator. |
|
| kCollectionSplitPreview | No split; show the preview. |
Product availability: All |
Platform availability: All |
Syntax
enum PDCollectionViewType {}
File: PDExpT.h |
Line: 6867 |
Elements
Product availability: All |
Platform availability: All |
Syntax
struct _t_PDCollectionField {}
A structure corresponding to a field in the collection schema.
File: PDExpT.h |
Line: 6923 |
Elements
| size | The size of the PDCollectionFieldRec . |
|
| fieldName | The ID of the field. |
|
| index | The 0-based index of the field in the PDCollectionSchema . |
|
| subtype | The subtype of the field. For example /N represents a number and /S represents a string. |
|
| fieldText | The name to use in the user interface. |
|
| visible | Default visibility. |
|
Product availability: All |
Platform availability: All |
Syntax
struct _t_PDCollectionSchemaSortPair {}
The name of a field in a collection sort dictionary, and its associated value for ascending.
File: PDExpT.h |
Line: 6858 |
Product availability: All |
Platform availability: All |
Syntax
struct _t_PDCollectionViewDataRec {}
Collection view data record.
File: PDExpT.h |
Line: 6893 |
Elements
| size | The size of the PDCollectionViewDataRec . |
|
| view | The view type of the collection. |
|
| navigator | The navigator to use with the collection. This is ignored if view != custom . |
|
| split | The split type of the collection. |
|
| splitPos | A percentage from 0-100 . It is ignored if the position is not a split view. If the position is a split view, -1 indicates an application-defined position. |
Product availability: All |
Platform availability: All |
Syntax
Creates a new folder.
Parameters
| collection — | The collection that will be associated with the new folder. |
|
| path — | The path and name of the folder. The path syntax for folders takes the form [parent/]folder , where the mandatory parent/ section may be repeated as necessary to provide a complete path to the new folder. The path is always interpreted as being relative to the root level of the folder hierarchy. Paths that specify simply a new folder name are located in the root folder. The character set for folder names is subject to the limitations imposed by the PDF Reference: folders may not contain any of the characters in the set / \ : ? * " < > | and may not end with a . (period). Please note that a folder name cannot consist entirely of spaces. To specify the root folder itself, assign a value of "/" . |
Returns
File: PDProcs.h |
Line: 12300 |
Product availability: All |
Platform availability: All |
Syntax
Gets an existing folder.
Parameters
| collection — | The collection associated with the folder to be obtained. |
|
| path — | The path to the folder. To specify the root folder itself, assign a value of "/" . The path syntax for folders takes the form [parent/]folder , where the mandatory parent/ section may be repeated as necessary to provide a complete path to the new folder. |
Returns
| The specified folder. If the folder does not exist, the returned folder is invalid. |
File: PDProcs.h |
Line: 12318 |
Product availability: All |
Platform availability: All |
Syntax
Gets the initial style dictionary for the collection.
Parameters
| collection — | The collection object. |
|
| style — | Dictionary to set |
Returns
| true if the dictionary is present, if false the passed cabinet is unchanged |
File: PDProcs.h |
Line: 12332 |
Product availability: All |
Platform availability: All |
Syntax
Gets the contents of the collection sort dictionary.
Parameters
| collection — | The collection object. |
|
| pairs — | The array of pairs. It may be NULL . |
|
| arrayLen |
Returns
| If pairs is NULL , the number of items in the collection sort dictionary is returned; otherwise, the number of items stored in the pairs array is returned. |
File: PDProcs.h |
Line: 12210 |
Product availability: All |
Platform availability: All |
Syntax
Gets the view data for the collection.
Parameters
| collection — | The collection object. |
|
| data — | The collection view data. |
File: PDProcs.h |
Line: 12223 |
Product availability: All |
Platform availability: All |
Syntax
Determines if a collection is valid.
Parameters
| collection — | The collection |
Returns
| true if the collection is valid, false otherwise.
|
File: PDProcs.h |
Line: 12183 |
Product availability: All |
Platform availability: All |
Syntax
Removes a folder and its descendant folders and associated file attachments.
Parameters
| collection — | The collection associated with the folder that will be removed. |
|
| path — | The path to the folder. |
File: PDProcs.h |
Line: 12308 |
Product availability: All |
Platform availability: All |
Syntax
void PDCollectionRemoveInitialStyle(PDCollection collection) |
Removes the initial style dictionary from a collect, if present
Parameters
| collection — | The collection object. |
File: PDProcs.h |
Line: 12337 |
Product availability: All |
Platform availability: All |
Syntax
Acquires the PDCollectionSchema
object for a collection.
Parameters
| collection — | The collection object. |
Returns
File: PDProcs.h |
Line: 12235 |
Product availability: All |
Platform availability: All |
Syntax
Destroys a PDCollectionSchema
object.
Parameters
| schema — | The collection object. |
File: PDProcs.h |
Line: 12241 |
Product availability: All |
Platform availability: All |
Syntax
Gets a field by name or position. The caller must set field.size
to sizeof(PDCollectionFieldRec)
. To look up a field by name, set field.fieldName
to the appropriate name. To look up a field by position, set field.fieldName
to ASAtomNull
, and set field.index
to the position. The caller owns (and must destroy) field.fieldText
if it is not NULL
.
Parameters
| schema — | The collection schema object. |
|
| field — | The field to be obtained. |
Returns
| true if the field was found, false otherwise.
|
File: PDProcs.h |
Line: 12259 |
Product availability: All |
Platform availability: All |
Syntax
Gets the number of fields in the schema.
Parameters
| schema — | The collection object. |
Returns
| The number of fields in the schema. |
File: PDProcs.h |
Line: 12247 |
Product availability: All |
Platform availability: All |
Syntax
Removes a field from the collection schema.
Parameters
| schema — | The collection schema. |
|
| fieldName — | The name of the field to remove from the collection schema. |
File: PDProcs.h |
Line: 12278 |
Product availability: All |
Platform availability: All |
Syntax
Sets a field with new values. The target field is identified by the field.fieldName
member. If the target field exists, it is overwritten; otherwise a new field is added. The caller must set field.size
to sizeof(PDCollectionFieldRec)
. Specifying a new value for field.index
will affect other field values as necessary to maintain the correct overall ordering. See PDCollectionSchema
for information about ordering.
Parameters
| schema — | The collection schema object. |
|
| field — | The field to add or modify in the collection schema. |
See Also
File: PDProcs.h |
Line: 12272 |
Product availability: All |
Platform availability: All |
Syntax
Sets the initial style dictionary for the collection.
Parameters
| collection — | The collection object. |
|
| style — | Dictionary to fill |
File: PDProcs.h |
Line: 12325 |
Product availability: All |
Platform availability: All |
Syntax
Set the contents of the collection sort dictionary.
Parameters
| collection — | The collection object. |
|
| pairs — | The array of pairs. If it is NULL , the collection sort dictionary is removed. |
|
| arrayLen |
File: PDProcs.h |
Line: 12217 |
Product availability: All |
Platform availability: All |
Syntax
Set the view data for the collection.
Parameters
| collection — | The collection object. |
|
| data — | The collection view data. |
File: PDProcs.h |
Line: 12229 |
© 2004-2013 Adobe Systems Incorporated. All rights reserved.
Thu Jan 21 2016, 11:19 AM IST