将一个 pdf 或 ps 文件叠加在另一个之上 [英] overlay one pdf or ps file on top of another

查看:27
本文介绍了将一个 pdf 或 ps 文件叠加在另一个之上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个 pdf 或 postscript 文件(我可以使用任何一个).我想要做的是将每一页合并到另一页之上,以便文档 A 的第 1 页与文档 B 的第 1 页合并以生成输出文档的第 1 页.这不是我必须要以编程方式完成的事情,尽管这会有所帮助.

I have two pdf or postscript files (I can work with either one). What I want to do is merge each page on top of the other so that page1 of document A will be combined with page 1 of document B to produce page 1 of the output document. This isn't something I necessarily want need to do programatically, although that would be helpful.

有什么想法吗?

推荐答案

您可以使用命令行工具对 pdf 文件执行此操作 pdftk 使用 stampbackground 选项.

You can do this with pdf files using the command line tool pdftk using the stamp or background option.

例如

$ pdftk file1.pdf background file2.pdf output combinedfile.pdf

这仅适用于一页背景文件.如果您有多个页面,您可以使用 multibackground 命令代替.

This will only work with a one-page background file. If you have multiple pages, you can use the multibackground command instead.

这篇关于将一个 pdf 或 ps 文件叠加在另一个之上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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