Skip to content
Back to formatted view

Raw Message

Message-ID: <4ED4CBDB.900@email.uni-kiel.de>
Date: 2011-11-29T12:11:07Z
From: Christof Kluß
Subject: append to PDF file
In-Reply-To: <CAAxdm-7rbSbtw+mt2rt2sOZ0JBCowMx=u3KhfdQpFN83yEqhEQ@mail.gmail.com>

Hi Jim, Hi Ken

Am 27-11-2011 00:00, schrieb jim holtman:
> There is the 'pdftk' (PDF tool kit) that you will find on the web that
> will do the job.  I have used it to both combine and split out the
> pages in the PDF file.

yes, thx. GUI tools like www.pdfsam.org do the job too. But is there a 
possibility to append files directly in R. That is to invoke "pdftk" 
inside R with a "shellandwait"?

perhaps something like

for (i in ...) {
   ...
   savePlot(filename="temp.pdf", type="pdf")
   exec pdftk temp.pdf final.pdf cat output final.pdf
}

greetings
Christof