![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,423
Karma: 99236514
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. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
|
Many thanks, I'll do that.
|
![]() |
![]() |
![]() |
#5 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72,116
Karma: 307935764
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Moved.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
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. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
|
@pdurrant Many thanks.
@kovidgoyal I'll get onto it. Thanks. |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes or create a pull request on github
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Aug 2024
Device: Kobo Clara HD
|
Bug #2076346 set up and patch file submitted.
|
![]() |
![]() |
![]() |
Tags |
conversion, pdf |
|
![]() |
||||
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 |