pdf24-DocTool -convertToPdf fails with file copy error 5

Home › Forums › PDF24 Creator › pdf24-DocTool -convertToPdf fails with file copy error 5

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62742
    Al Hollmotz
    Participant

    running version 9.2.2 on Win7.

    I have a .txt file that i want to automate conversion to a pdf file.

    i've created a profile named OnPremiseReport and used the following command line;

    pdf24-doctool -converttopdf -profile user/OnPremiseReport -outputdir c:\secctrl -outputfile ajh.pdf c:\secctrl\on_premise_2022-07-18_1353.txt

    I get File Copy Error 5

    From: c:\users\hollma\appdata\local\temp\pdf24\280815356_296430038_0.pdf

    To: ajh.pdf

    The source file is plain text, UTF8 encoding.

    If i use the pdfcreator gui, the conversion works fine.

    thanks

    #62746
    Stefan Ziegler
    Keymaster

    Hi, -outputdir and -outputfile can not be used together. If you use -outputfile, then specifiy the full file name here which means the following:

    pdf24-doctool -convertToPdf -profile user/OnPremiseReport -outputFile c:\secctrl\ajh.pdf c:\secctrl\on_premise_2022-07-18_1353.txt

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