Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2023, 03:09 PM   #1
Mr Wolf
Junior Member
Mr Wolf began at the beginning.
 
Mr Wolf's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: Calibre
Epub to pdf conversion page sizes wrong

Hi all, I've just migrated my Calibre configuration (options and books) from an old Windows 7 with Calibre 4 computer to a Windows 10 with Calibre 6 computer.

I tried to convert several epubs to pdfs and chosen as page size A4 (210 x 297 mm), but the output is always 215.9 x 279.4 mm for any book and I can't undersand why.

Am I missing something or could it be a bug?
Mr Wolf is offline   Reply With Quote
Old 07-10-2023, 03:35 PM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Mr Wolf View Post
Hi all, I've just migrated my Calibre configuration (options and books) from an old Windows 7 with Calibre 4 computer to a Windows 10 with Calibre 6 computer.

I tried to convert several epubs to pdfs and chosen as page size A4 (210 x 297 mm), but the output is always 215.9 x 279.4 mm for any book and I can't undersand why.

Am I missing something or could it be a bug?
Are you sure you're not choosing Letter size?
Comfy.n is offline   Reply With Quote
Advert
Old 07-10-2023, 04:22 PM   #3
Mr Wolf
Junior Member
Mr Wolf began at the beginning.
 
Mr Wolf's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: Calibre
Hi, no, A4.
Could it be a problem due to migration? I noticed that some settings were not kept in the new computer.
I'll try with a fresh installation.
Mr Wolf is offline   Reply With Quote
Old 07-10-2023, 04:25 PM   #4
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
this looks unusual, indeed.

another thing you may have already checked out is if the "Custom Size" field is blank, in PDF output
Comfy.n is offline   Reply With Quote
Old 07-10-2023, 08:54 PM   #5
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: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
see https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Advert
Old 07-11-2023, 03:41 AM   #6
Mr Wolf
Junior Member
Mr Wolf began at the beginning.
 
Mr Wolf's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: Calibre
Ok, I think something went wrong with migration, because with a fresh installation the problem doesn't happen.

However, I've discovered another odd thing: the problem happens only with new books added.
If I convert from epub to pdf a book I've already add in my library, it is correctly converted with the right format A4.
If I add a new epub and convert it to pdf, the page sizes are unexplainably forced to 215.9 x 279.4 mm.

Last edited by Mr Wolf; 07-11-2023 at 03:44 AM.
Mr Wolf is offline   Reply With Quote
Old 07-11-2023, 04:40 AM   #7
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: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That will be because for existing books previous conversion settings are used. for new books the defaults you have set in Preferences->Conversion will be used. You have got that paper size set there.
kovidgoyal is offline   Reply With Quote
Old 07-11-2023, 04:37 PM   #8
Mr Wolf
Junior Member
Mr Wolf began at the beginning.
 
Mr Wolf's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: Calibre
Ok, I've checked that in my library, in the file metadata.db, there are the conversion settings of each book.

I think I've solved the problem replacing with the Calibre folder configuration from a fresh installation the folder configuration after migration. This to avoid to have to manually re-import all my books after a fresh installation.
I'll check better if this really worked.

By the way, in what file are the settings stored? In special way, the setting about page size in conversion? There are may files in that folder.

Thanks for your support, btw.
Mr Wolf is offline   Reply With Quote
Old 07-11-2023, 06:41 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Mr Wolf View Post
. . .
By the way, in what file are the settings stored? In special way, the setting about page size in conversion? There are may files in that folder.
Book specific conversion settings are stored in the library database.

BR
BetterRed is online now   Reply With Quote
Old 07-11-2023, 06:54 PM   #10
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Today I found this file in %userprofile%\AppData\Roaming\calibre\conversion, named pdf_output.py.

It holds the default settings for Calibre conversion to PDF, and I noticed that any changes applied to it take effect instantly, for books that don't have specific settings stored in the library database.
Comfy.n is offline   Reply With Quote
Old 07-12-2023, 09:38 AM   #11
Mr Wolf
Junior Member
Mr Wolf began at the beginning.
 
Mr Wolf's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: Calibre
I checked that file, and, after migration, "paper_size" is set to "a4", but it gives me that problem.
However, the solution I tried (replacing configuration folder after migration with configuration folder from a fresh installation) seems to work.
Mr Wolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbers in Epub->PDF conversion ghmerrill Conversion 13 12-03-2020 09:44 AM
Posible bug: Wrong PDF rendering if there are different page sizes in it arspr Kobo Reader 1 09-07-2014 10:30 AM
pdf to epub: page count wrong Lord Honig Conversion 1 11-08-2013 03:27 AM
Calibre getting page numbers wrong in conversion to epub. WendyH Conversion 9 09-04-2011 05:29 AM
epub to pdf conversion: blank page inserted before any section Nicoo Calibre 0 12-06-2009 06:10 PM


All times are GMT -4. The time now is 12:23 AM.


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