【发布时间】:2016-10-08 20:26:52
【问题描述】:
我发出以下命令:
gs \
-o downsampled.pdf \
-sDEVICE=pdfwrite \
-dDownsampleColorImages=true \
-dColorImageResolution=180 \
-dColorImageDownsampleThreshold=1.0 \
并得到以下错误:
Subsample filter does not support non-integer downsample factor (1.994360)
Failed to initialise downsample filter, downsampling aborted
(在某些页面上)
和:
Subsample filter does not support non-integer downsample factor (2.000029)
Failed to initialise downsample filter, downsampling aborted
最初我尝试下采样到 150dpi,这给出了因子 (2.40????) 的错误,这意味着多个错误,其中最后几位数字对于不同的页面是不同的。所以我猜图像大约是 150*2.4 = 360 dpi。所以我尝试下采样到 180。但似乎图像都略有偏差?
- 有没有办法指定因子而不是 dpi?
- 有没有办法“四舍五入”这个因素?
【问题讨论】:
标签: pdf ghostscript downsampling