General Cos layer objects.
| Product availability: All |
| Platform availability: All |
Syntax
#define _CosHFT_IS_BETA 0
| File: CosCalls.h |
| Line: 91 |
| Product availability: All |
| Platform availability: All |
Syntax
#define _CosHFT_LAST_BETA_COMPATIBLE_VERSION 0x00090000
| File: CosCalls.h |
| Line: 90 |
| Product availability: All |
| Platform availability: All |
Syntax
#define _CosHFT_LATEST_VERSION 0x00090000
| File: CosCalls.h |
| Line: 89 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosCallMacro (ACROASSERT(gCosVersion >=CosHFT_VERSION_##version), *((fname##SELPROTO)(gCosHFT[fname##SEL])))
| File: CosCalls.h |
| Line: 419 |
| Product availability: All |
| Platform availability: All |
Syntax
#define cosDocCreateInfoDict 0x01
| File: CosExpT.h |
| Line: 186 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosDoubleValue CosCallMacro(CosDoubleValue, 9)
| File: CosCalls.h |
| Line: 473 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosError ErrBuildCode(ErrSuppressable, ErrSysCos, e)
| File: AcroErr.h |
| Line: 295 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosFloatValue CosCallMacro(CosFloatValue, 7)
| File: CosCalls.h |
| Line: 427 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_LATEST_VERSION _CosHFT_LATEST_VERSION)
| File: CosCalls.h |
| Line: 94 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_2 0x00020000
| File: CosCalls.h |
| Line: 96 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_3 0x00020002
| File: CosCalls.h |
| Line: 97 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_4 0x00040000
| File: CosCalls.h |
| Line: 98 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_4_5 0x00040005
| File: CosCalls.h |
| Line: 99 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_5 0x00050000
| File: CosCalls.h |
| Line: 100 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_5_1 0x00050001
| File: CosCalls.h |
| Line: 101 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_6 0x00060000
| File: CosCalls.h |
| Line: 102 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_7 0x00070000
| File: CosCalls.h |
| Line: 103 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_8 0x00080000
| File: CosCalls.h |
| Line: 104 |
| Product availability: All |
| Platform availability: All |
Syntax
#define CosHFT_VERSION_9 CosHFT_LATEST_VERSION
| File: CosCalls.h |
| Line: 105 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosNewDouble CosCallMacro(CosNewDouble, 9)
| File: CosCalls.h |
| Line: 471 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosNewDoubleEx CosCallMacro(CosNewDoubleEx, 9)
| File: CosCalls.h |
| Line: 472 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosNewFloat CosCallMacro(CosNewFloat, 7)
| File: CosCalls.h |
| Line: 426 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosNumberIsWithinASFixedRange CosCallMacro(CosNumberIsWithinASFixedRange, 7)
| File: CosCalls.h |
| Line: 461 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CosNumberIsWithinASInt32Range CosCallMacro(CosNumberIsWithinASInt32Range, 7)
| File: CosCalls.h |
| Line: 460 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define COSNUMSELECTORS (COSNUMSELECTORSplusOne - 1)
| File: CosCalls.h |
| Line: 145 |
| Product availability: All |
| Platform availability: All |
Syntax
#define cosSaveBinaryOK 0x08
DescriptionIt is ok to store binary data in the file.
| File: CosExpT.h |
| Line: 196 |
| Product availability: All |
| Platform availability: All |
Syntax
#define cosSaveConcealObjStreams 0x10
DescriptionIf there are any object streams, write them in a way that is hidden from PDF 1.4 (and earlier) viewers. This is used for hybrid files, for example.
| File: CosExpT.h |
| Line: 201 |
| Product availability: All |
| Platform availability: All |
Syntax
#define cosSaveCopy 0x04
DescriptionDo NOT use the newly saved file as new store, stay with the current one
| File: CosExpT.h |
| Line: 194 |
| Product availability: All |
| Platform availability: All |
Syntax
#define cosSaveFullSave 0x02
DescriptionWrite all objects, not just changes.
| File: CosExpT.h |
| Line: 192 |
| Product availability: All |
| Platform availability: All |
Syntax
#define cosSaveGarbageCollect 0x01
DescriptionDelete unreferenced objects before save.
| File: CosExpT.h |
| Line: 190 |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define cosSaveWriteXref 0x20
DescriptionFlags for CosDocSave saveFlags parameter. This is specific to the PDF Library.
| File: PDFLExpT.h |
| Line: 2371 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define include h"
| File: CosCalls.h |
| Line: 153 |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define include h"
| File: CosCalls.h |
| Line: 123 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
#define name ##SEL,
| File: CosCalls.h |
| Line: 138 |
| Product availability: All |
| Platform availability: All |
Syntax
A file offset value for use in callback procedures.
See Also
| Product availability: All |
| Platform availability: All |
Syntax
| Product availability: All |
| Platform availability: All |
Syntax
Used for an array of bytes in CosDocGetID().
See Also
| Product availability: All |
| Platform availability: All |
Syntax
-1 for none, error, or other special meaning
| Product availability: All |
| Platform availability: All |
Syntax
| Product availability: All |
| Platform availability: All |
Syntax
0 is not valid.
| Product availability: All |
| Platform availability: All |
Syntax
| Product availability: All |
| Platform availability: All |
Syntax
See Also
Elements
| CosNull | A NULL object or an invalid object. |
| |
| CosInteger | An integer object. |
| |
| CosFixed | A fixed number object. It is a deprecated type-name for real numbers. |
| |
| CosReal | A preferred type-name for real numbers. |
| |
| CosBoolean | An ASBool object. |
| |
| CosName | A name object. |
| |
| CosString | A string object. |
| |
| CosDict | A dictionary object. |
| |
| CosArray | An array object. |
| |
| CosStream | A stream object. |
| Product availability: Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
INPDEContentAttrsPINASUns32INCosDoc cosDoc;
| File: PEWProcs.h |
| Line: 105 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
HFT gCosHFT;
| File: CosCalls.h |
| Line: 165 |
| Product availability: Acrobat, Reader |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
ASUns32 gCosVersion;
| File: CosCalls.h |
| Line: 166 |
| Product availability: All |
| Platform availability: All |
Syntax
| double CosDoubleValue(CosObj obj) |
Gets the value of obj as a double-precision floating-point real number.
An exception is raised if the given object has the wrong Cos type.
Parameters
| obj — | The object whose value is obtained. It must have type CosInteger or CosReal (CosFixed). The result is undefined if the real value is outside the range of floating-point numbers. |
Returns
| The numeric value of obj, represented as a floating-point number. |
See Also
Since
| File: CosProcs.h |
| Line: 2378 |
| Product availability: All |
| Platform availability: All |
Syntax
| float CosFloatValue(CosObj obj) |
Gets the value of obj as a single-precision floating-point real number.
An exception is raised if the given object has the wrong Cos type.
Parameters
| obj — | The object whose value is obtained. It must have type CosInteger or CosReal (CosFixed). The result is undefined if the real value is outside the range of floating-point numbers. |
Returns
| The numeric value of obj, represented as a floating-point number. |
See Also
Since
| File: CosProcs.h |
| Line: 1866 |
| Product availability: All |
| Platform availability: All |
Syntax
Creates a new real-number object from a double-precision floating-point number associated with the specified document.
Parameters
| dP — | The document in which the number is used. |
| |
| indirect — | If true, it creates the real-number object as an indirect object, and sets the document dP object's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the number as a direct object. |
| |
| value — | The real number, represented as a double-precision floating-point number. |
Returns
See Also
Since
| File: CosProcs.h |
| Line: 2336 |
| Product availability: All |
| Platform availability: All |
Syntax
Creates a new real-number object from a double-precision floating-point number associated with the specified document.
Parameters
| dP — | The document in which the number is used. |
| |
| indirect — | If true, it creates the real-number object as an indirect object, and sets the document dP object's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the number as a direct object. |
| |
| value — | The real number, represented as a double-precision floating-point number. |
| |
| numSigDigs — | The maximum number of significant digits to use when this object is written to a file. Legal values are 6-13 for direct objects, 6-16 for indirect objects |
Returns
See Also
Since
| File: CosProcs.h |
| Line: 2359 |
| Product availability: All |
| Platform availability: All |
Syntax
Creates a new real-number object from a single-precision floating-point number associated with the specified document.
Parameters
| dP — | The document in which the number is used. |
| |
| indirect — | If true, it creates the real-number object as an indirect object, and sets the document dP object's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the number as a direct object. |
| |
| value — | The real number, represented as a single-precision floating-point number. |
Returns
See Also
Since
| File: CosProcs.h |
| Line: 1849 |
| Product availability: All |
| Platform availability: All |
Syntax
Tests whether the value of a Cos number is inside the range of ASFixed numbers, [-32768.0, +32768.0).
If so, the ASFixed value may be obtained by calling CosFixedValue().
If not, the floating-point value may be obtained by calling CosFloatValue().
It raises an exception if obj is not a number (CosInteger or CosReal).
Parameters
| obj — | A Cos integer or real number. |
Returns
| true if the value of the number is in the range of ASFixed, false otherwise.
|
See Also
Since
| File: CosProcs.h |
| Line: 2209 |
| Product availability: All |
| Platform availability: All |
Syntax
Tests whether the value of a Cos number is inside the range of 32-bit integers, [-2147483648, +2147483647].
If so, the 32-bit value may be obtained by calling
CosIntegerValue()
.
If not, the 64-bit value may be obtained by calling CosIntegerValue64().
It raises an exception if obj is not a number (CosInteger or CosReal).
Parameters
| obj — | A Cos integer or real number. |
Returns
| true if the value of the number is in the range of 32-bit integers, false otherwise.
|
See Also
Since
| File: CosProcs.h |
| Line: 2192 |
| Product availability: PDFL |
| Platform availability: Macintosh, Windows, UNIX |
Syntax
Parameters
| File: PDFLProcs.h |
| Line: 804 |
| Product availability: All |
| Platform availability: All |
Syntax
| void CosSetMaxDocStorage(ASInt32 maxMemory) |
Puts a limit on the amount of memory (RAM) that can be used to store Cos objects. The default limit is 2 MB, and this method can be used only to increase the limit. Beyond the limit, Cos objects may be stored on disk.
Parameters
| maxMemory — | The maximum amount of RAM (in bytes) that will be used to store fixed-size Cos objects. |
Since
| File: CosProcs.h |
| Line: 1522 |
© 2004-2013 Adobe Systems Incorporated. All rights reserved.
Thu Jan 21 2016, 11:19 AM IST