![]() |
#16 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5
Karma: 50592
Join Date: Oct 2022
Device: none
|
Spews errors when I try to give the location of the binary
When I try to specify the location of the k2pdfopt binary for the plugin, I get the following error. Plugin 0.5.3, Calibre 7.7.0, Windows 11.
---- calibre, version 7.7.0 エラー: ハンドルされない例外: <b>NameError</b>:name 'os' is not defined calibre 7.7 embedded-python: True Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22621') Python 3.11.5 Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free') Interface language: ja EXE path: C:\Program Files\Calibre2\calibre.exe Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 10, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 10, 0) && Extract ISBN (1, 6, 2) && K2pdfopt Plugin (0, 5, 3) && KFX metadata reader (from KFX Input) (2, 10, 0) && From KFX (2, 10, 0) && KFX Input (2, 10, 0) && Obok DeDRM (10, 0, 3) Traceback (most recent call last): File "calibre_plugins.k2pdfopt_plugin.gui.config", line 103, in _choose_file NameError: name 'os' is not defined |
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
I uploaded a fix to the problem.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5
Karma: 50592
Join Date: Oct 2022
Device: none
|
|
![]() |
![]() |
![]() |
#19 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Mar 2025
Device: Kindle Paperwhite 3
|
Hi, thanks very much for this plugin. Really nice to have this integrated into Calibre.
There is one thing that doesn't seem to work - setting margins through the GUI seems to have no effect on the output. Is there any way to make this function work? |
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
It is working for me. Note that k2pdfopt options can be mutually exclusive. So for example if you try specify margins while at the same time you using default conversion mode, margins will not be trimmed, even with the command line program. You can use trim mode instead and you will be able to crop margins.
At the bottom of the plugin's dialog there is button called "Show command version" that opens textbox, you can copy/paste the textbox here so that we can see what options you are using. It is helpful to both read k2pdfopt documentation, and also experiment with the command line program using the content of the textbox above, to examine whether there is any discrepancy between the plugin and the original program. Edit: The plugin already greys out some options when they clash with other selected options. This obviously does not cover every possible clash. After we got to the bottom of what your problem is, I will see whether I can grey out the margins box in certain scenarios. Last edited by capink; 03-01-2025 at 04:41 PM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 523 | 07-15-2025 06:45 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Manga plugin | mastertea | Plugins | 6 | 01-06-2022 02:43 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |