将PCL转换为PDF [英] Converting PCL to PDF

查看:138
本文介绍了将PCL转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望创建(作为概念验证)OCaml(最好是)程序,将PCL代码转换为PDF格式.我不确定从哪里开始.有没有这样做的标准化算法?还有其他建议可用于完成此任务吗?

I am looking to create (as a proof-of-concept) an OCaml (preferably) program that converts PCL code to PDF format. I am not sure where to start. Is there a standardized algorithm for doing so? Is there any other advice available for accomplishing this task?

谢谢!

推荐答案

Ghostscript开发人员最近将其姐妹产品GhostXPS,GhostPCL和GhostSVG集成到了他们的

Ghostscript developers have recently integrated their sister products GhostXPS, GhostPCL and GhostSVG into their Ghostscript source code tree. (It's now called GhostPDL.) So all of these additional functionalities (load, render and convert XPS, PCL and SVG) are now available from there.

这意味着您可以从其来源构建其语言切换二进制文件.从理论上讲,这可以使用PCL,PDF和PostScript并将其转换为多种其他格式.虽然它在我需要时对我有用,但Ghostscript开发人员建议停止使用语言切换二进制文件(因为它几乎是不支持的",请参见KenS对此答案的评论),而应改用显式二进制文件pcl6.exe (PCL输入), gsvg.exe (SVG输入,也是几乎不受支持")和 gxps.exe (支持状态不清楚我).

This means you could build their language switching binary from their sources. This, in theory, can consume PCL, PDF and PostScript and convert this to a host of other formats. While it worked for me whenever I needed it, Ghostscript developers recommend to stop using the language switching binary (since it's 'almost non-supported' -- see KenS' comment to this answer) and instead switch to using the explicit binaries pcl6.exe (PCL input), gsvg.exe (SVG input, also 'almost non-supported') and gxps.exe (support status unclear to me).

因此要将PCL代码转换为PDF格式" (根据要求),可以使用 pcl6 命令行实用程序,是Ghostscript的姐妹产品 gs/gswin32c.exe .

So to 'convert PCL code to PDF format' as the request areads, you could use the pcl6 command line utility, a sister product to Ghostscript's gs/gswin32c.exe.

示例命令行:

 pcl6.exe  \
  -o output.pdf  \
  -sDEVICE=pdfwrite  \
   [...more parameters as required (optional)...]  \
  -f input.pcl


根据评论中KenS的提示,

已更新.

这篇关于将PCL转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆