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, 07:50 AM   #1
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
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 08-05-2024, 05:31 AM   #2
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
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
Old 08-05-2024, 03: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,531
Karma: 100606001
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 08-05-2024, 05:08 PM   #4
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
Many thanks, I'll do that.
MisterAP is offline   Reply With Quote
Old 08-06-2024, 09: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: 72,538
Karma: 309500000
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Moved.
pdurrant is offline   Reply With Quote
Old 08-06-2024, 10: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,559
Karma: 24495948
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 online now   Reply With Quote
Old 08-08-2024, 04:21 AM   #7
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
@pdurrant Many thanks.
@kovidgoyal I'll get onto it. Thanks.
MisterAP is offline   Reply With Quote
Old 08-08-2024, 05:35 AM   #8
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
@kovidgoyal
I have the commit ready. Do I just append the changes file to this thread, or is there a better way? I don't want to publish the changes without others checking/testing them.
MisterAP is offline   Reply With Quote
Old 08-08-2024, 06:22 AM   #9
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,559
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/dev...to-be-included
kovidgoyal is online now   Reply With Quote
Old 08-08-2024, 07:22 AM   #10
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
That requires a bug to attach it to.
Do you want me to create a new one, as there does not seem to be an existing one?
MisterAP is offline   Reply With Quote
Old 08-08-2024, 08:54 AM   #11
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,559
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes or create a pull request on github
kovidgoyal is online now   Reply With Quote
Old 08-08-2024, 10:44 AM   #12
MisterAP
Junior Member
MisterAP began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
Bug #2076346 set up and patch file submitted.
MisterAP 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 09:38 PM
PDF to PDF conversion causes all the text to be aligned to the left Swifty4635 Conversion 1 01-16-2022 11:17 PM
updated to 2.32 - now cant convert to pdf ni_c Calibre 8 07-20-2015 08:23 PM
PDF metadata not updated when downloading from server mirzok Library Management 5 01-25-2013 11:36 AM
Updated image conversion- thank you sassanik Calibre 1 04-05-2011 03:56 PM


All times are GMT -4. The time now is 10:42 PM.


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