Convert PDF to PDF/A via command line with a default profile, without GUI

Home › Forums › PDF24 Creator › Convert PDF to PDF/A via command line with a default profile, without GUI

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63051
    pidieff24
    Participant

    Hi there,

    I would like to convert an existing PDF document (standard 1.7) to PDF/A on the command line. I have a working example for the case where I create a profile in the registry, but I would like to trigger the conversion based on one of the default profiles, e.g. "default/best" and one or more "-profileParam" arguments. Therefore my questions:

    • is there a list of available profileParam arguments?
    • if this list is equivalent to the keys in the registry for user defined profiles, then I can say that the argument "pdf-standard" does not work

    Your help is very much appreiated, thank you!

    Regards

    #65653
    PDF24 Support
    Moderator

    Hello,

    sorry for the late reply. There is no separate list yet, but the keys for -profileParam are the same as the values of a user profile in the registry, as you assumed. They override the values of any profile, also of a built-in one.

    That pdf-standard did not work with a built-in profile was a bug: the PDF/A conversion failed when no PDF/A color profile was given. This is fixed since version 11.31.0. With the current version this works:

    "C:\Program Files\PDF24\pdf24-DocTool.exe" -applyProfile -profile default/best -profileParam pdf-standard a-2 -silent -outputFile "C:\out\file.pdf" "C:\in\file.pdf"

    Possible values for pdf-standard are a-1, a-2, a-3, a-4 and a-4f (PDF/A), x-3 (PDF/X-3) and 1.2 to 1.7. With -silent (also since 11.31.0) no window is shown; errors are reported via the exit code.

    Details in the manual:

    Single files can also be converted online: https://tools.pdf24.org/en/pdf-to-pdfa

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.