Skip to content

Output Preview Sample: Configuration and Run Guide

This guide explains how to configure and run the Foxit PDF SDK output preview sample in a Windows (Java) environment. To learn how to use this feature module through the API, see Output Preview.

System Requirements

Platforms: Windows, Linux (x86 and x64), Mac (x64)

Languages: C, C++, Java, C#, Python, Objective-C, Go

License: A license key that includes the Standard module

SDK versions:

  • Foxit PDF SDK (C, C++, Java, C#, Objective-C) 7.4+
  • Foxit PDF SDK (Python) 8.3+

The versions above are the minimum SDK versions that first introduced the features described in this guide for each listed language. Refer to the package documentation and release notes for the latest versions and platform differences.

Sample Run Guide

Configuration

Before running the output preview sample in the \examples\simple_demo_output_preview folder, set the variable default_icc_folder_path to the path of the \res\icc_profile folder in the SDK package. For example:

Java
// "default_icc_folder_path" is the path of the folder which contains default icc profile files. 
String default_icc_folder_path = "E:/foxitpdfsdk_X_X_win_java/res/icc_profile";

Tip: The \res\icc_profile folder included with the SDK provides only the configuration files required to run SDK samples. You can download ICC profiles that match your output devices or printing requirements from official sources to achieve optimal color output.

Run the Sample

After configuration is complete, see Run Samples for instructions on running the sample.