[R] append to PDF file

R. Michael Weylandt michael.weylandt at gmail.com
Tue Nov 29 13:15:48 CET 2011


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.
>



More information about the R-help mailing list