DocTool: convert PDF to PDF/A-2 on the command line without a dialog

Home › Forums › PDF24 Creator › DocTool: convert PDF to PDF/A-2 on the command line without a dialog

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63673
    dev69
    Participant

    Hi,

    The command line C:\Software\PDF24\pdf24-DocTool.exe -convertToPDF -profile PDFA2 -outputDir .\ -outputFile testA2.pdf testBadPdf.pdf don't work. The file result isn't in PDF/A-2

    I have setting a profile PDFA2 but the option -profile is ignored

    The command line open a windows with profile choices (PDFA2 is visible) and I want a command line without window

    If I select the PDFA2 profile, the file result is generated but isn't in PDF/A

    BR

     

    #65400
    PDF24 Support
    Moderator

    Hello,

    -profile expects the ID of a profile, not only its name. A profile you created yourself has the ID user/<name>, in your case user/PDFA2. Without the prefix PDF24 does not find the profile and shows the profile selection. The built-in profiles are default/low to default/best, profiles for all users (HKLM) start with all/.

    Since version 11.31.0 there is also the switch -silent: the DocTool shows no window at all, writes errors to stderr and returns an exit code. Please use full paths:

    "C:\Software\PDF24\pdf24-DocTool.exe" -convertToPDF -silent -profile user/PDFA2 -outputFile "C:\Out\testA2.pdf" "C:\In\testBadPdf.pdf"

    Description in the manual: https://creator.pdf24.org/manual/11/#11110-convert-to-pdf and https://creator.pdf24.org/manual/11/#1111-general-format-and-options

    About the result that is not PDF/A: the PDF/A conversion has been improved several times since version 11.20 (color conversion for PDF/A in 11.21.0, a new PDF engine in 11.31.0). Since 11.31.0 your profile also has the option "Force PDF/A conformance" on the page "PDF/A" (PDF24 Settings > Output profiles). It allows lossy conversions, e.g. flattening forms, for files that could not be made conformant otherwise. Please update to the current version (https://tools.pdf24.org/en/creator), enable this option in your profile and convert the file again. You can check the result here: https://tools.pdf24.org/en/validate-pdfa

    If the file is still not PDF/A, so that we can reproduce this, please send us a file where it happens with this button:

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