# Introduction

The sample programs demonstrate how to use PDF Export. The sample code is intended to provide a starting point for your own applications or to be used for reference purposes. You can also test these sample programs with the sample files provided in `install\testdocs`.

The following sample programs are provided:

- cnv2pdf

The source code and makefile for each program are in the following directory, where `install` is the path of the Export installation directory, and `program_name` is the name of the sample program:

    install\pdfexport\programs\program_name

The sample programs pass license information to KeyView using `fpInitWithLicenseData()`. This is the method recommended by Micro Focus. Before the sample programs can be compiled, you must replace the parameters `YOUR_LICENSE_ORGANIZATION` and `YOUR_LICENSE_KEY` in the `fpInitWithLicenseData()` function call with your license information.

To compile the sample programs, use the makefiles provided in the sample programs' directory. Ensure the PDF Export `include` directory is specified in the include path of the project. After the executables are compiled and built, you must place them in the same directory as the PDF Export libraries.

NOTE: Compiled binaries are provided for some of the sample programs, in the `PLATFORM/bin` folder. These have an embedded trial license, which expires approximately five months after release. If the environment variables KV_SAMPLE_PROGRAM_LICENSE_ORGANIZATION and KV_SAMPLE_PROGRAM_LICENSE_KEY are set, their values are used instead of the trial license. This allows you to continue to use the program after the embedded trial license has expired, and also to test or troubleshoot with your actual license.

_FT_HTML5_bannerTitle.htm