将A4 PDF调整为SRA4和中心内容 [英] Resize A4 PDF to SRA4 and center content

查看:135
本文介绍了将A4 PDF调整为SRA4和中心内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够将A4 PDF调整为稍大一些的SRA4格式,供印刷专业人士使用。内容不应调整大小,而应居中。换句话说,我想在A4文档中添加边距。

I'd like to be able to resize an A4 PDF to the slightly bigger SRA4 format, used by printing professionals. The content shouldn't be resized, but only centered. In other words, I'd like to add margins to my A4 document.

我通过Ghostscript(9.05)调用或多或少地做到了这一点:

I managed more or less to do that with this Ghostscript (9.05) call:

gs -dPDFSETTINGS=/default -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite 
-sOutputFile=out.pdf -dDEVICEWIDTHPOINTS=637 -dDEVICEHEIGHTPOINTS=907 
-dFIXEDMEDIA in.pdf

问题是A4内容不在SRA4页面中居中,而是放在左下角。

The problem is that the A4 content is not centered in the SRA4 page, but is placed at the bottom left corner.

任何想法如何使内容居中吗?

Any idea how to center the content?

推荐答案

我找到了 setpagedevice,将pdf-files-more-to-the-left-或-to-the-right title = here>此处,如下所示:

gs -dPDFSETTINGS=/default -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite 
-sOutputFile=out.pdf -dDEVICEWIDTHPOINTS=637 -dDEVICEHEIGHTPOINTS=907 
-dFIXEDMEDIA -c "<</PageOffset [21 32]>> setpagedevice" -f in.pdf

内容完全位于SRA4文档的中心。

Content is perfectly centered in the SRA4 document.

这篇关于将A4 PDF调整为SRA4和中心内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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