View PDF Documents

You can view PDF files with Viewing SDK in one of three ways:

By default, Viewing SDK uses the Acrobat ActiveX control to view PDF documents. If you do not want to redistribute the Acrobat Reader with your application, you can use a graphic-based reader instead.

Use the Acrobat ActiveX Control

The Acrobat control is automatically installed with Adobe® Reader® 4.0 or later. To download the Adobe Reader, go to www.adobe.com.

Use the Microsoft WebBrowser ActiveX Control

You can use the Microsoft WebBrowser ActiveX control to view PDF documents. The Microsoft WebBrowser ActiveX control is installed automatically with Microsoft Internet Explorer 3.0 or later. To use the WebBrowser ActiveX control to view PDF documents, follow one of these procedures:

In the kvsdk.ini file

  1. Open the kvsdk.ini file with a text editor. The file is installed in the root of the Windows directory.

  2. In the [General] section of the kvsdk.ini file, set the UseHTMLPluginForPDF parameter to True.

  3. Pass the highlight or search term in by using VAPIMWP_INIT_OPENDOCEX (the extended version of VAPIMWP_INIT_OPEN_DOCUMENT. Refer to ihademo.cpp for details) with the OpenDocInfo.lpszHighlight structure. For example:

    OpenDocInfo.lpszHighLight="search_term";

    where search_term is the highlight or search term.

In the registry file

  1. Open install.reg.txt in a text editor. The file is installed in the install\redist directory, where install is the directory in which you installed Viewing SDK.

  2. Under the [HKEY_LOCAL_MACHINE\Software\Autonomy\Viewing SDK\General] key, set the following parameter:

    "UseHTMLPluginForPDF"="true"
  3. Save the file as install.reg.

  4. Import the file into your Windows system registry.

Use a Graphic-based PDF Reader

There are two graphic-based PDF readers available. The readers display PDFs by converting each page of the PDF to an image. If you do not want to redistribute the Acrobat Reader with your application, you can use a graphic-based reader instead.

The two readers support different features. Choose the appropriate reader depending on your requirements:

Use the kppdfrdr Reader

The kppdfrdr graphic-based reader has the following features:

The kppdfrdr reader has the following limitations:

Use the kppdf2rdr Reader

The kppdf2rdr graphic-based reader produces high-fidelity raster images. However, it has the following limitations:

Specify the Graphic-based Reader

By default, the Acrobat control is used to view PDF documents. To use one of the graphic-based readers to view PDF documents, follow one of these procedures:

In the kvsdk.ini file

  1. Open the kvsdk.ini file with a text editor. The file is installed in the root of the Windows directory.

  2. In the [VAPI] section of the kvsdk.ini file, change the 200=doc 0 kvaxcc.dll parameter to 200=pic 0 kvpicve.dll.

  3. In the [KVPICVE] section, set the following parameter to the graphic-based reader you want to use. Set one of the following values:

In the registry file

  1. Open install.reg.txt in a text editor. The file is installed in the install\redist directory, where install is the directory in which you installed Viewing SDK.

  2. Under the [HKEY_LOCAL_MACHINE\Software\Autonomy\Viewing SDK\VAPI] key, change the "200"="doc 0 kvaxcc.dll" parameter to "200"="pic 0 kvpicve.dll".

  3. Under the [HKEY_LOCAL_MACHINE\Software\Autonomy\Viewing SDK\KPICVE] key, set the following parameter to the graphic-based reader you want to use. Set one of the following values:

  4. Save the file as install.reg.

  5. Import the file into your Windows system registry.


_HP_HTML5_bannerTitle.htm