Joining files works in PDF24 but not via DocTool command line

Home › Forums › PDF24 Creator › Joining files works in PDF24 but not via DocTool command line

Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #60673
    trommel
    Participant

    Hi there,

    first off all thanks for this awesome tool!

    I have a folder that contains:
    2x PDF
    1x JPG
    1x DOCX

    If I open PDF24 and use Join PDFs it works just fine and makes me a PDF with all those files.

    However when I try to run it via PDF24-DocTool.exe in CLI

    pdf24-DocTool.exe -join -profile default/best -outputDir C:\Test -outputFile "Final.pdf" -expandDirs C:\Users\xxx\Desktop\Test\

    it starts running and then just closes and nothing happens. I tried removing the output commands as well as the profile commands. The difference is it now asks for quality and where I want to save the file. When I save it, it closes and no file has actually been saved.

    When I remove the DOCX it works. However it works using the GUI when there's a DOCX, just not when using CLI.

    Is it a bug or am I doing something wrong?

    Cheers!

    Trommel

    #65917
    PDF24 Support
    Moderator

    Hello,

    sorry for the late reply. This was a bug in the version of that time: when joining, files that are not PDFs were converted, but the converted result was not turned into a PDF before joining, so the DocTool ended without an output file. It was fixed in version 11.0.1. Since version 11.8.0 the DocTool also converts Word files with Word's own PDF export instead of printing them on the PDF printer. Word (or another program that can open and print DOCX files) must be installed for that.

    If you still use the command line today, please update to the current version: https://tools.pdf24.org/en/creator

    In scripts the switch -silent (available since version 11.31.0) helps: the DocTool then shows no dialogs, writes errors to stderr and reports them via the exit code. In silent mode an output location (-outputDir / -outputFile) and a valid -profile are required, as in your command. Details in the manual:
    https://creator.pdf24.org/manual/11/#1115-join-input-files-and-create-an-output-pdf-file
    https://creator.pdf24.org/manual/11/#11119-exit-codes

    Merging files is also possible online: https://tools.pdf24.org/en/merge-pdf

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