robamler / dontprint

Firefox add-on to send scientific articles to your e-reader directly from journal websites.
http://dontprint.net
Other
42 stars 0 forks source link

Error sending mail #40

Open rolandog opened 7 years ago

rolandog commented 7 years ago

Operation: sending

It might have been a very large PDF. The original file was a 600 page, 8 MB PDF that turns into a 120 MB file with k2pdfopt.

rolandog commented 7 years ago

Got the same issue with a 1.4 MB, 313 page PDF. Forgot to mention I'm using a Kindle PaperWhite (third gen).

After some research, I found the following information about Amazon's file size limit. It seems that sending emails with 50 MB or larger attachments isn't allowed.

Is there a way to try to minimize file sizes? Or perhaps some heuristics to try to warn users if their PDFs might result in a very large file?

CsatiZoltan commented 7 years ago

@rolandog

Is there a way to try to minimize file sizes?

Yes, there is. Pass the -n flag to k2pdfopt. It will keep the vector description of the text. Otherwise, it is converted to image (without OCR), that's why you got such a large file size. See http://www.willus.com/k2pdfopt/help/native.shtml