Displaying 1 result from an estimated 1 matches for "tp24755915p24756308".
2009 Jul 31
4
Getting file name from pdf device?
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?