File Content Extraction 26.2
Viewing SDK Programming Guide

# Change Document Options

Document options control display elements such as window size, zoom settings, margin size, and scaling. Options are defined for each file type category (for example, spreadsheets, multimedia, and word processing). The document options only apply to the current document and document type. In other words, it initializes the in-memory options of the current Viewer. The options are defined in `kwoption.h`.

To set options for a document

1. Create an ALL_OPTIONS_EX structure.

2. If you are using the `VAPIMWP_INIT_OPEN_DOCUMENT` message to set options, create a TPVAPIOpenDocumentInfo structure.

3. Use either the VAPIMWP_OPTIONS_SETOPTIONS_EX or VAPIMWP_INIT_OPEN_DOCUMENT message.

To get the options of a document, use the VAPIMWP_OPTIONS_GETOPTIONS_EX message.

Copyright 2016-2026 Open Text
Version 26.2 | Last updated April 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.2

Topic Title: Change Document Options