Every command statement you enter for FLIP2PDF must include the following values:
- the executable name
- the name of the input file
- the name you want to assign to the output PDF file
You can also provide the name of the JSON profile file but that is optional.
flip2pdf --input inputname --output outputfilename --profile profilename
For each command line option, you can use either the short or long notation:
A command might look like this:
flip2pdf --input TestDocument.docx --output TestDocument.pdf --profile standard.json
The FLIP2PDF software assumes that the file extension you provide for an input file is valid.
The JSON profile file includes a list of settings that define exactly what kind of PDF output document you want to produce. See “Setting up your profile.”
You don’t need to include the absolute path for any of these files if the input file and profile are stored in the current working directory, and if you save the output file to this directory as well.
If you want FLIP2PDF to take an input file from one directory and save the output to another, however, you need to provide the path as well as the file name:
flip2pdf --input C:\Datalogics\Source\AnnualReport2016.docx -–output C:\Datalogics\OutputFiles\AnnualReport2016-B.pdf -–profile standard.json
If any of the file or path names include spaces, use quotes around the name:
flip2pdf --input "C:\Datalogics\Source\Annual Report 2016.docx" –-output C:\Datalogics\OutputFiles\AnnualReport2016-B.pdf –-profile standard.json
The JSON profile file is not required. If you are content to use the default settings provided with the FLIP2PDF software, you can enter a command statement like this:
flip2pdf --input TestDocument.docx --output TestDocument.pdf
If you do specify a JSON profile file name in your command statement, you can use either the relative or the absolute path for that file. If you don’t provide an absolute path for the JSON profile, FLIP2PDF will look for the file in the working directory. If the file is not in the working directory, FLIP2PDF will look for the JSON profile in the FLIP2PDFProfiles directory where the product was installed.
If FLIP2PDF can’t find the JSON profile, you will see an error message.
These are the FLIP2PDF default settings:
|Downsampling||All images found in a Microsoft Office or PostScript file are downsampled by default to 300 DPI.|
|Tagged PDF||Do not create a tagged PDF document|
In other words, if you don’t include a JSON profile in your command line statement FLIP2PDF will generate a standard PDF document. The file will not be tagged, and any graphics found in a PostScript or Microsoft source document will be downsampled to 300 DPI and compressed using the jpeg compression method. Note also that the fonts used by the PDF output file will be embedded in that PDF file.
flip2pdf –-help at the command line for a list of software options.