home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] looking for perl(?) script to convert list of URLs to PDF files

On Wed, Sep 26, 2012 at 06:16:31PM -0400, Champoux wrote:
> On Wed, Sep 26, 2012 at 03:43:26PM -0400, Robert P. J. Day wrote:
> >   i have a text file containing over 100 URLs (one per line), and i
> > want to produce that many PDF files of those URL pages, with output
> > filenames simply 1.pdf, 2.pdf and so on -- that numbering is
> > required.
> 
> 	$ perl -MLWP::Simple=mirror -ne'next if /^SKIP/; \
> 	    mirror( $_ => $..".pdf" ); print "saving $..pdf\n"' < list
> 
> 	?

	Wait, I might have misunderstood. Are the original links 
not pdfs, but you want to convert them on the fly?

	If so, yeah, it's going to be a mite more complicated. I did
something similar in the past, if it can help:
http://babyl.dyndns.org/techblog/entry/contact-sheet

Joy,
`/anick

--