12-29 -fixedUpPDFA: PDF/A Conversion

Processing

Converts PDF files to PDF/A.

The command "-fixedUpPDFA" can convert PDF files to the following PDF/A standards:

[Processing Details]

  • If a validation error occurs while conversion, the error code and error message are printed. If no compliance errors occur, "ok!" is displayed.
  • It is also possible to output processing logs regarding compliance errors. Specify the processing log output with -log.
  • The processing log is output as a .log format text file in the same folder as the output file.
  • The processing log is output -o with the file name "output file name.log"
  • You can specify the RGB color profile and CMYK color profile used while conversion.
  • If no icc profile is specified, Antenna House PDF API searches for sRGB2014.icc or JapanColor2001Coated.icc in the following order:

[Windows]

  1. In the folder containing PdfTk80.dll
  2. In the folder specified by the environment variable "PTL80_ICCPROFILE_PATH"

[Linux]

In the folder specified by the environment variable "PTL80_ICCPROFILE_PATH "

Example of commands

[Executing example commands]

Converts test.pdf to PDF/A-2b and outputs it as out.pdf.

  • Uses RGB2014.icc and JapanColor2001Coated.icc as profiles at this time.
  • Outputs the processing log to the location specified by -o with the file name "output file name.log" while executing the command.

[Windows]

AHPDFToolCmd80.exe -fixedUpPDFA -type 2b -RGBProfile sRGB2014.icc -CMYKProfile JapanColor2001Coated.icc -log -d c:\in\test.pdf -o c:\out\out.pdf

[Linux]

AHPDFToolCmd80 -fixedUpPDFA -type 2b -RGBProfile sRGB2014.icc -CMYKProfile JapanColor2001Coated.icc -log -d /home/antenna/in/test.pdf -o /home/antenna/sav/out.pdf

Folder settings: applied

You can perform batch processing by specifying the input folder to the -d parameter and the output folder to the -o parameter.

If a folder is specified, the PDF files in the input folder will be converted to PDF/A in the same format. Note that the output file will be output to the output folder with the same name as the input file name. The processing log file is also output to the output folder in the format of "input file name.log"

Parameters

Parameter

Content

-type {1a|1b|2a|2b|3a|3b}

[required]
Sets the type of PDF/A standard

  • 1a: Convert to PDF/A-1a
  • 1b: Convert to PDF/A-1b
  • 2a: Convert to PDF/A-2a
  • 2b: Convert to PDF/A-2b
  • 3a: Convert to PDF/A-3a
  • 3b: Convert to PDF/A-3b

-RGBProfile <Val>

Sets the RGB color profile name with <Val>. Can be omitted.

Specify the full path. If only the file name is specified, it is assumed to exist at the same level as the command-line.

If not specified, on Windows, searches in the following order:

  1. In the folder containing PdfTk80.dll
  2. In the folder specified by the environment variable "PTL80_ICCPROFILE_PATH."

On Linux, the folder specified by the environment variable "PTL80_ICCPROFILE_PATH" is searched. If it is not specified and there is no color profile in the search destination, an error will occur.

-CMYKProfile <Val>

Sets the CMYK color profile name with <Val>. Can be omitted.

Specify the full path. If only the file name is specified, it is assumed to exist at the same level as the command-line.

If not specified, on Windows、searches in the following order:

  1. In the folder containing PdfTk80.dll
  2. In the folder specified by the environment variable "PTL80_ICCPROFILE_PATH"

On Linux, the folder specified by the environment variable "PTL80_ICCPROFILE_PATH" is searched. If it is not specified and there is no color profile in the search destination, an error will occur.

-log

Can be omitted.
If specified, outputs the processing log to a text file.
The output destination is the location specified with "-o." The file name will be the file name specified with "-o" with the extension changed to ".log"

Please enter alt text.