View Single Post
Old 05-03-2020, 07:28 PM   #1781
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Shohreh View Post
Hello,

For enhanced reading of PDFs on an e-reader, I'd like to 1) remove the margins, 2) turn the pages into pictures (PNG), and 3) merge all those pictures back into a PDF file.

For Step 1, I tried cpdf, but I can't figure it out (-mediabox, -cropbox, -hard-box).

Alternatively, it looks like k2pdfopt can do it (-cbox, -grid): Is it correct?

I need a Windows32 application, ideally, a single EXE instead of eg. Java. Hence my not looking at Briss.

Thank you.
Yes, I think k2pdfopt checks off all of your boxes. Select your source file, then check off the crop areas check box and click "select" to choose your crop region to remove the margins. For conversion mode, select "fitpage", and then uncheck the "Native PDF output" if you want the output to be PNG bitmaps assembled into the PDF (rather than the original PDF content). See attached screen shot. You might want to watch the video(s) from the help pages.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	286
Size:	205.8 KB
ID:	179066  
willus is offline   Reply With Quote