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, 09: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, 12:40 PM   #2
JeffElkins
Guru
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: 779
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
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, 01: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, 02:24 PM   #4
JeffElkins
Guru
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: 779
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
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, 03: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,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, 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, 03: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: 43,771
Karma: 22666666
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, 08: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, 09: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,832
Karma: 11844413
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, 09:50 AM   #9
JeffElkins
Guru
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: 779
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
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 10:19 AM
Batch conversion html to lrf lilpretender Sony Reader 5 04-22-2008 09:22 PM
how to do batch conversion with libprs mazzeltjes Calibre 8 02-12-2008 09:24 AM
Batch conversion of txt BlackVoid Sony Reader 8 11-17-2007 09:53 PM
tips for batch conversion with emacs klikklak Sony Reader 0 11-14-2007 12:02 PM


All times are GMT -4. The time now is 04:49 AM.


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