• Hello,

    Two years ago, someone reported when using Ghostscript to generate thumbnail a white bar will randomly appear on the image.

    I realize that it is due to -dPDFFitPage is being used in the gs command, where -dPDFFitPage will resize the output png according to the default paper size of the server, (i.e. A4 or letter), depending on the locale setting. If the PDF does not have the same aspect ratio as the default paper size of the server, “white bar” will be appended to fit the page.

    For generating thumbnails with various document dimensions, like me, I changed to use -dUseCropBox for the gs command. I hope in future DG will add the support of allowing different gs option, say -dPDFFitPage or -dUseCropBox

    Raphael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Raphael,

    Interesting request. Are you thinking a plain text field for people to modify all arguments or just a few specific options for how the command line is generated (such as whether to use dPDFFitPage or dUseCropBox? I could see arguments for either, but the former option is probably too daunting for about 99.999% of DG users.

    -Dan

    Thread Starter chauraph

    (@chauraph)

    Hi Dan,

    Eventually I used the option -ddFitPage to fulfil my purpose, as my documents are all variable in size.

    The plugin is superb. Thank you for your good work.
    Raphael

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘feature request, custom Ghostscript PDF thumbnail parameter’ is closed to new replies.