bell notificationshomepageloginedit profileclubsdmBox

10.02% popularity   0 Reactions

I have a couple of PDFs and DJVU documents that I want to read on an ereader (namely, Kobo Touch). However, the size of the pages differ, between cover and actual content, and even between two different content pages, and what my ereader does is use the size of the first page as the "template" for the viewport size for all my documents. It means that if the first page is smaller, it will display only a small part of the next (bigger) pages, corresponding to the size of the first page. If the first pages is larger, then the other smaller pages will be tiny on a corner of the screen.

In other words, how can I scale all pages in a PDF/DJVU document to the same size (preferably the largest size among the pages in the document)?

PS: The files are mainly scanned scientific papers, in DJVU format, though I have to convert them to PDF in order to read them in my ereader.


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (2)

Login to follow story

More posts by @Badria

2 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

There is a program called jPdftweak which will let you scale pdf pages to whatever size you would want. You can set the parameters for the conversion to the larger page size and jPdftweak will scale all the pages in the file in accordance with the settings you have made. jPdftweak is a cross-platform, free Java program.


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

10% popularity   0 Reactions

If your ebook reader supports EPUB you might be better of extracting the images from the PDF and DjVu files and creating EPUB files from the resized images.

This of course depends on the handling of larger-then-screen images on your reader, if that is different for EPUB than for images embedded in PDF, then of course you should target the better supported format (with regards to zooming and panning). A series of images in an EPUB file are easier to extract than the corresponding images from a PDF stream. So the handling on your ebook reader should be faster. At least on the systems I tested that is the case ( Sony PRS-700, Sony PRS-T1, Cybook Odyssey HD).

For the actual extraction, scaling and recombination I use a Python based program on Linux that drives standard tools like pdfimages and ddjvu for the extraction, imagemagick for the scaling/conversion, and does the recombination into EPUB itself.

Of course the last step could easily be changed to the recombination into a PDF file using reportlab.


Free books android app tbrJar TBR JAR Read Free books online gutenberg


Load Full (0)

 

Back to top