Thursday 21 August 2008

DocConverter Simple GUI for File Conversion

The following VB.NET example demonstrates a basic GUI implementation of activePDF DocConverter. The interface provides an easy way for the user to convert a file to PDF and specify the location for DocConverter's common setup requirements.

Required Components

NOTE: You must reference the APDocConvNET.DLL in order to run the example. Refer to KB #9 for instructions.

Click here to download this example (does not include DLL).





Figure 1.1: DocConverter Example GUI.

The GUI has these required settings:

  • File to Convert: The full path to the file to convert to PDF.
    NOTE: The corresponding DocConverter Processors must be installed for best conversion quality.
  • Folder to Place PDF: The full path for the location to place the output PDF.
  • Folder to Place Error Files: The full path where any files that are unable to convert are placed.
  • Folder to Place Original Document: The full path to store the original input file after conversion.
  • IP of DocConverter Machine: The IP address for the machine where DocConverter is installed (Defaults to 127.0.0.1).
  • Port (0 for Default): The port assigned to the Submit and CheckStatus methods (Defaults to 0 for 53540).
  • Timeout (Seconds): The timeout in seconds (Defaults to 30).

No comments: