档案交换一周

我们最好的用户提交

创建多页PDF

Jiro本周的选择是append_pdfs(最新版本包含在export_fig) by奥利弗·伍德福德

今天,我想强调我在几个月前进行的一项客户培训中提到的条目。它来自我们常规的Matlab Central(和Matlab)用户Oliver,你们中的许多人可能知道。

在培训中,我们谈论的是将数字出口到各种格式,其中一位与会者希望将其导出为多页PDF。这打印函数输出图作为一个选择single-page PDF. It also has an option for exporting multi-page PostScript files. So all you need to do is convert the multi-page PostScript file to a PDF. The initial solution I provided was to use an external program, like Ghostscript, to do the conversion. This is actually how I've always done this back when I was in grad school.

仅仅了解培训中的“自动化”,与会者想在MATLAB中自动化此过程。我敢肯定,我想是可能的,但是我直接去了文件交换。实际上有a few entriesthat looked promising. The one that met my needs was Oliver's. You still do need to install Ghostscript separately, but once you do that, the tool seemed to automatically find it and use it to combine multiple PDFs.

% Create 3 figures and save them individually to PDFs图峰打印-dpdffig1.pdffigure spy print-dpdffig2.pdffigure plot(rand(10,3)) print-dpdffig3.pdf%将三个PDF合并为一个append_pdfsallfigs.pdffig1.pdffig2.pdffig3.pdf

正如我一开始所提到的,该功能被卷入了广泛的export_fig,奥利弗(Oliver)是原始作者。奥利弗(Oliver)提到一个export_fig是维护的版本,所以我建议下载export_fig

I do want to put a plug in forMultiple Page PDF经过詹姆斯·赫尔曼andps2pdf经过Richard Quist。他们都使用MATLAB随附的Ghostscript,因此您无需安装其他任何内容。在R2015B中,MATLAB更改了PDF的生成方式,因此这些条目不再起作用,但是如果您使用MATLAB的较旧版本,请务必看看。

Comments

尝试一下,让我们知道您的想法here或留下一个评论对于奥利弗。




与Matlab®R2015B一起出版

|
  • 打印
  • 发送电子邮件

Comments

要发表评论,请单击here登录您的数学帐户或创建一个新帐户。