Edit

Share via


Word.DocumentExportAsFixedFormat2Options interface

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Represents the options for exporting a document as a fixed format (PDF or XPS) using the Document.exportAsFixedFormat2 method.

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

Properties

bitmapMissingFonts

If provided, specifies whether to bitmap missing fonts. The default value is true.

createBookmarks

If provided, specifies the bookmark creation mode. The default value is none.

documentStructureTags

If provided, specifies whether to include document structure tags. The default value is true.

fixedFormatExtClassPtr

If provided, specifies the extension class pointer. The default value is null.

from

If provided, specifies the starting page number. The default value is 1.

includeDocProps

If provided, specifies whether to include document properties. The default value is true.

item

If provided, specifies the item to export. The default value is documentContent.

keepInformationRightsManagement

If provided, specifies whether to keep Information Rights Management (IRM) settings. The default value is true.

openAfterExport

If provided, specifies whether to open the file after export. The default value is false.

optimizeFor

If provided, specifies the optimization target for the export. The default value is print.

optimizeForImageQuality

If provided, specifies whether to optimize for image quality in the exported file. The default value is false.

range

If provided, specifies the range to export. The default value is allDocument.

to

If provided, specifies the ending page number. The default value is the last page of the document.

useIso19005_1

If provided, specifies whether to use ISO 19005-1 compliance. The default value is false.

Property Details

bitmapMissingFonts

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to bitmap missing fonts. The default value is true.

bitmapMissingFonts?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

createBookmarks

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the bookmark creation mode. The default value is none.

createBookmarks?: Word.ExportCreateBookmarks | "None" | "Headings" | "WordBookmarks";

Property Value

Word.ExportCreateBookmarks | "None" | "Headings" | "WordBookmarks"

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

documentStructureTags

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to include document structure tags. The default value is true.

documentStructureTags?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

fixedFormatExtClassPtr

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the extension class pointer. The default value is null.

fixedFormatExtClassPtr?: any;

Property Value

any

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

from

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the starting page number. The default value is 1.

from?: number;

Property Value

number

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

includeDocProps

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to include document properties. The default value is true.

includeDocProps?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

item

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the item to export. The default value is documentContent.

item?: Word.ExportItem | "DocumentContent" | "DocumentWithMarkup";

Property Value

Word.ExportItem | "DocumentContent" | "DocumentWithMarkup"

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

keepInformationRightsManagement

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to keep Information Rights Management (IRM) settings. The default value is true.

keepInformationRightsManagement?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

openAfterExport

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to open the file after export. The default value is false.

openAfterExport?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

optimizeFor

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the optimization target for the export. The default value is print.

optimizeFor?: Word.ExportOptimizeFor | "Print" | "OnScreen";

Property Value

Word.ExportOptimizeFor | "Print" | "OnScreen"

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

optimizeForImageQuality

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to optimize for image quality in the exported file. The default value is false.

optimizeForImageQuality?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

range

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the range to export. The default value is allDocument.

range?: Word.ExportRange | "AllDocument" | "Selection" | "CurrentPage" | "FromTo";

Property Value

Word.ExportRange | "AllDocument" | "Selection" | "CurrentPage" | "FromTo"

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

to

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies the ending page number. The default value is the last page of the document.

to?: number;

Property Value

number

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]

useIso19005_1

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

If provided, specifies whether to use ISO 19005-1 compliance. The default value is false.

useIso19005_1?: boolean;

Property Value

boolean

Remarks

[ API set: WordApi BETA (PREVIEW ONLY) ]