从一个.ps文件创建两个PDF? [英] create two pdfs from one .ps file?

查看:136
本文介绍了从一个.ps文件创建两个PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将文本文件重新格式化为PDF.使用Perl,我正在基于文本文件中的内容修改现有的PostScript模板文件.有时,此文本文件会足够长,需要两页PDF.

I need to reformat a text file into a PDF. Using Perl, I am modifying an existing PostScript template file based on what is in the text file. Sometimes this text file will be long enough to require a two page PDF.

我可以使用GhostScript从一个.ps文件创建两页PDF文件吗?如果是这样,什么告诉GhostScript分页符应该在哪里发生?

Can I create a two page PDF file from one .ps file using GhostScript? If so, what tells GhostScript where the page break should occur?

也许我需要使用两个模板文件.一个用于一页pdf,另一个用于两页PDF.

Maybe I need to use two template files. One for a one page pdf and another for a two page PDF.

推荐答案

PostScript并不直接具有文本流或分页符的概念. showpage 运算符将页面呈现到设备上,清除页面并开始新的页面. PS到PDF的转换将在此操作符上的PDF中创建一个新页面.如果您想将PostScript文件分成页面,请 psutils 是用于处理PostScript文件的一系列程序.

PostScript doesn't directly have the concept of text flows or page breaks. The showpage operator renders the page to the device, clears the page and starts a new one. PS to PDF conversion will create a new page in the PDF on this operator. If you want to chop up a PostScript file into pages, psutils is a series of programs for manipulating PostScript files.

这篇关于从一个.ps文件创建两个PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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