【发布时间】:2014-10-11 02:30:31
【问题描述】:
我正在尝试将 png 图像放在 postscript 文档上,以便使用 Ghostscript (v 9.15) ps2pdf 转换为 pdf 文件。我发现以下代码适用于 jpg 文件,但我需要导入 png 文件。看起来我必须需要一个不同的过滤器,但我找不到一个有效的过滤器。有人有解决办法吗?
239 % number of pixels in the horizontal axis
67 % number of pixels in the vertical axis
8 % bits per color channel (1, 2, 4, or 8)
[239 0 0 -67 0 67] % transform array... maps unit square to pixel [ w 0 0 -h 0 h ]
(My_Logo.jpg) (r) file % see page 587 and page 77 for more details
/DCTDecode filter % see page 589
false % pull channels from separate sources
3 % 3 color channels (RGB)
colorimage % see page 544 and page 288 for more detail
【问题讨论】:
标签: filter png ghostscript postscript