El Dimecres, 18 de juliol de 2012, a les 11:11:23, Thomas Freitag va escriure: > Am 17.07.2012 23:44, schrieb Albert Astals Cid: > > El Dimarts, 17 de juliol de 2012, a les 15:31:07, Patrik Ragnarsson va > > > > escriure: > >> As seen here: > >>> $ mkdir /tmp/pdfs > >>> $ pdfseparate > >>> pdfseparate version 0.20.0 > >>> Copyright 2005-2012 The Poppler Developers - > >>> http://poppler.freedesktop.org > >>> Copyright 1996-2011 Glyph & Cog, LLC > >>> Usage: pdfseparate [options] <PDF-sourcefile> <PDF-pattern-destfile> > >>> > >>> -f <int> : first page to extract > >>> -l <int> : last page to extract > >>> -v : print copyright and version info > >>> -h : print usage information > >>> -help : print usage information > >>> --help : print usage information > >>> -? : print usage information > >>> > >>> $ pdfseparate document.pdf /tmp/pdfs/%d.pdf > >>> $ echo $? > >>> 99 > >>> $ ls /tmp/pdfs > >>> 1.pdf 12.pdf 15.pdf 18.pdf 20.pdf 23.pdf 26.pdf 29.pdf 31.pdf > >>> 34.pdf 37.pdf 5.pdf 8.pdf 10.pdf 13.pdf 16.pdf 19.pdf 21.pdf > >>> 24.pdf 27.pdf 3.pdf 32.pdf 35.pdf 38.pdf 6.pdf 9.pdf 11.pdf > >>> 14.pdf 17.pdf 2.pdf 22.pdf 25.pdf 28.pdf 30.pdf 33.pdf 36.pdf > >>> 4.pdf 7.pdf > > > > Good question, Thomas, anything special you had in mind when making it > > return 99 by default? > > Good question, really. No, I had nothing special in my mind. Probably I > copied the main of pdftoppm and removed too much, especially the reset > of exitCode to 0 before the err labels :-(
Ok, fixed! Albert > > Cheers, > Thomas > > > Cheers, > > > > Albert > >> > >> _______________________________________________ > >> poppler mailing list > >> [email protected] > >> http://lists.freedesktop.org/mailman/listinfo/poppler > > > > . > > _______________________________________________ > poppler mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/poppler _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
