ruby on rails - ghostscript pdf to thumbnail -


i searched didn't got solution want create thumbnail pdf using ghostscript of pixels 185x185. tried using options-

gs -q -sdevice=png16m -dnopause -dbatch -r35x36 -dpdffitpage=true -ddevicewidth=185 -ddeviceheight=185 -soutputfile= output.%d.png input.pdf 

i have reffered question on stackover flow

thumbnail generation ghostscript rotates device size definition landscape pdf pages

but image not being created of size want. how this.?? in advance

add -dfixedmedia prevent pdf file changing media size. believe can omit -r well, since resolution doesn't make sense when specify media size in pixels.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -