Layer

Forms Extension

2 components19 items
14 Functions 1 Structures 4 Enums

General

3 items

Functions(2)

Structures(1)

PDDoc

16 items

Functions(12)

PDDocConvertXFAFieldsToAcroFormFields

DLExtrasProcs.h:1308

Convert a XFA document into a document with only AcroForms. XFA content is not widely supported by PDF processors, converting this content transforms XFA fields into AcroForm fields which are more widely supported by PDF processors. All XFA fields are removed.

Parameters
doc: PDDoc

IN/OUT The PDF document object.

pagesConverted: ASUns32 *

OUT The number of output pages created in the converted document.

Returns
void

PDDocExportAcroFormsData

ASBool PDDocExportAcroFormsData(PDDoc doc, ASFileSys fileSys, ASPathName pathName, AcroFormExportType acroFormExportType)
DLExtrasProcs.h:1349

Export the AcroForms data. AcroForms data is exported to a format that can later be imported into another AcroForms document.

Parameters
doc: PDDoc

IN The PDF document object.

fileSys: ASFileSys

IN The file system to write the data to (May be NULL, in which case the default file system will be used)

pathName: ASPathName

OUT The path on disk of the file the AcroForms data is exported to.

acroFormExportType: AcroFormExportType

IN The format type the AcroForm data should be exported to. The supported types are XFDF, FDF, and XML.

Returns

PDDocExportXFAFormsData

DLExtrasProcs.h:1322

Export the XFA Forms data. XFA forms data is exported to a format that can later be imported into another XFA document.

Parameters
doc: PDDoc

IN The PDF document object.

fileSys: ASFileSys

IN The file system to write the document to (May be NULL, in which case the default file system will be used)

pathName: ASPathName

OUT The path on disk of the file the XFA form data is exported to.

exportType: XFAFormExportType

IN The format type the XFA data should be exported to. The supported types are XDP, XML, and XFD.

Returns

PDDocFlattenXFAFields

void PDDocFlattenXFAFields(PDDoc doc, ASUns32 *pagesOutput)
DLExtrasProcs.h:1288

Flatten a XFA Document (Static or Dynamic). XFA content is not widely supported by PDF processors. Flattening this content transforms into static PDF page content that is part of typical PDF files that can easily be understood by PDF processors. All XFA fields are removed.

Parameters
doc: PDDoc

IN/OUT The PDF document object.

pagesOutput: ASUns32 *
Returns
void

PDDocFlattenXFAFieldsAsIfPrinted

DLExtrasProcs.h:1397

Flatten a XFA Document (Static or Dynamic) as if printed. XFA content is not widely supported by PDF processors. Flattening this content transforms into static PDF page content that is part of typical PDF files that can easily be understood by PDF processors. All XFA fields are removed. The Flattened appearance will take into consideration how the document's appearance should appear when printed.

Parameters
doc: PDDoc

IN/OUT The PDF document object.

pagesOutput: ASUns32 *

OUT The number of output pages created in the flattened document.

Returns
void

PDDocImportAcroFormsData

ASBool PDDocImportAcroFormsData(PDDoc doc, ASFileSys fileSys, ASPathName pathName, AcroFormImportType acroFormImportType)
DLExtrasProcs.h:1363

Import the AcroForms data. AcroForms data is imported from a supported format into the AcroForms document so its existing fields can be populated for example.

Parameters
doc: PDDoc

IN/OUT The PDF document object.

fileSys: ASFileSys

IN The file system to import the data from (May be NULL, in which case the default file system will be used)

pathName: ASPathName

IN The path on disk of the AcroFormsdata file to be imported.

acroFormImportType: AcroFormImportType

IN The format type the data type should be imported to. The supported types are XFDF, FDF, and XML.

Returns

PDDocImportXFAFormsData

DLExtrasProcs.h:1335

Import the XFA Forms data. XFA forms data is imported from a supported format into the XFA document so its existing fields can be populated for example.

Parameters
doc: PDDoc

IN/OUT The PDF document object.

fileSys: ASFileSys

IN The file system to import the document from (May be NULL, in which case the default file system will be used)

pathName: ASPathName

IN The path on disk of the XFA form data file to be imported. The supported types are XDP, XML, and XFD.

Returns

Enums(4)

AcroFormExportType

DLExtrasExpT.h:542

AcroForm Export Data type options.

Values
AcroFormExportTypeXFDF
—

XFDF (XML Forms Data Format) representing form field data.

AcroFormExportTypeFDF
—

FDF (Forms Data Format) representing form field data.

AcroFormExportTypeXML
—

XML (Extensible Markup Language) representing form field data.

AcroFormImportType

DLExtrasExpT.h:532

AcroForm Import Data type options.

Values
AcroFormImportTypeXFDF
—

XFDF (XML Forms Data Format) representing form field data.

AcroFormImportTypeFDF
—

FDF (Forms Data Format) representing form field data.

AcroFormImportTypeXML
—

XML (Extensible Markup Language) representing form field data.

PDDocFormsType

DLExtrasExpT.h:553

Document Forms Type options.

Values
PDDocFormsTypeNone
—

Document contains no Forms.

PDDocFormsTypeDynamicXFA
—

Document contains Dynamic XFA Forms.

PDDocFormsTypeStaticXFA
—

Document contains Static XFA Forms.

PDDocFormsTypeAcroForms
—

Document contains AcroForms.

XFAFormExportType

DLExtrasExpT.h:522

XFA Form Export Data type options.

Values
XFAFormExportTypeXML
—

XML (Extensible Markup Language) representing form field data.

XFAFormExportTypeXFD
—

XFD (Extensible Forms Description language) representing form field data.

XFAFormExportTypeXDP
—

XDP (XML Data Package) representing form field data.