Compress PDFs from the command line with the same settings as the compress tool

Home › Forums › PDF24 Creator › Compress PDFs from the command line with the same settings as the compress tool

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63135
    aimarestebanez
    Participant

    I have been trying to configure an Out Profile the same way that the compressing tool is configured. When I compress a file with the tool I get from a 185.144KB file a compressed 38.971KB file. When I compress the same file with the out profile using CMD (I am using cmd because I want to automatize this) the output file is bigger (53.612) and the quality is lower.
    How can I replicate the configuration of the compressing tool in the out profile menus?

    That is the configurarion that I been using:

    DPI:150

    Quality of image: 75

    Color: Do not change

    #65629
    PDF24 Support
    Moderator

    Hello,

    sorry for the late reply. For this, please don't use an output profile. The DocTool has its own command for compressing, with the same settings as the compress tool: -compress together with -dpi, -imageQuality and -colorModel. For your settings, use -dpi 150 and -imageQuality 75; leave out -colorModel so that the colors are not changed. With -outputFile or -outputDir you set where the result is saved. All parameters are described in the manual: https://creator.pdf24.org/manual/11/#11118-compress-pdf-files

    Your screenshot shows the online tool (https://tools.pdf24.org/en/compress-pdf). If the file from the command line is still clearly larger than the one from the online tool with the same settings, please send us the file, so that we can compare it, with this button:

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