Converting PDF to SVG on the cmd

Start › Foren › PDF24 Toolbox › Converting PDF to SVG on the cmd

Ansicht von 3 Beiträgen – 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #17347
    phx1
    Teilnehmer

    Hi all,

    I'd like to understand whether (and how) it is possible to convert PDF documents to SVG via the command line? I am satisfied with the SVG conversion result achieved on the UI but haven't found a way to convert PDFs in an automated way, I haven't found any option neither on the pdf24-DocTool.exe documentation or by considering the use of profiles.

    Thanks in advance!

    #19103
    phx1
    Teilnehmer

    Solved, I was now able to run the conversion via the command line like this:
    C:Program FilesPDF24>"C:Program FilesPDF24jrebinjava.exe" -cp "C:Program FilesPDF24libjar*" -Dwindows.acp=1252 -XX:MaxRAMPercentage=80 "org.pdf24.Converter" "-dpi=300" "-imageQuality=85" "C:temptest.pdf" "C:temptest.svg"

    (as learned via https://help.pdf24.org/de/fragen/frage/qualitaetsunterschied-toolbox-doctool/)

    #20132
    PDF24 Support
    Moderator

    Hello,

    thank you for sharing your solution. Please note that org.pdf24.Converter is an internal class of PDF24. The call can stop working after an update without notice.

    The supported way:

    1. In the PDF24 Toolbox, the tool "Convert from PDF" offers SVG as output format.
    2. For automation, the Toolbox can process the same job from the command line: pdf24-Toolbox.exe -processJob INPUT_FILE OUTPUT_FILE. When you run "Convert from PDF" with SVG once in the Toolbox, the job file is stored in %TEMP%\PDF24 (extension .json). You can use it as a template. Details: https://creator.pdf24.org/manual/11/#912-process-a-job

    PDF to SVG is also available online: https://tools.pdf24.org/en/pdf-to-svg

Ansicht von 3 Beiträgen – 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.