|11-15-2010, 01:11 PM||#1|
Join Date: Nov 2010
PDF to PDF reflow
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.
|11-15-2010, 01:24 PM||#2|
creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
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.
|metadata, pdf, reflow|
|Thread Tools||Search this Thread|
|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|