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
-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:
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: