Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2010, 01:11 PM   #1
alberto-cuda
Junior Member
alberto-cuda began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2010
Device: Bookeen
PDF to PDF reflow

Hi all,
if I correctly understand the software architecture of calibre, when a PDF document is reflowed by calibre, it is converted into XML, then back into PDF. Is there any interest in implementing a code path that avoids this two steps algorithm and (when the input format is the same as the output format) allow a plugin to take a shorthand? Do you see that as a severe violation of the design choices?

I'm asking this (sorry if this sounds as an advertisement, it's not -- completely), because I'm writing a tool that reflows PDFs (PDFlow, on Launchpad), and I think it would be nice to integrate it with calibre, in order to avoid loosing metadata and keeping the layout as close as possible to the orifinal document. I could not, however find any obvious way to do that without changing the Plugin API.

Thanks a lot, cheers.
Alberto.
alberto-cuda is offline   Reply With Quote
Old 11-15-2010, 01:24 PM   #2
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,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You don't need to change the plugin architecture to integrate this into calibre. You just need to add special case code to plumber.py which is responsible for creating the conversion pipeline.

Basically plumber is passed in the input and output filenames and takes care of building and runing the conversion pipeline. You can have it special case the pdf-to-pdf path.
kovidgoyal is offline   Reply With Quote
Reply

Tags
metadata, pdf, reflow


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-650 Disabling reflow in PDF Falcao Sony Reader 9 11-28-2010 11:39 AM
PDF Reflow? omro Apple Devices 5 05-14-2010 02:49 AM
PDF Reflow and PDF speed omro iRex 28 12-12-2009 02:12 AM
Comparison classic PDF vs PDF reflow josecastanon1 Sony Reader 1 10-14-2008 09:59 PM
PDF reflow =X= Sony Reader 0 07-30-2008 01:21 PM


All times are GMT -4. The time now is 12:37 AM.


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