I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ? _________________________________________________________________ Easily publish your photos to your Spaces with Photo Gallery. [[alternative HTML version deleted]]
On Tue, Jul 8, 2008 at 6:59 AM, Daren Tan <daren76 at hotmail.com> wrote:> > I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ?I do not know whether R can do that. However, you can accomplish that easily with LyX or with OpenOffice. Paul
If this is about more than a handful files, then it is really painful to do it with OpenOffice.org or LyX, I guess. You can use imagemagick, this is fairly standard on Linux. Then it is something like this, assuming you have bash: for f in *.png; do convert $f ${f%png}pdf; done for f in *.jpg; do convert $f ${f%jpg}pdf; done Of course this does not vectorise the files.... Gabor On Tue, Jul 08, 2008 at 10:05:59AM +0100, Paul Smith wrote:> On Tue, Jul 8, 2008 at 6:59 AM, Daren Tan <daren76 at hotmail.com> wrote: > > > > I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ? > > I do not know whether R can do that. However, you can accomplish that > easily with LyX or with OpenOffice. > > Paul > > ______________________________________________ > 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.-- Csardi Gabor <csardi at rmki.kfki.hu> UNIL DGM
Hi Daren, Can R (out)do Emacs? I think you just need to ?Sweave a little. Mark. Daren Tan wrote:> > > I have a folder full of pngs and jpgs, and would like to consolidate them > into a pdf with appropriate title and labels. Can this be done via R ? > _________________________________________________________________ > Easily publish your photos to your Spaces with Photo Gallery. > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > >-- View this message in context: http://www.nabble.com/Can-R-do-this---tp18332407p18335253.html Sent from the R help mailing list archive at Nabble.com.
Ooops, please ignore my previous mail, I did not read the question carefully enough..... Gabor On Tue, Jul 08, 2008 at 02:27:51AM -0700, Mark Difford wrote:> > Hi Daren, > > Can R (out)do Emacs? I think you just need to ?Sweave a little. > > Mark. > > > Daren Tan wrote: > > > > > > I have a folder full of pngs and jpgs, and would like to consolidate them > > into a pdf with appropriate title and labels. Can this be done via R ? > > _________________________________________________________________ > > Easily publish your photos to your Spaces with Photo Gallery. > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > 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. > > > > > > -- > View this message in context: http://www.nabble.com/Can-R-do-this---tp18332407p18335253.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.-- Csardi Gabor <csardi at rmki.kfki.hu> UNIL DGM