How to convert a PCL-file using GhostPCL (gpcl6win64) without left white margin to PDF

问题描述 投票:0回答:1

我正在使用以下命令行使用 GhostPCL (ghostpcl-9.56.1-win64) 将 PCL 文件转换为 PDF:

gpcl6win64.exe -sDEVICE=pdfwrite -sPAPERSIZE=a4 -r300x300 -o gpcl6win64-test-see-page-3.pdf gpcl6win64-test-see-page-3.pcl

生成的 PDF 似乎在每一页的左侧都被剪切了。 它看起来像下面这样:Left side is cut away, marked yellow here

当我使用其他工具显示 PCL 时,我得到:

PCL file itself seems to be ok

如何在保持文件完整的同时转换文件?

我将原始 PCL 文件、生成的 PDF 和两张图片上传到https://filebin.net/ytxzfkpr0b90wgwf

问题出现在PCL文件的第3页,请忽略其他页面(我没有设法从PCL中删除它们)

pdf converters pcl
1个回答
0
投票

您好,我找到了解决方案,您需要使用命令 [ESC]&l26A 在 PCL 文件上告知纸张尺寸,因此 ghostpcl 将在 PCL 文件上识别纸张尺寸,并使用 A4 尺寸制作 pdf 文件。

© www.soinside.com 2019 - 2024. All rights reserved.