Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2024, 06:50 AM   #1
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
Updated PDF conversion help

I have a reworked version of reflow.py for the new PDF engine.
It seems to work better than the standard method, so I would like to publish it so that others can add improvements.

Before doing that, I need to update the Preferences settings to add new fields to assist the conversion. I have not been able to find the correct method for doing this.

I know the UI fields to set up, but I have not found out where/how to save these and pass them to the input.

I have not tested it with ebook-convert. I assume that also needs new command-line options.

Any help would be much appreciated.

Alan
MisterAP is offline   Reply With Quote
Old Yesterday, 04:31 AM   #2
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
I have now got the Calibre menu set up and working.

I have tried to build the command-line utilities, but I get errors when compiling PoDoFo.
I have Ubuntu 22.04 which loads PoDoFo 0.9.7.
I am guessing that Calibre uses a later -dev package, but I don't know which.

Does anyone know which package(s) I should be installing for the build.

The manual says:
git clone https://github.com/kovidgoyal/bypy.git
git clone https://github.com/kovidgoyal/calibre.git
cd calibre

but that creates a bypy directory, and a calibre directory which also contains bypy.
The build seems to run in the calible/bypy tree and the bypy tree doesn't contain the build scripts.

I am happy to commit the current changes, but it seems wrong to do half the job.

All help appreciated.

Alan
MisterAP is offline   Reply With Quote
Advert
Old Yesterday, 02:06 PM   #3
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,390
Karma: 99197566
Join Date: Apr 2011
Device: pb360
You will probably have better luck in the calibre development subforum.

https://www.mobileread.com/forums/fo...play.php?f=240

I think that you can have a moderator move your thread by reporting your post with the "!" button to the right of the "Karma" button at the bottom of your post.
j.p.s is offline   Reply With Quote
Old Yesterday, 04:08 PM   #4
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
Many thanks, I'll do that.
MisterAP is offline   Reply With Quote
Old Today, 08:25 AM   #5
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,947
Karma: 307500000
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Moved.
pdurrant is offline   Reply With Quote
Advert
Old Today, 09:22 AM   #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: 44,187
Karma: 23000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You should not need to build calibre for this. Set up the calibre development environment as described in:

https://manual.calibre-ebook.com/develop.html

If you want to add options to the PDF input plugin, you just need to modify the plugins/pdf_input.py file to add the option. It will show up in ebook-convert automatically. To add it to the gui you need to edit convert/pdf_input.ui with qt designer to add the gui widgets for the options.
kovidgoyal is offline   Reply With Quote
Reply

Tags
conversion, pdf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub->pdf conversion doesn't allow to add watermark with third-party pdf editor EbokJunkie Conversion 8 04-16-2023 08:38 PM
PDF to PDF conversion causes all the text to be aligned to the left Swifty4635 Conversion 1 01-16-2022 10:17 PM
updated to 2.32 - now cant convert to pdf ni_c Calibre 8 07-20-2015 07:23 PM
PDF metadata not updated when downloading from server mirzok Library Management 5 01-25-2013 10:36 AM
Updated image conversion- thank you sassanik Calibre 1 04-05-2011 02:56 PM


All times are GMT -4. The time now is 11:32 AM.


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