LayerCOS_Layer
ObjectCosInteger

Integers may be specified by signed or unsigned constants. See Section 3.2.2 in the PDF Reference for details.



Method Summary
 Method
 
Gets the 64-bit integer value of a specified number object.
 
ASInt32 CosIntegerValue(CosObj obj)
Gets the 32-bit integer value of a specified number object.
 
CosObj CosNewInteger(CosDoc dP, ASBool indirect, ASInt32 value)
Creates a new 32-bit integer object associated with the specified document and having the specified value.
 
CosObj CosNewInteger64(CosDoc dP, ASBool indirect, ASInt64 value)
Acrobat 7 additions Creates a new 64-bit integer object associated with the specified document and having the specified value.




Method Detail
CosInteger64Value()
Product availability: PDFL
Platform availability: Macintosh, Windows, UNIX

Syntax

ASInt64 CosInteger64Value(CosObj obj)

Gets the 64-bit integer value of a specified number object.

An exception is raised if the given object has the wrong Cos type.

Parameters

obj — 

The object whose integer value is obtained. It must have type CosInteger or CosReal (CosFixed). If it is CosReal, its value is rounded to the nearest integer. The result is undefined if the real value is outside the range of ASInt64 numbers.

Returns

The 64-bit integer value of obj.

See Also

Since

PI_COS_VERSION >= 0x00070000

File: CosProcs.h
Line: 1829
CosIntegerValue() 
Product availability: PDFL
Platform availability: Macintosh, Windows, UNIX

Syntax

ASInt32 CosIntegerValue(CosObj obj)

Gets the 32-bit integer value of a specified number object.

Parameters

obj — 

The object whose integer value is obtained. It must have type CosInteger or CosReal (CosFixed). If it is CosReal, its value is rounded to the nearest integer. The result is undefined if the real value is outside the range of ASInt32 numbers.

An exception is raised if the given object has the wrong Cos type.

Returns

The 32-bit integer value of obj.

See Also

Since

PI_COS_VERSION >= 0x00020000

File: CosProcs.h
Line: 488
CosNewInteger() 
Product availability: PDFL
Platform availability: Macintosh, Windows, UNIX

Syntax

CosObj CosNewInteger(CosDoc dP, ASBool indirect, ASInt32 value)

Creates a new 32-bit integer object associated with the specified document and having the specified value.

Parameters

dP — 

IN The document in which the integer is used.

 
indirect — 

IN If true, it creates the integer object as an indirect object, and sets the document dP object's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the integer as a direct object.

 
value — 

IN The value, represented as a 32-bit integer.

Returns

An object of type CosInteger.

See Also

Since

PI_COS_VERSION >= 0x00020000

Examples

go to source arrow CosDictPut(jpxParams, ASAtomFromString("Width"), CosNewInteger( cosDoc, false, srcImageAttrs.width));
go to source arrow CosDictPut(jpxParams, ASAtomFromString("Height"), CosNewInteger( cosDoc, false, srcImageAttrs.height));
go to source arrow CosDictPut(jpxParams, ASAtomFromString("TileWidth"), CosNewInteger( cosDoc, false, 256));

more...

File: CosProcs.h
Line: 160
CosNewInteger64() 
Product availability: PDFL
Platform availability: Macintosh, Windows, UNIX

Syntax

CosObj CosNewInteger64(CosDoc dP, ASBool indirect, ASInt64 value)

Acrobat 7 additions Creates a new 64-bit integer object associated with the specified document and having the specified value.

Parameters

dP — 

IN The document in which the integer is used.

 
indirect — 

IN If true, it creates the integer object as an indirect object, and sets the document dP object's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the integer as a direct object.

 
value — 

IN The value, represented as a 64-bit integer.

Returns

An object of type CosInteger.

See Also

Since

PI_COS_VERSION >= 0x00070000

File: CosProcs.h
Line: 1810