[xep-support] Re: CoolTool - Package Builder

Earl Hood earl at earlhood.com
Wed Sep 17 16:11:30 PDT 2014


On Wed, Sep 17, 2014 at 5:04 PM, Kevin Brown wrote:
> Have you ever had the need to build up a package PDF? What I mean is that
> maybe you have a few static PDF documents and a few other documents that are
> generated with RenderX ... but you want one PDF?
>
> Well, in making use of one little trick in the RenderX Intermediate Format,
> we put together a demo showing exactly how you can do this with the current
> RenderX software.
...[snip]...

If one just wants to concatenate a bunch of PDFs into a single PDF, I
use Ghostscript and this bash function:

  pdfjoin() {
    gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \
       -sOutputFile="${1}" "${@:2}"
  }

Example usage:

  pdfjoin combined.pdf file1.pdf file2.pdf ... fileN.pdf


It is straight forward to create a DOS batch version of the function for
those using Windows, but you still need Ghostscript installed.

--ewh

!DSPAM:87,541a153110101340342722!




More information about the Xep-support mailing list