Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2008, 10:58 AM   #1
kad032000
Connoisseur
kad032000 doesn't litterkad032000 doesn't litter
 
Posts: 82
Karma: 184
Join Date: Jun 2008
Device: Sony PRS-505
pdftohtml Batch Conversion

Is there a way to use the pdftohtml program that comes with calibre to convert multiple files at once?
kad032000 is offline   Reply With Quote
Old 06-21-2008, 01:40 PM   #2
JeffElkins
PRSCustomizer
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 773
Karma: 1416
Join Date: Jan 2008
Device: PRS 505 Blue/iPod Touch/Epic 4G/Nook Classic
Quote:
Originally Posted by kad032000 View Post
Is there a way to use the pdftohtml program that comes with calibre to convert multiple files at once?
I call a bash script:

$doloop pdftohtml

Quote:
#!/bin/bash
#doloop script
OPERATION=$1
for file in ./*
do
$OPERATION $file
done
exit 0
JeffElkins is offline   Reply With Quote
Old 06-21-2008, 02:59 PM   #3
kad032000
Connoisseur
kad032000 doesn't litterkad032000 doesn't litter
 
Posts: 82
Karma: 184
Join Date: Jun 2008
Device: Sony PRS-505
Cool, I'll give it a shot. Thanks!
kad032000 is offline   Reply With Quote
Old 06-21-2008, 03:24 PM   #4
JeffElkins
PRSCustomizer
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 773
Karma: 1416
Join Date: Jan 2008
Device: PRS 505 Blue/iPod Touch/Epic 4G/Nook Classic
Quote:
Originally Posted by kad032000 View Post
Cool, I'll give it a shot. Thanks!
Good luck. I also use variations of that script for other conversions, lit2lrf,mobi2lrf, etc.
JeffElkins is offline   Reply With Quote
Old 06-21-2008, 04:19 PM   #5
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,128
Karma: 4315826
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by JeffElkins View Post
I call a bash script:

$doloop pdftohtml
That seems like overkill. find or ls and xargs should work in this case:
Code:
  find . -name "*.html" | xargs pdftohtml

  ls -1 *.html | xargs pdftohtml
tompe is offline   Reply With Quote
Old 06-21-2008, 04:37 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,325
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is any2lrf so you shouldn't need to use variations.
kovidgoyal is offline   Reply With Quote
Old 06-21-2008, 09:12 PM   #7
kad032000
Connoisseur
kad032000 doesn't litterkad032000 doesn't litter
 
Posts: 82
Karma: 184
Join Date: Jun 2008
Device: Sony PRS-505
Can I get a Windows equivalent solution?
kad032000 is offline   Reply With Quote
Old 06-21-2008, 10:56 PM   #8
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,618
Karma: 11337367
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by kad032000 View Post
Can I get a Windows equivalent solution?
Sure, create a batch file...

for %%i in (*.html) do any2lrf %%i

BOb
pilotbob is offline   Reply With Quote
Old 06-27-2008, 10:50 AM   #9
JeffElkins
PRSCustomizer
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 773
Karma: 1416
Join Date: Jan 2008
Device: PRS 505 Blue/iPod Touch/Epic 4G/Nook Classic
Quote:
Originally Posted by tompe View Post
That seems like overkill. find or ls and xargs should work in this case:
Code:
  find . -name "*.html" | xargs pdftohtml

  ls -1 *.html | xargs pdftohtml
I use the script for other things, but thanks for the xargs tip.
JeffElkins is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to prc/azw Batch Conversion xsolitudex PDF 2 09-04-2010 11:19 AM
Batch conversion html to lrf lilpretender Sony Reader 5 04-22-2008 10:22 PM
how to do batch conversion with libprs mazzeltjes Calibre 8 02-12-2008 10:24 AM
Batch conversion of txt BlackVoid Sony Reader 8 11-17-2007 10:53 PM
tips for batch conversion with emacs klikklak Sony Reader 0 11-14-2007 01:02 PM


All times are GMT -4. The time now is 07:18 AM.


MobileRead.com is a privately owned, operated and funded community.