How to Change Acrobat XI Initial View Settings with the SDK
Question details
The user wants to programmatically change the Initial View setting in Acrobat XI from File Title to Document Title using the Acrobat SDK or API.

- Product
- Adobe Acrobat XI
- Device & OS
- not provided
- Scenario
- Developing an automated solution or integration to modify PDF initial view settings for multiple documents.
- Observed behavior
- The user needs to switch the display property to show Document Title instead of File Title upon opening the PDF but requires the correct SDK method.
Ensure you have downloaded the latest Acrobat SDK from the official developer portal and have a working C or C++ development environment properly configured to build plug-ins.
Develop a Custom Plug-in Using C or C++
Use the Acrobat plug-in API to create a custom C/C++ plug-in that programmatically modifies the Initial View settings.
Changing the Initial View settings (such as displaying the Document Title instead of the File Title) programmatically in Acrobat XI requires developing a custom plug-in. This level of document dictionary manipulation cannot be accomplished with simple scripts and necessitates using C or C++ alongside the Acrobat plug-in API.
You will need to refer to the extensive Acrobat SDK documentation. Additionally, having a solid understanding of the ISO 32000 PDF specification is highly helpful for accurately manipulating internal ViewerPreferences and document dictionaries.
Install a compatible C/C++ IDE (such as Visual Studio) and link the necessary API headers and libraries provided in the Acrobat SDK folder.
Use the Acrobat plug-in API to access the PDF document dictionary (CosDoc) and modify the ViewerPreferences dictionary to set 'DisplayDocTitle' to true.
Build your C/C++ project to generate the Acrobat plug-in file (.api extension on Windows or .acroplugin on Mac).
Place the compiled plug-in into the Acrobat plug-ins directory, launch Acrobat XI, and run your newly created command to verify the Initial View settings change.

A Simpler Way to Manage PDF Properties
If building C++ plug-ins feels too complex for your workflow, consider using WPS Office. It offers an intuitive interface to view, manage, and edit PDF document properties without requiring any coding knowledge, all while remaining fully compatible with standard PDF and Microsoft Office formats.

Frequently Asked Questions
Can I use JavaScript to change the Initial View in Acrobat?
No, changing core document properties like the Initial View settings from File Title to Document Title programmatically generally requires a C or C++ plug-in using the Acrobat SDK, rather than document-level JavaScript.
Where can I find documentation for the Acrobat plug-in API?
The comprehensive documentation, including API references and programmer guides, is included within the Acrobat SDK package available on the official Adobe Developer console.
Do I need to know the PDF specification to use the SDK?
Yes, while the SDK provides the tools to interact with the application, having a solid understanding of the ISO 32000 PDF specification is highly recommended to understand how dictionary objects like ViewerPreferences are structured.




