Hi IU would like to modify the dev.off function, so that it automatically compresses the created pdf. I am thinking of doing the following in the modified dev.off:
1) Get the filename of the pdf device 2) close the device by calling the original dev.off() 3) compress the pdf file with a system call of pdftk. My question: how can I get the filename of the pdf from the device before it is closed? Thanks Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa ______________________________________________ R-help@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.