Layer | Acrobat_Forms_Layer |
Object | AcroForm |
The Acrobat Forms plug-in exports its own Host Function Table (HFT), whose methods can be used by other plug-ins. To use the Acrobat Forms plug-ins' HFT, a plug-in must:
FormsHFT.h
(which includes
AF_ExpT.h
and AF_Sel.h
).
FORMSHFT.H
.
gAcroFormHFT
.
Data may be imported and exported into Acrobat Forms in Forms Data Format (FDF). FDF is used to submit form data to a server, as well as to receive the response and incorporate it into a form. FDF is based on PDF and uses the same syntax and set of basic object types as PDF. It also has the same file structure, except that the cross-reference table is optional. See the PDF Reference for more information.
OLE for Forms
This document describes the Forms HFT. The Interapplication Communication (IAC) APIs supported by the Acrobat Forms plug-in are described in Developing Applications using Interapplication Communication and the Interapplication Communication API Reference.
Define | ||
---|---|---|
AcroFormHFT_LATEST_VERSION | ||
AcroFormHFT_NAME | ||
AcroFormNum_SEL | ||
AcroTTSHFT_LATEST_VERSION | ||
AcroTTSHFT_NAME | ||
AcroTTSNum_SEL | ||
AFAVignore_F | ||
Init_AcroFormHFT | ||
Init_AcroTTSHFT
Use this to initialize and make the TTS HFT functions available to your plug-in.
|
||
Init_TextAppearanceP
Macro for setting text appearance.
|
||
kAFOptionsR2LDirection
The default paragraph direction is right to left.
|
||
SetDefault_TextAppearanceP
Macro for setting text appearance. This macro uses Helvetica as the default font.
|
||
TextApperanceIsValid
Macro for checking whether a text appearance is valid.
|
Typedef | ||
---|---|---|
AcroForm | ||
AFPDFieldBorder
Field border data type.
|
||
AFPDFieldFlags_t
Used for the value of flags set by AFPDFieldSetFlags.
|
||
AFPDWidgetBorder | ||
AFPDWidgetBorderRec | ||
AFTextAttributesP | ||
ExportAsFDFParams | ||
ExportAsFDFParamsRec | ||
TextAppearanceP |
Enumeration | ||
---|---|---|
AF_Flags_t
The type of flag to be set in AFPDFieldSetFlags(). If Flags_Annot, SetFlagsAnnot, or ClrFlagsAnnot is specified and the PDField is not an annotation, no flags are changed.
|
||
AF_NotificationSelector_t
Deprecated as of Acrobat 8.0.
|
||
AFPDWidgetBorderStyle
Form field appearance definitions for the outside border of an annotation.
|
||
Structure | ||
---|---|---|
_AFPDWidgetBorderRec
Form field appearance definitions for the outside border of an annotation.
|
||
_t_ExportAsFDFParams
A parameter block used in the call to ExportAsFDFWithParams().
|
||
AF_NtfyParams_t
Deprecated as of Acrobat 8.0.
|
||
AFTextAttributesRec | ||
TextAppearance_t
A structure containing information about the text appearance of a field.
|
Callback | ||
---|---|---|
AF_NotificationFailureProc
Deprecated as of Acrobat 8.0.
|
||
AF_NotificationProc
Deprecated as of Acrobat 8.0.
|
||
AFPDFieldEnumProc
Callback used by AFPDDocEnumPDFields(). It is called once for each PDField in a form.
|
Method | ||
---|---|---|
ASInt32 AcroFormRegisterObserver(AF_NotificationSelector_t notificationID, AF_NotificationProc notifyProc, AF_NotificationFailureProc notifyFailure, void* clientData)
Deprecated as of Acrobat 8.0.
|
||
Deprecated as of Acrobat 8.0.
|
||
Deprecated as of Acrobat 8.0.
|
||
CosObj AFDrawText(CosDoc cd, ASFixedRectP frBbox, PDRotate annotRotation, ASBool bWrap, AFPDWidgetBorder border, AFTextAttributesP textAttrs, ASConstText asText, ASFixed fxMinFontSize, ASFixed fxMaxFontSize)
Lays out the text and creates a Cos XObject with the content stream for the text and required Resources. This API supports Unicode text. If required, different fonts may be used for different characters in the text. It has support for western scripts, Arabic, Hebrew, Thai, Vietnamese, Chinese, Japanese, and Korean. Other scripts may be added in the future.
|
||
ASBool AFExecuteThisScript(PDDoc pdd, const char* cScript, char** pRetValue)
Executes an AcroForm JavaScript script.
|
||
Get the default size for a specific field type. This method will get the new default value if the user changes it.
|
||
ASBool AFGetScriptingContext(void** pcx, void** pobj)
Deprecated as of Acrobat 8.0.
|
||
ASBool AFGetScriptingContextEx(ScriptingData data)
|
||
Opens the dialog box that allows the user to select a PDF to use as the icon for a button.
|
||
void AFLayoutBorder(void* vlayout, AFPDWidgetBorder border, PDColorValue pdcvBrdr, PDColorValue pdcvBg, ASBool bDown)
Draws a border into the layout context.
|
||
CosObj AFLayoutCreateStream(void* vlayout)
Creates a layout stream that can be used as an annotation appearance.
|
||
void AFLayoutDelete(void* vlayout)
Frees the layout context.
|
||
void AFLayoutIconText(void* vLayout, AFPDWidgetPosition nPosition, CosObj coIcon, AFPDWidgetBorder border, TextAppearanceP ta, char* cBytes)
Deprecated as of Acrobat 8.0.
|
||
Creates a new layout context for annotations. Use PDAnnotGetRect() to get the annotation's bounding box, then use this method to define new layout context.
|
||
void AFLayoutText(void* vlayout, ASBool bMultline, ASBool bWrap, AFPDWidgetBorder border, TextAppearanceP ta, char* cBytes)
Sets the text layout for the annotation.
|
||
void AFLayoutTextEx(void* vlayout, ASBool bMultline, ASBool bWrap, AFPDWidgetBorder border, TextAppearanceP ta, char* cBytes, ASFixed fxMinFontSize, ASFixed fxMaxFontSize)
Sets the text layout for the annotation.
|
||
void AFPDDocEnumPDFields(PDDoc doc, ASBool terminals, ASBool parameterIgnored, AFPDFieldEnumProc proc, void* clientData)
Enumerates all PDField objects that exist in a PDDoc.
|
||
PDField AFPDDocGetPDFieldFromName(PDDoc doc, char* name)
Retrieves a PDField with a given name from a PDDoc. (If multiple fields have the same name, a change to any of them affects all of them.)
|
||
void AFPDDocLoadPDFields(PDDoc doc)
Ensures that every PDField in the given PDDoc exists.
|
||
PDField AFPDFieldFromCosObj(CosObj dict)
Retrieves the PDField object for which a Cos object is the dictionary.
|
||
CosObj AFPDFieldGetCosObj(PDField fldP)
Retrieves the Cos object which is the field object of a PDField object.
|
||
void AFPDFieldGetDefaultTextAppearance(PDField fldP, TextAppearanceP aP)
This routine is deprecated: use AFPDFieldGetDefaultTextAppearanceEx() instead.
|
||
void AFPDFieldGetDefaultTextAppearanceEx(PDField fldP, TextAppearanceP aP, size_t size)
Gets the default text appearance of a field. Use this method to get the font, size, color, and other values that were set through the field properties dialog box.
|
||
ASUns32 AFPDFieldGetFlags(PDField fldP, AF_Flags_t flagType)
Retrieves the flags of a PDField for a given flag type.
|
||
char* AFPDFieldGetName(PDField fldP)
Gets the name of a PDField object.
|
||
CosObj AFPDFieldGetValue(PDField fldP)
Retrieves the value from a PDField. The value is stored in the field entry with the V key.
|
||
ASBool AFPDFieldIsAnnot(PDField fldP)
Determines whether a PDField is an annotation (PDAnnot), that is, whether the field dictionary is also an annotation. If this is the case, the value of Subtype is Widget.
|
||
ASBool AFPDFieldIsTerminal(PDField fldP)
Determines whether a field is terminal, which means that the field has no children or it has the same name as its children.
|
||
ASBool AFPDFieldIsValid(PDField fldP)
Determines whether a field is valid.
|
||
void AFPDFieldReset(PDField fldP)
Sets a PDField object's value to its default state. This is the value associated with the DV key for the field. If there is no DV key for the field, set the field's value to the NULL Cos object; otherwise, if the field has options, the default DV is the first element of the Opt array.
|
||
void AFPDFieldSetDefaultTextAppearance(PDField fldP, TextAppearanceP aP)
This routine is deprecated. Use AFPDFieldSetDefaultTextAppearanceEx() instead.
|
||
void AFPDFieldSetDefaultTextAppearanceEx(PDField fldP, TextAppearanceP aP, size_t size)
Sets the default text appearance of a field. Use this method to set the font, size, color, and so on.
|
||
Sets the flags of type flagType for a PDField.
|
||
RetCode AFPDFieldSetOptions(PDField fldP, CosObj array)
Sets the options entry for a field. The options entry has the key Opt and represents a list of options for a choice field.
|
||
ASBool AFPDFieldSetValue(PDField fldP, CosObj val)
Sets the value for a PDField. The value is stored in the field entry with the V key. The method updates the display of the field and its namesakes; that is, fields with the same fully qualified names, if any. Changing the field dictionary's value for the V entry directly does not change the appearance of the field, which is represented by the AP key.
|
||
void AFPDFieldValueChanged(PDDoc pdd, PDField fldP)
Deprecated as of Acrobat 8.0.
|
||
Creates an XObject form from a PDF page. A form XObject is a content stream that can be treated as a single graphics object. Use this method for importing PDF graphics into documents.
|
||
Gets the border and background colors of an annotation.
|
||
Gets the border of an annotation.
|
||
PDRotate AFPDWidgetGetRotation(PDAnnot pdan)
Gets the rotation of the annotation.
|
||
Sets the border and background color of the annotation.
|
||
Sets the border of an annotation.
|
||
ASBool AFTTSEnd()
Finalizes a speech section shutting down the speech engines used by the TTS object. AFTTSIsAvailable() should return false after that. Its use by a plug-in should not be needed at any time, since AcroForms already handles TTS termination. Initialization of TTS is also handled automatically. By calling any function below, AFTTSIsAvailable() should then return true, in case a SAPI engine is installed on the system.
|
||
ASUns32 AFTTSGetCharacterScale()
Not implemented in 4.05.
|
||
ASUns32 AFTTSGetNumberOfVoices()
Gets the number of different speakers available to the current TTS engine.
|
||
ASUns32 AFTTSGetPitch()
Gets the baseline pitch for the voice of a speaker.
|
||
char* AFTTSGetPunctuations()
Not implemented in 4.05.
|
||
char* AFTTSGetSpeaker()
Gets the name of the current speaker.
|
||
ASUns32 AFTTSGetSpeechRate()
Gets the speed at which text is being spoken by the TTS engine.
|
||
char* AFTTSGetVoiceName(ASInt32 index)
Gets the voice name of any of the available speakers in the installed TTS engine.
|
||
ASUns32 AFTTSGetVolume()
Gets the volume for the speaker.
|
||
ASBool AFTTSIsAvailable()
Determines whether the TTS object is available and the Text-to-Speech engine can be used.
|
||
ASBool AFTTSPause()
Immediately pauses TTS output on a TTS object. Playback of the remaining queued text can be resumed via AFTTSResume().
|
||
ASBool AFTTSQSilence(ASUns32 duration)
Queues a period of silence into the text.
|
||
ASBool AFTTSQSound(const char* soundName)
Puts a sound into the queue. The sound can then be performed by AFTTSTalk().
|
||
Not implemented in 4.05.
|
||
ASBool AFTTSQueueTextData(const char* textdata, ASBool UseDefaultSpeaker)
Puts text into the queue to be performed by AFTTSTalk().
|
||
ASBool AFTTSReset()
Stops playback of the currently queued text, and flushes the queue. It resets all the properties of the TTS object to their default values.
|
||
ASBool AFTTSResume()
Resumes playback of text on a paused TTS object.
|
||
ASBool AFTTSSetCharacterScale(ASUns32 chrScale)
Not implemented in 4.05.
|
||
void AFTTSSetNotify(AFTTSNotifyProc proc)
Sets the function to be called when TTS finished speaking. NULL disables callbacks.
|
||
ASBool AFTTSSetPitch(ASUns32 pitch)
Sets the baseline pitch for the voice of a speaker.
|
||
ASBool AFTTSSetPunctuations(const char* punctuations)
Not implemented in 4.05.
|
||
ASBool AFTTSSetSpeaker(const char* voiceName)
Sets the current voice. Valid values are any of those enumerated via AFTTSGetVoiceName() and AFTTSGetNumberOfVoices().
|
||
ASBool AFTTSSetSpeechRate(ASUns32 speed)
Sets the speed at which text is being spoken by the TTS engine.
|
||
ASBool AFTTSSetVolume(ASUns32 volume)
Sets the speech volume.
|
||
ASBool AFTTSStop()
Stops playback of currently queued text, and flushes the queue. Playback of queued text cannot be resumed.
|
||
ASBool AFTTSTalk()
Sends whatever is in the queue to be spoken by the SAPI TTS engine. If the text output had been paused, it resumes playback of the queued text.
|
||
Constructs an Acrobat form from templates and imports an FDF file.
|
||
CosDoc ExportAsFDF(PDDoc pdForm, CosObj rgIncExcFlds, ASBool bIncl, ASBool bEmpty, ASBool bMenu, ASBool bLoadFields, ASPathName fdfPath)
Exports form data to a CosDoc, which can be written to an FDF file. See the PDF Reference for a description of this format.
|
||
CosDoc ExportAsFDFEx(PDDoc pdForm, CosObj rgIncExcFlds, ASBool bIncl, ASBool bEmpty, ASBool bMenu, ASBool bLoadFields, ASPathName fdfPath, const char* submitBtnName)
Exports form data to a CosDoc object, which can be written to an FDF file. See the PDF Reference for a description of this format.
|
||
CosDoc ExportAsFDFWithParams(ExportAsFDFParams params)
Exports form data to a CosDoc, which can be written to an FDF file. See the PDF Reference for a description of this format.
|
||
Exports data from a form to a file in HTML format.
|
||
void ExportAsHtmlEx(PDDoc pdForm, CosObj rgIncExcFlds, ASBool bIncl, ASBool bEmpty, ASFile Hfile, const char* submitBtnName)
Exports data from a form to a file in HTML format.
|
||
Imports data from an FDF file into a PDDoc object's form. See the PDF Reference for a description of this format.
|
||
ASBool IsPDDocAcroForm(PDDoc doc)
Indicates whether a PDDoc contains an Acrobat form.
|
||
Resets the indicated fields of a PDDoc object's form to their default values.
|
AcroFormHFT_LATEST_VERSION |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AcroFormHFT_LATEST_VERSION (0x00010002)
File: AF_Sel.h |
Line: 42 |
AcroFormHFT_NAME |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AcroFormHFT_NAME "Forms"
File: AF_Sel.h |
Line: 41 |
AcroFormNum_SEL |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AcroFormNum_SEL AcroFormLast_SEL - 1
File: AF_Sel.h |
Line: 40 |
AcroTTSHFT_LATEST_VERSION |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AcroTTSHFT_LATEST_VERSION (0x00010012)
File: AFTTS_Sel.h |
Line: 44 |
AcroTTSHFT_NAME |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AcroTTSHFT_NAME "TTS"
File: AFTTS_Sel.h |
Line: 43 |
AcroTTSNum_SEL |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AcroTTSNum_SEL AcroTTSLast_SEL - 1
File: AFTTS_Sel.h |
Line: 42 |
AFAVignore_F |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define AFAVignore_F ((AFPDFieldFlags_t)0x00000001)
File: AF_ExpT.h |
Line: 155 |
Init_AcroFormHFT |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define Init_AcroFormHFT ASExtensionMgrGetHFT(ASAtomFromString(AcroFormHFT_NAME), AcroFormHFT_LATEST_VERSION)
File: FormsHFT.h |
Line: 41 |
Init_AcroTTSHFT |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define Init_AcroTTSHFT ASExtensionMgrGetHFT(ASAtomFromString(AcroTTSHFT_NAME), AcroTTSHFT_LATEST_VERSION)
Use this to initialize and make the TTS HFT functions available to your plug-in.
File: TtsHFT.h |
Line: 54 |
Init_TextAppearanceP |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define Init_TextAppearanceP {\ memset(aP, 0, sizeof(TextAppearance_t));\ (aP)->baseFont = ASAtomNull;\ (aP)->nameFont = ASAtomNull;\ }
Macro for setting text appearance.
File: AF_ExpT.h |
Line: 368 |
kAFOptionsR2LDirection |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define kAFOptionsR2LDirection ((ASUns32)0x0001)
The default paragraph direction is right to left.
File: AF_ExpT.h |
Line: 267 |
SetDefault_TextAppearanceP |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define SetDefault_TextAppearanceP d = fixedOne;\ (aP)->quadding = LeftQ;\ (aP)->nativeZeroDigit = 0x0030;\ }
Macro for setting text appearance. This macro uses Helvetica as the default font.
File: AF_ExpT.h |
Line: 383 |
TextApperanceIsValid |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define TextApperanceIsValid (\ (aP)->quadding <= RightQ && \ (aP)->renderMode <= Invisible_text && \ (aP)->baseFont != ASAtomNull && \ (aP)->textSize >= AutoSize)
Macro for checking whether a text appearance is valid.
File: AF_ExpT.h |
Line: 390 |
AcroForm |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef OPAQUE_64_BITS AcroForm;
File: AF_ExpT.h |
Line: 66 |
AFPDFieldBorder |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef AFPDWidgetBorderRec AFPDFieldBorder;
See Also
File: AF_ExpT.h |
Line: 244 |
AFPDFieldFlags_t |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef ASUns32 AFPDFieldFlags_t;
Used for the value of flags
set by AFPDFieldSetFlags.
File: AF_ExpT.h |
Line: 144 |
AFPDWidgetBorder |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef _AFPDWidgetBorderRec AFPDWidgetBorder;
File: AF_ExpT.h |
Line: 236 |
AFPDWidgetBorderRec |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef _AFPDWidgetBorderRec AFPDWidgetBorderRec;
File: AF_ExpT.h |
Line: 236 |
AFTextAttributesP |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef AFTextAttributesRec AFTextAttributesP;
File: AF_ExpT.h |
Line: 314 |
ExportAsFDFParams |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef _t_ExportAsFDFParams ExportAsFDFParams;
File: AF_ExpT.h |
Line: 682 |
ExportAsFDFParamsRec |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef _t_ExportAsFDFParams ExportAsFDFParamsRec;
File: AF_ExpT.h |
Line: 682 |
TextAppearanceP |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef TextAppearance_t TextAppearanceP;
File: AF_ExpT.h |
Line: 360 |
AF_Flags_t |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AF_Flags_t {
Flags_Annot = 0,
Flags_Field,
SetFlagsAnnot,
ClrFlagsAnnot,
SetFlagsField,
ClrFlagsField,
Flags_Ignore
}
See Also
File: AF_ExpT.h |
Line: 110 |
Flags_Annot | Sets the flags defined in the F key of the annotation to the values specified in the |
|
Flags_Field | Sets the flags defined in the Ff key of the form field to the values specified in the |
|
SetFlagsAnnot | Sets the bits in the flags to those that are |
|
ClrFlagsAnnot | Clears the bits in the flags to those that are |
|
SetFlagsField | Sets the bits in the flags to those that are |
|
ClrFlagsField | Clears the bits in the flags to those that are |
|
Flags_Ignore | Does not change any flags for the field or annot. |
AF_NotificationSelector_t |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AF_NotificationSelector_t {
FieldValueWillChange = (ASInt32)0,
FieldValueDidChange,
AcroFormWasCreated,
FieldWasAdded,
FieldWillBeRemoved,
FieldChangedType,
FieldValidateChange,
FieldWillGenerateDisplay,
FDFWillImport,
FDFWillImportHaveDoc,
FDFWillExport,
XFDFWillImport,
TextFieldSelectionDidChange,
FieldAttributeDidChange,
TextFieldValueDidChange,
DynamicDocWillRender,
DynamicDocDidRender,
ContextSelectionDidChange,
AcroFormNumNotifications
}
File: AF_ExpT.h |
Line: 470 |
AFHorizontalAlign |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AFHorizontalAlign {
kAFAlign_Left,
kAFAlign_Center,
kAFAlign_Right,
kAFAlign_Justify,
kAFAlign_JustifyAll
}
File: AF_ExpT.h |
Line: 271 |
AFPDWidgetBorderStyle |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AFPDWidgetBorderStyle {
AFPDWBSolid = 0,
AFPDWBDashed,
AFPDWBBeveled,
AFPDWBInset,
AFPDWBUnderline,
AFPDWBInvalid
}
See Also
File: AF_ExpT.h |
Line: 202 |
AFPDWBSolid | Strokes the entire perimeter of the widget with a solid line. |
|
AFPDWBDashed | Strokes the entire perimeter of the widget with a dashed line. |
|
AFPDWBBeveled | Equivalent to the AFPDWBSolid style with an additional beveled (pushed-out appearance) border applied inside the solid border. |
|
AFPDWBInset | Equivalent to the AFPDWBBeveled style with an additional beveled (pushed-in appearance) border applied inside the solid border. |
|
AFPDWBUnderline | Strokes the bottom portion of the widget with a underline styled line. |
|
AFPDWBInvalid | Do not change the border. |
AFPDWidgetPosition |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AFPDWidgetPosition {
AFPDWPTextOnly = 0,
AFPDWPIconOnly,
AFPDWPIconOverText,
AFPDWPTextOverIcon,
AFPDWPIconText,
AFPDWPTextIcon,
AFPDWPTextInIcon,
AFPDWPInvalid
}
File: AF_ExpT.h |
Line: 246 |
AFRenderModeFlags |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AFRenderModeFlags {
Fill_text = 0,
Stroke_text = 1,
FnS_text = 2,
Invisible_text = 3
}
File: AF_ExpT.h |
Line: 264 |
AFVerticalAlign |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AFVerticalAlign {
kAFAlign_Top,
kAFAlign_Middle,
kAFAlign_Bottom
}
File: AF_ExpT.h |
Line: 280 |
_AFPDWidgetBorderRec |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
struct _AFPDWidgetBorderRec {
AFPDWidgetBorderStyle nStyle;
ASInt32 nWidth;
}
Form field appearance definitions for the outside border of an annotation.
See Also
File: AF_ExpT.h |
Line: 228 |
nStyle | The style of the border. The possible types are solid, dashed, beveled, inset, and underline. |
|
nWidth |
_t_ExportAsFDFParams |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
struct _t_ExportAsFDFParams {
A parameter block used in the call to ExportAsFDFWithParams().
File: AF_ExpT.h |
Line: 607 |
size | The size of the data structure. It must be set to |
|
avForm | The AVDoc for the form from which you want to export the data. You can pass |
|
pdForm | The PDDoc for the form from which you want to export the data. |
|
rgIncExcFlds | If
This variety of |
|
bIncl | If |
|
bEmpty | If |
|
bExcludePasswd | If |
|
bCheckReqd | If |
|
asaEncoding | Encoding to use in the produced FDF file for the value of the V entry when it is a string. If ASAtomNull is passed, then ExportAsFDF() will determine which encoding to use. If PDFDocEncoding is passed, then do not perform any encoding conversions and simply send V as is (which means as PDFDocEncoding or Unicode). Other allowed values are Shift_JIS, BigFive, GBK, and UHC. |
|
fdfPath | The path where the FDF file will be saved (by the client) after it is produced (by ExportAsFDFWithParams()). You need this in order to create an FDF file with an /F key that gives the relative path to the form from the location where the FDF file will be saved. Pass |
|
fdfFilesys | ||
submitBtnName | A |
AF_NtfyParams_t |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
struct AF_NtfyParams_t {
PDDoc pdd;
CPDField_P pCPDFld;
CWidget_P pCWidget;
struct _EStrRec* esValue;
struct _EStrRec* esChange;
struct _EStrRec* esChangeEx;
ASBool fieldFull;
ASInt32 nSelStart;
ASUns32 nSubmitFlags;
ASInt32 nSelEnd;
RetCode rc;
CosDoc cd;
ASAtom asaFieldType;
void* cos2XMLEngine;
const char* cValue;
ASInt32 len;
ASInt32 nCursorPos;
AVPageView avPageView;
PDAnnot pdAnnot;
CAgg_P richChange;
CAgg_P richChangeEx;
CAgg_P richValue;
ASBool bModified;
}
Deprecated as of Acrobat 8.0.
File: AF_ExpT.h |
Line: 511 |
AFTextAttributesRec |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
struct AFTextAttributesRec {
size_t size;
ASText fontName;
ASReal textSize;
AFHorizontalAlign horizontalAlignment;
AFVerticalAlign verticalAlignment;
PDColorValueRec fillColor;
ASUns32 options;
ASUnicodeChar nativeZeroDigit;
}
File: AF_ExpT.h |
Line: 287 |
size | The size of the structure. Clients must initialize with the size of the structure. |
|
fontName | ||
textSize | The point size of the text. When it is |
|
horizontalAlignment | The text justification. |
|
verticalAlignment | The vertical Alignment |
|
fillColor | ||
options | Options. |
|
nativeZeroDigit | Native Zero digit. |
TextAppearance_t |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
struct TextAppearance_t {
A structure containing information about the text appearance of a field.
See Also
File: AF_ExpT.h |
Line: 323 |
charSpacing | The spacing between characters. |
|
wordSpacing | The spacing between words. |
|
horizontalScale | The horizontal scale. |
|
leading | The leading. |
|
textRise | The text rise. |
|
textSize | The point size of the text. When it is |
|
textMatrix | ||
strokeColor | The pen color. |
|
fillColor | The fill color. |
|
renderMode | The mode. |
|
quadding | The text justification. |
|
baseFont | ||
nameFont | ||
options | Options. |
|
nativeZeroDigit | Native Zero digit. |
AF_NotificationFailureProc |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Deprecated as of Acrobat 8.0.
File: AF_ExpT.h |
Line: 413 |
AF_NotificationProc |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void (*AF_NotificationProc)(void *info, void *clientData)
Deprecated as of Acrobat 8.0.
File: AF_ExpT.h |
Line: 411 |
AFPDFieldEnumProc |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Callback used by AFPDDocEnumPDFields(). It is called once for each PDField in a form.
See Also
File: AF_ExpT.h |
Line: 576 |
AcroFormRegisterObserver | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 AcroFormRegisterObserver(AF_NotificationSelector_t notificationID, AF_NotificationProc notifyProc, AF_NotificationFailureProc notifyFailure, void* clientData)
Deprecated as of Acrobat 8.0.
Parameters
notificationID |
|
notifyProc |
|
notifyFailure |
|
clientData |
File: FormsHFTProcs.h |
Line: 368 |
AcroFormUnregisterObserver | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AcroFormUnregisterObserver(AF_NotificationSelector_t notificationID, ASInt32 observerID)
Deprecated as of Acrobat 8.0.
Parameters
notificationID |
|
observerID |
File: FormsHFTProcs.h |
Line: 371 |
AFCalculateFields | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Deprecated as of Acrobat 8.0.
Parameters
pdd |
|
asc |
File: FormsHFTProcs.h |
Line: 784 |
AFDrawText | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosObj AFDrawText(CosDoc cd, ASFixedRectP frBbox, PDRotate annotRotation, ASBool bWrap, AFPDWidgetBorder border, AFTextAttributesP textAttrs, ASConstText asText, ASFixed fxMinFontSize, ASFixed fxMaxFontSize)
Lays out the text and creates a Cos XObject with the content stream for the text and required Resources. This API supports Unicode text. If required, different fonts may be used for different characters in the text. It has support for western scripts, Arabic, Hebrew, Thai, Vietnamese, Chinese, Japanese, and Korean. Other scripts may be added in the future.
Parameters
cd — | The CosDoc. |
|
frBbox — | The bounding box of the area for text and border data to flow into. |
|
annotRotation — | The rotation of the annotation. |
|
bWrap — | If |
|
border — | ||
textAttrs — | ||
asText — | The maximum font size, when using autosizing and line style of a border. |
|
fxMinFontSize — | A pointer to structure containing font, point size, color information, alignment, and writing direction. |
|
fxMaxFontSize — |
A stream CosObj. If the operation fails, then CosNewNull() is returned. |
File: FormsHFTProcs.h |
Line: 808 |
AFExecuteThisScript | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Executes an AcroForm JavaScript script.
Parameters
pdd — | The PDDoc in which the script is to be executed. |
|
cScript — | A string containing the text of the script to be executed. If it is Unicode, the string must begin with |
|
pRetValue — | To get a return value from the execution of the script, pass a non- |
The JavaScript value of |
File: FormsHFTProcs.h |
Line: 755 |
AFGetDefaultFieldSize | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFGetDefaultFieldSize(ASAtom fieldType, ASFixedPoint* asfp)
Get the default size for a specific field type. This method will get the new default value if the user changes it.
Parameters
fieldType — | The ASAtom corresponding to the field type. The string for the type can be converted to an ASAtom using ASAtomFromString(). |
|
asfp — | (Filled by the method) A pointer to a point whose coordinates correspond to width and height of the field. |
File: FormsHFTProcs.h |
Line: 849 |
AFGetScriptingContext | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFGetScriptingContext(void** pcx, void** pobj)
Deprecated as of Acrobat 8.0.
Parameters
pcx |
|
pobj |
File: FormsHFTProcs.h |
Line: 374 |
AFGetScriptingContextEx | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFGetScriptingContextEx(ScriptingData data)
Parameters
data |
File: FormsHFTProcs.h |
Line: 733 |
AFImportAppearance | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Opens the dialog box that allows the user to select a PDF to use as the icon for a button.
Parameters
cd — | The CosDoc that contains the appearance you are trying to import. |
|
coIcon — | If AFImportAppearance() is successful, |
|
avd — | The AVDoc that you want as the parent for the window. You can pass |
|
cTitle — | The window title of the dialog box when it appears. You can pass |
|
File: FormsHFTProcs.h |
Line: 698 |
AFLayoutBorder | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFLayoutBorder(void* vlayout, AFPDWidgetBorder border, PDColorValue pdcvBrdr, PDColorValue pdcvBg, ASBool bDown)
Draws a border into the layout context.
Parameters
vlayout — | The layout of the annotation. Use AFLayoutNew() to create a new layout before calling this method. |
|
border — | A pointer to a structure containing information about the appearance a border. |
|
pdcvBrdr — | A PDColorValue structure representing the color of the annotations border. |
|
pdcvBg — | A PDColorValue structure representing the color of the annotations background. |
|
bDown — | A boolean value specifying whether the background should be drawn as it is drawn in forms while being pressed (clicked by the mouse). If |
See Also
File: FormsHFTProcs.h |
Line: 560 |
AFLayoutCreateStream | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosObj AFLayoutCreateStream(void* vlayout)
Creates a layout stream that can be used as an annotation appearance.
Parameters
vlayout — | The layout of the annotation. Use AFLayoutNew() to create a new layout before calling this method. |
A stream CosObj. |
See Also
File: FormsHFTProcs.h |
Line: 781 |
AFLayoutDelete | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFLayoutDelete(void* vlayout)
Frees the layout context.
Parameters
vlayout — |
See Also
File: FormsHFTProcs.h |
Line: 539 |
AFLayoutIconText | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFLayoutIconText(void* vLayout, AFPDWidgetPosition nPosition, CosObj coIcon, AFPDWidgetBorder border, TextAppearanceP ta, char* cBytes)
Deprecated as of Acrobat 8.0.
Parameters
vLayout |
|
nPosition |
|
coIcon |
|
border |
|
ta |
|
cBytes |
File: FormsHFTProcs.h |
Line: 730 |
AFLayoutNew | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void* AFLayoutNew(ASFixedRectP frBbox, PDRotate annotRotation, CosDoc cd)
Creates a new layout context for annotations. Use PDAnnotGetRect() to get the annotation's bounding box, then use this method to define new layout context.
Parameters
frBbox — | The bounding box of the area for text and border data to flow into. |
|
annotRotation — | The rotation of the annotation. |
|
cd — | The CosDoc. |
A new layout. |
See Also
File: FormsHFTProcs.h |
Line: 770 |
AFLayoutText | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFLayoutText(void* vlayout, ASBool bMultline, ASBool bWrap, AFPDWidgetBorder border, TextAppearanceP ta, char* cBytes)
Sets the text layout for the annotation.
It raises an exception if the field is a radio box or button.
Parameters
vlayout — | The layout of the annotation. |
|
bMultline — | If |
|
bWrap — | If |
|
border — | The border appearance that defines the width and line style of a border. The border of the annotation should be the same as in your call to AFLayoutBorder(). |
|
ta — | A pointer to a structure containing font, point size, and color information. You should initialize the structure with the |
|
cBytes — |
See Also
File: FormsHFTProcs.h |
Line: 585 |
AFLayoutTextEx | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFLayoutTextEx(void* vlayout, ASBool bMultline, ASBool bWrap, AFPDWidgetBorder border, TextAppearanceP ta, char* cBytes, ASFixed fxMinFontSize, ASFixed fxMaxFontSize)
Sets the text layout for the annotation.
It raises an exception if the field is a radio box or button.
Parameters
vlayout — | The layout of the annotation. |
|
bMultline — | If |
|
bWrap — | If |
|
border — | The border appearance that defines the width and line style of a border. The border of the annotation should be the same as in your call to AFLayoutBorder(). |
|
ta — | A pointer to a structure containing font, point size, and color information. You should initialize the structure with the |
|
cBytes — | ||
fxMinFontSize — | ||
fxMaxFontSize — |
See Also
File: FormsHFTProcs.h |
Line: 727 |
AFPDDocEnumPDFields | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDDocEnumPDFields(PDDoc doc, ASBool terminals, ASBool parameterIgnored, AFPDFieldEnumProc proc, void* clientData)
Enumerates all PDField objects that exist in a PDDoc.
Parameters
doc — | ||
terminals — | If |
|
parameterIgnored — | This parameter is no longer used (it is ignored). |
|
proc — | A user-supplied callback that is called for each PDField. The enumeration terminates if |
|
clientData — | A pointer to user-specified data that is passed to |
File: FormsHFTProcs.h |
Line: 53 |
AFPDDocGetPDFieldFromName | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
PDField AFPDDocGetPDFieldFromName(PDDoc doc, char* name)
Retrieves a PDField with a given name from a PDDoc. (If multiple fields have the same name, a change to any of them affects all of them.)
Parameters
doc — | The PDDoc containing the field. |
|
name — | The name of the field to retrieve. |
The PDField specified by name. It returns |
See Also
File: FormsHFTProcs.h |
Line: 65 |
AFPDDocLoadPDFields | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDDocLoadPDFields(PDDoc doc)
Ensures that every PDField in the given PDDoc exists.
Parameters
doc — |
File: FormsHFTProcs.h |
Line: 39 |
AFPDFieldFromCosObj | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
PDField AFPDFieldFromCosObj(CosObj dict)
Retrieves the PDField object for which a Cos object is the dictionary.
Parameters
dict — | The Cos object for which to retrieve the corresponding PDField object. |
The PDField corresponding to |
See Also
File: FormsHFTProcs.h |
Line: 76 |
AFPDFieldGetCosObj | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosObj AFPDFieldGetCosObj(PDField fldP)
Retrieves the Cos object which is the field object of a PDField object.
Parameters
fldP — | The PDField object for which to retrieve the corresponding Cos object. |
A Cos object corresponding to the PDField object ( |
See Also
File: FormsHFTProcs.h |
Line: 89 |
AFPDFieldGetDefaultTextAppearance | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldGetDefaultTextAppearance(PDField fldP, TextAppearanceP aP)
This routine is deprecated: use AFPDFieldGetDefaultTextAppearanceEx() instead.
Gets the default text appearance of a field. Use this method to get the font, size, color, and so on (values that were set through the field properties dialog box).
Parameters
fldP — | The PDField object for which to retrieve the text appearance. |
|
aP — | A pointer to a structure describing the text appearance. It returns font, size, quadding, text color, and so on up to and including the |
See Also
File: FormsHFTProcs.h |
Line: 616 |
AFPDFieldGetDefaultTextAppearanceEx | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldGetDefaultTextAppearanceEx(PDField fldP, TextAppearanceP aP, size_t size)
Gets the default text appearance of a field. Use this method to get the font, size, color, and other values that were set through the field properties dialog box.
Parameters
fldP — | The PDField object for which to retrieve the text appearance. |
|
aP — | A pointer to a structure describing the text appearance. It returns font, size, alignment, text color, and so on. |
|
size — | The size in bytes of the structure referenced by |
See Also
File: FormsHFTProcs.h |
Line: 823 |
AFPDFieldGetFlags | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASUns32 AFPDFieldGetFlags(PDField fldP, AF_Flags_t flagType)
Retrieves the flags of a PDField for a given flag type.
Parameters
fldP — | ||
flagType — |
See Also
File: FormsHFTProcs.h |
Line: 148 |
AFPDFieldGetName | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
char* AFPDFieldGetName(PDField fldP)
Gets the name of a PDField object.
Parameters
fldP — |
A |
See Also
File: FormsHFTProcs.h |
Line: 160 |
AFPDFieldGetValue | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosObj AFPDFieldGetValue(PDField fldP)
Retrieves the value from a PDField. The value is stored in the field entry with the V key.
Values can be inherited. If a PDField Cos object does not have a V key, its value is inherited from a parent's V key (the parent must have the same name as the PDField). For example, radio buttons inherit values this way.
Parameters
fldP — |
The value of the field as a CosObj. If the field has no value, |
See Also
File: FormsHFTProcs.h |
Line: 136 |
AFPDFieldIsAnnot | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFPDFieldIsAnnot(PDField fldP)
Determines whether a PDField is an annotation (PDAnnot), that is, whether the field dictionary is also an annotation. If this is the case, the value of Subtype is Widget.
Parameters
fldP — | The field in question. |
|
See Also
File: FormsHFTProcs.h |
Line: 172 |
AFPDFieldIsTerminal | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFPDFieldIsTerminal(PDField fldP)
Determines whether a field is terminal, which means that the field has no children or it has the same name as its children.
Parameters
fldP — | The PDField to test. |
|
See Also
File: FormsHFTProcs.h |
Line: 114 |
AFPDFieldIsValid | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFPDFieldIsValid(PDField fldP)
Determines whether a field is valid.
Parameters
fldP — | The field to test. |
|
See Also
File: FormsHFTProcs.h |
Line: 102 |
AFPDFieldReset | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldReset(PDField fldP)
Sets a PDField object's value to its default state. This is the value associated with the DV key for the field. If there is no DV key for the field, set the field's value to the NULL
Cos object; otherwise, if the field has options, the default DV is the first element of the Opt
array.
A DV entry's value can be inherited from a parent (just like V).
The PDField object's value is set only if it is terminal (check this by calling AFPDFieldIsTerminal()).
Parameters
fldP — | The PDField to reset. |
See Also
File: FormsHFTProcs.h |
Line: 243 |
AFPDFieldSetDefaultTextAppearance | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldSetDefaultTextAppearance(PDField fldP, TextAppearanceP aP)
This routine is deprecated. Use AFPDFieldSetDefaultTextAppearanceEx() instead.
Sets the default text appearance of a field. Use this method to set the font, size, color, and so on.
Parameters
fldP — | ||
aP — | A pointer to a structure describing the text appearance to set. This routine will use the values up to and including the |
See Also
File: FormsHFTProcs.h |
Line: 632 |
AFPDFieldSetDefaultTextAppearanceEx | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldSetDefaultTextAppearanceEx(PDField fldP, TextAppearanceP aP, size_t size)
Sets the default text appearance of a field. Use this method to set the font, size, color, and so on.
Parameters
fldP — | ||
aP — | A pointer to a structure describing the text appearance to set. |
|
size — | The size in bytes of the structure referenced by |
See Also
File: FormsHFTProcs.h |
Line: 838 |
AFPDFieldSetFlags | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldSetFlags(PDField fldP, AF_Flags_t flagType, AFPDFieldFlags_t flags)
Sets the flags of type flagType
for a PDField.
The flags of a field's children (if any) are also set.
Parameters
fldP — | ||
flagType — | The type of the flags to set. If its value is |
|
flags — |
See Also
File: FormsHFTProcs.h |
Line: 210 |
AFPDFieldSetOptions | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Sets the options entry for a field. The options entry has the key Opt
and represents a list of options for a choice field.
If the field is not valid, remove the options entry.
Parameters
fldP — | ||
array — |
|
See Also
File: FormsHFTProcs.h |
Line: 225 |
AFPDFieldSetValue | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Sets the value for a PDField. The value is stored in the field entry with the V key. The method updates the display of the field and its namesakes; that is, fields with the same fully qualified names, if any. Changing the field dictionary's value for the V entry directly does not change the appearance of the field, which is represented by the AP key.
Parameters
fldP — | The field whose value is set. |
|
val — | The field's new value. If it is different than the previous value, all previous instances of value keys (V) in the field's dictionary and those of its namesakes (fields with the same fully qualified name) are removed. |
See Also
File: FormsHFTProcs.h |
Line: 193 |
AFPDFieldValueChanged | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDFieldValueChanged(PDDoc pdd, PDField fldP)
Deprecated as of Acrobat 8.0.
Parameters
pdd |
|
fldP |
File: FormsHFTProcs.h |
Line: 588 |
AFPDFormFromPage | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Creates an XObject form from a PDF page. A form XObject is a content stream that can be treated as a single graphics object. Use this method for importing PDF graphics into documents.
Parameters
cd — | The CosDoc in which the XObject will be created. |
|
pdp — | The PDPage from which to create the XObject. |
A Cos object pointing to the XObject on the PDF page. |
File: FormsHFTProcs.h |
Line: 528 |
AFPDWidgetGetAreaColors | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDWidgetGetAreaColors(PDAnnot pdan, PDColorValue borderP, PDColorValue bkgndP)
Gets the border and background colors of an annotation.
Parameters
pdan — | The annotation. |
|
borderP — | (Filled by the method) A pointer to a structure representing the border color of the annotation. |
|
bkgndP — | (Filled by the method) A pointer to a structure representing the background color of the annotation. |
See Also
File: FormsHFTProcs.h |
Line: 667 |
AFPDWidgetGetBorder | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFPDWidgetGetBorder(PDAnnot pdan, AFPDWidgetBorder pdwb)
Gets the border of an annotation.
Parameters
pdan — | The annotation. |
|
pdwb — | (Filled by the method) A pointer to a structure describing the form field appearance definitions for the outside border of an annotation. |
|
See Also
File: FormsHFTProcs.h |
Line: 643 |
AFPDWidgetGetRotation | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Gets the rotation of the annotation.
Parameters
pdan — | The annotation widget. |
Returns an ASAtom object representing the annotation's rotation with respect to the page. |
File: FormsHFTProcs.h |
Line: 598 |
AFPDWidgetSetAreaColors | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDWidgetSetAreaColors(PDAnnot pdan, PDColorValue borderP, PDColorValue bkgndP)
Sets the border and background color of the annotation.
Parameters
pdan — | The annotation. |
|
borderP — | A pointer to a structure representing the border color of the annotation. |
|
bkgndP — | A pointer to a structure representing the background color of the annotation. |
See Also
File: FormsHFTProcs.h |
Line: 679 |
AFPDWidgetSetBorder | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFPDWidgetSetBorder(PDAnnot pdan, AFPDWidgetBorder pdwb)
Sets the border of an annotation.
Parameters
pdan — | The annotation whose change border appearance will be set. |
|
pdwb — | A pointer to a structure describing the form field appearance definitions for the outside border of an annotation. Possible border types are solid, dashed, beveled, inset, and underline. |
See Also
File: FormsHFTProcs.h |
Line: 655 |
AFTTSEnd | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSEnd()
Finalizes a speech section shutting down the speech engines used by the TTS object. AFTTSIsAvailable() should return false
after that. Its use by a plug-in should not be needed at any time, since AcroForms already handles TTS termination. Initialization of TTS is also handled automatically. By calling any function below, AFTTSIsAvailable() should then return true
, in case a SAPI engine is installed on the system.
File: TtsHFTProcs.h |
Line: 37 |
AFTTSGetCharacterScale | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASUns32 AFTTSGetCharacterScale()
Not implemented in 4.05.
ReturnsFile: TtsHFTProcs.h |
Line: 173 |
AFTTSGetNumberOfVoices | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASUns32 AFTTSGetNumberOfVoices()
Gets the number of different speakers available to the current TTS engine.
ReturnsThe number of speakers available. |
See Also
File: TtsHFTProcs.h |
Line: 201 |
AFTTSGetPitch | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASUns32 AFTTSGetPitch()
Gets the baseline pitch for the voice of a speaker.
ReturnsThe baseline pitch. The valid range is from |
See Also
File: TtsHFTProcs.h |
Line: 194 |
AFTTSGetPunctuations | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
char* AFTTSGetPunctuations()
Not implemented in 4.05.
ReturnsFile: TtsHFTProcs.h |
Line: 162 |
AFTTSGetSpeaker | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
char* AFTTSGetSpeaker()
Gets the name of the current speaker.
ReturnsThe name of the current speaker. |
See Also
File: TtsHFTProcs.h |
Line: 160 |
AFTTSGetSpeechRate | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASUns32 AFTTSGetSpeechRate()
Gets the speed at which text is being spoken by the TTS engine.
ReturnsThe speed, in words per minute, at which text is being spoken. |
See Also
File: TtsHFTProcs.h |
Line: 171 |
AFTTSGetVoiceName | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
char* AFTTSGetVoiceName(ASInt32 index)
Gets the voice name of any of the available speakers in the installed TTS engine.
Parameters
index — | The index of the speaker. |
The name of the voice. |
See Also
File: TtsHFTProcs.h |
Line: 144 |
AFTTSGetVolume | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASUns32 AFTTSGetVolume()
Gets the volume for the speaker.
ReturnsThe volume. Valid values are from |
See Also
File: TtsHFTProcs.h |
Line: 185 |
AFTTSIsAvailable | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSIsAvailable()
Determines whether the TTS object is available and the Text-to-Speech engine can be used.
Returns
|
File: TtsHFTProcs.h |
Line: 154 |
AFTTSPause | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSPause()
Immediately pauses TTS output on a TTS object. Playback of the remaining queued text can be resumed via AFTTSResume().
Returns
|
See Also
File: TtsHFTProcs.h |
Line: 117 |
AFTTSQSilence | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Queues a period of silence into the text.
Parameters
duration — | The amount of silence in milliseconds. |
|
See Also
File: TtsHFTProcs.h |
Line: 100 |
AFTTSQSound | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSQSound(const char* soundName)
Puts a sound into the queue. The sound can then be performed by AFTTSTalk().
Parameters
soundName — | The sound name, which can be one of the following:
This list can be augmented by adding sound files to the |
|
See Also
File: TtsHFTProcs.h |
Line: 88 |
AFTTSQTone | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Not implemented in 4.05.
Parameters
frequency |
|
duration |
File: TtsHFTProcs.h |
Line: 90 |
AFTTSQueueTextData | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Puts text into the queue to be performed by AFTTSTalk().
Parameters
textdata — | The text that will be put into the queue. |
|
UseDefaultSpeaker — | Whether to use the default speaker. |
|
See Also
File: TtsHFTProcs.h |
Line: 48 |
AFTTSReset | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSReset()
Stops playback of the currently queued text, and flushes the queue. It resets all the properties of the TTS object to their default values.
Returns
|
See Also
File: TtsHFTProcs.h |
Line: 136 |
AFTTSResume | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSResume()
Resumes playback of text on a paused TTS object.
Returns
|
See Also
File: TtsHFTProcs.h |
Line: 107 |
AFTTSSetCharacterScale | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Not implemented in 4.05.
Parameters
chrScale |
File: TtsHFTProcs.h |
Line: 222 |
AFTTSSetNotify | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AFTTSSetNotify(AFTTSNotifyProc proc)
Sets the function to be called when TTS finished speaking. NULL
disables callbacks.
Parameters
proc |
File: TtsHFTProcs.h |
Line: 243 |
AFTTSSetPitch | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Sets the baseline pitch for the voice of a speaker.
Parameters
pitch — | The baseline pitch. The valid range is from |
|
See Also
File: TtsHFTProcs.h |
Line: 240 |
AFTTSSetPunctuations | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSSetPunctuations(const char* punctuations)
Not implemented in 4.05.
Parameters
punctuations |
File: TtsHFTProcs.h |
Line: 211 |
AFTTSSetSpeaker | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSSetSpeaker(const char* voiceName)
Sets the current voice. Valid values are any of those enumerated via AFTTSGetVoiceName() and AFTTSGetNumberOfVoices().
Parameters
voiceName — | The speaker name. |
|
See Also
File: TtsHFTProcs.h |
Line: 209 |
AFTTSSetSpeechRate | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Sets the speed at which text is being spoken by the TTS engine.
Parameters
speed — | The speed in words per minute. |
|
See Also
File: TtsHFTProcs.h |
Line: 220 |
AFTTSSetVolume | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Sets the speech volume.
Parameters
volume — | The volume. Valid values are from |
|
See Also
File: TtsHFTProcs.h |
Line: 230 |
AFTTSStop | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSStop()
Stops playback of currently queued text, and flushes the queue. Playback of queued text cannot be resumed.
Returns
|
See Also
File: TtsHFTProcs.h |
Line: 125 |
AFTTSTalk | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AFTTSTalk()
Sends whatever is in the queue to be spoken by the SAPI TTS engine. If the text output had been paused, it resumes playback of the queued text.
Returns
|
See Also
File: TtsHFTProcs.h |
Line: 57 |
AssembleFormAndImportFDF | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Constructs an Acrobat form from templates and imports an FDF file.
Parameters
pdCurrForm — | The current form being viewed, if any, at the time |
|
cdFDF — | The FDF file being imported. |
|
bAddToCurr — | If |
The PDDoc for the newly-created form (or |
See Also
File: FormsHFTProcs.h |
Line: 502 |
ExportAsFDF | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosDoc ExportAsFDF(PDDoc pdForm, CosObj rgIncExcFlds, ASBool bIncl, ASBool bEmpty, ASBool bMenu, ASBool bLoadFields, ASPathName fdfPath)
Exports form data to a CosDoc, which can be written to an FDF file. See the PDF Reference for a description of this format.
To create an FDF file from the CosDoc, call CosDocSaveToFile().
Parameters
pdForm — | ||
rgIncExcFlds — | If this parameter's value is CosNewNull(), then all fields are exported and
|
|
bIncl — | If |
|
bEmpty — | If |
|
bMenu — | If |
|
bLoadFields — | ||
fdfPath — | IN The path where the FDF file will be saved (by the client of ExportAsFDF()) after it is produced. You need this in order to create an FDF file with an F key that gives the relative path to the form from the location where the FDF file will be saved. Pass |
See Also
Exceptions
File: FormsHFTProcs.h |
Line: 308 |
ExportAsFDFEx | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosDoc ExportAsFDFEx(PDDoc pdForm, CosObj rgIncExcFlds, ASBool bIncl, ASBool bEmpty, ASBool bMenu, ASBool bLoadFields, ASPathName fdfPath, const char* submitBtnName)
Exports form data to a CosDoc object, which can be written to an FDF file. See the PDF Reference for a description of this format.
To create an FDF file from this CosDoc object, call CosDocSaveToFile().
Parameters
pdForm — | ||
rgIncExcFlds — | If this parameter's value is CosNewNull(), then all fields are exported, and
|
|
bIncl — | If |
|
bEmpty — | If |
|
bMenu — | IN If |
|
bLoadFields — | ||
fdfPath — | IN The path where the FDF file will be saved (by the client of ExportAsFDF()) after it is produced. You need this in order to create an FDF file with an F key that gives the relative path to the form from the location where the FDF file will be saved. Pass |
|
submitBtnName — | IN A Note that this dictionary is no different than the one you get when an AcroForm has an empty text field (that is, no value), and parameter |
See Also
Exceptions
File: FormsHFTProcs.h |
Line: 449 |
ExportAsFDFWithParams | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
CosDoc ExportAsFDFWithParams(ExportAsFDFParams params)
Exports form data to a CosDoc, which can be written to an FDF file. See the PDF Reference for a description of this format.
Parameters
params — | An ExportAsFDFParamsRec structure. |
See Also
Exceptions
File: FormsHFTProcs.h |
Line: 517 |
ExportAsHtml | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Exports data from a form to a file in HTML format.
Parameters
pdForm — | ||
rgIncExcFlds — | If this parameter's value is CosNewNull(), then all fields are exported, and |
|
bIncl — | If |
|
bEmpty — | If |
|
Hfile — |
See Also
File: FormsHFTProcs.h |
Line: 326 |
ExportAsHtmlEx | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void ExportAsHtmlEx(PDDoc pdForm, CosObj rgIncExcFlds, ASBool bIncl, ASBool bEmpty, ASFile Hfile, const char* submitBtnName)
Exports data from a form to a file in HTML format.
Parameters
pdForm — | ||
rgIncExcFlds — | If this parameter's value is CosNewNull(), then all fields are exported, and |
|
bIncl — | If |
|
bEmpty — | If |
|
Hfile — | ||
submitBtnName — | A Note that this type of output is the same one you get when an AcroForm has an empty text field (that is, no Value), and parameter |
See Also
File: FormsHFTProcs.h |
Line: 479 |
ImportAnFDF | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Imports data from an FDF file into a PDDoc object's form. See the PDF Reference for a description of this format.
Parameters
pdForm — | ||
cdFDF — |
|
See Also
Exceptions
File: FormsHFTProcs.h |
Line: 342 |
IsPDDocAcroForm | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Indicates whether a PDDoc contains an Acrobat form.
Parameters
doc — | The PDDoc to test. |
|
See Also
File: FormsHFTProcs.h |
Line: 29 |
ResetForm | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Resets the indicated fields of a PDDoc object's form to their default values.
A PDField object's value is reset only if it is terminal; you can check this by calling AFPDFieldIsTerminal().
Parameters
pdForm — | The PDDoc for the form whose fields are reset. |
|
rgIncExcFlds — | If this parameter's value is CosNewNull(), then all fields are reset, and |
|
bIncl — | If |
See Also
File: FormsHFTProcs.h |
Line: 365 |