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 06-24-2022, 10:04 AM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 322
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
PDF printer offset (revisited) Amazon problem

I am converting an EPUB to PDF with calibre which lets me set offset inner margin. It does this with CropBox. To get the correct-looking output of (1) 6x9 (2) inner 1 inch margin (3) 1/2 inch other 3 margins you have to do the following: (1) set book at 6.5x9 (2) top and bottom at 1/2 inch (3) left and right at 1 inch (4) tell it to offset half inch. The output looks correct. However, the internals of PDF are not the same. Amazon does not recognize CropBox.

To solve this I instructed calibre to make a PDF without offset with top and bottom 1/2 inch, side margins at 3/4 inch. The output looks good, but without desired inner margin offset. To get that I have to reprocess this PDF with a Linux terminal command using PDFJAM (which has no GUI). The command is:

#script below makes 6x9 with 3 half-inch and inner one-inch margins. 1.pdf (with 3/4 inch side margins) outputs 1-inner.pdf in same directory. Run terminal in same directory.

pdfjam --twoside --papersize '{6in,9in}' --suffix inner --offset '.25in 0in' ~/1.pdf

The calibre conversion method for creating an offset margin states not all software accepts cropbox. It may be that Amazon is too unforgiving or it might be better if calibre's way of doing this were changed.

images show calibre insturctions both ways and resulting outputs. Amazon will accept the PDFs but the margins will not work.

Best regards, Pop
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2022-06-24 08-49-01.png
Views:	109
Size:	226.2 KB
ID:	194515   Click image for larger version

Name:	Screenshot from 2022-06-24 08-47-52.png
Views:	111
Size:	383.0 KB
ID:	194516   Click image for larger version

Name:	Screenshot from 2022-06-24 08-44-09.png
Views:	105
Size:	381.5 KB
ID:	194517   Click image for larger version

Name:	Screenshot from 2022-06-24 08-37-52.png
Views:	110
Size:	272.1 KB
ID:	194518  
rjwse@aol.com is offline   Reply With Quote
Old 06-24-2022, 10:41 AM   #2
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
not using cropbox would make things very complex, as such I am not motivated to do it just for amazon, patches welcome.
kovidgoyal is offline   Reply With Quote
Advert
Old 06-24-2022, 01:23 PM   #3
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 322
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
Thanks for your quick reply. The PDFJAM solution works good. I can upload to Amazon now with a book whose inside margins are deep. The Amazon software creates a minimal, almost invisible, additional gutter unless you give them a file whose gutter is larger. They do not offer a customizable gutter option.
I solicit help from anyone/everyone to make a patch. My own skill level is beneath making a patch and, indeed, am not aware if this is but a moment's work or if this is a monumental undertaking.
Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Old 06-25-2022, 04:11 PM   #4
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,054
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Export to epub to Word or LO Writer, format & style and then export a PDF.

It's madness creating PDF files for POD from an epub.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
printer offset in PDF conversion (revisited) rjwse@aol.com Conversion 3 09-14-2021 10:56 PM
ebook-convert changes width of pdf pdf-odd-even-offset and pdf-add-toc used both Lafisrap Conversion 4 09-04-2020 06:43 AM
calibre's new "printer's offset" for PDF rjwse@aol.com Calibre 0 12-05-2019 01:00 PM
PDF printer driver mr ploppy PDF 10 07-21-2011 01:06 PM
Free PDF Printer for Microsoft Windows dioib PDF 1 01-16-2010 07:51 PM


All times are GMT -4. The time now is 04:59 PM.


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