Replacing vector images in a PDF with raster images

后端 未结 8 1132
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 22:46

Is there any easy (scriptable) way to convert a PDF with vector images into a PDF with raster images? In other words, I want to generate a PDF with the exact same (un-rasterized

8条回答
  •  感情败类
    2021-01-30 23:08

    I had a similar issue, and solved it using ImageMagics convert tool (http://www.imagemagick.org/script/index.php). That comes with linux and runs fine on Windows/Cygwin or OS X

    convert -density 300 largeVectorFileFromR.pdf out.pdf

    With -density 300 you control resolution (as DPI).

    Downside: Text is rasterized as well, I understand that Michael does not want this.

提交回复
热议问题