Message-ID: <CAAmySGOYmbY3bJ=pcH-6gaGCYaW04HLJBuzCP4PFHnJSvyrPgg@mail.gmail.com>
Date: 2011-11-29T12:15:48Z
From: R. Michael Weylandt
Subject: append to PDF file
In-Reply-To: <4ED4CBDB.900@email.uni-kiel.de>
I think you are looking for the system() command.
Michael
On Tue, Nov 29, 2011 at 7:11 AM, Christof Klu? <ckluss at email.uni-kiel.de> wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>