PDF Alchemist

Command Line Syntax

To run PDF Alchemist from the command line, type:

  1. the program name
  2. the name of the file in quotes
  3. the name of the output directory where the program will write the output EPUB or HTML and associated files

These are the only required parameters.

In this example, the output directory is called “export” under C:\Alchemist:

C:\Alchemist\pdfalchemist "pathfinder.pdf" c:\alchemist\export

The input PDF file does not need to be in the same directory as the program. Also, as long as you include in quotes the path and file name for the input PDF, and the path name for the export files, it doesn’t matter if the name of the directories feature blank spaces:

C:\Alchemist\pdfalchemist "E:\SJonesPDF AlchemistPDF Alchemist test doc.PDF" "E:\SJonesPDF AlchemistExport files"

Add any optional commands to the end of the statement, one after the other, with a space in between each command. Also include a space between each command and the variable (generally “true”), as in “-keepEmbeddedFont true”.

In this example, the command would convert a PDF document called Pathfinder.PDF to HTML and store the output in a folder called “/export.” It will also include references to fonts in the HTML file, so that the HTML file will look for fonts already available on the local machine. It will not export fonts embedded in the PDF source file and then call those fonts from the export directory (we describe “keepEmbeddedFont” in more detail below).

C:\Alchemist\pdfalchemist "pathfinder.pdf" c:\alchemistexport -keepEmbeddedFont true

Make sure you include a dash (“-keepEmbeddedFont”) in front of each parameter name.

If you simply type:


and don’t enter the name of an input file or an output directory, the program will display a summary of the command syntax, with a list of the optional parameters.