View Single Post
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: 329
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:	111
Size:	226.2 KB
ID:	194515   Click image for larger version

Name:	Screenshot from 2022-06-24 08-47-52.png
Views:	112
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:	111
Size:	272.1 KB
ID:	194518  
rjwse@aol.com is offline   Reply With Quote