Reduce file size of exported PDF from Notability app I use the Notability app for note taking in my iPad. I need to export one of my notes and upload it to a web site with file size restrictions (unfortunately I don't know the maximum size, but I have reason to believe it is 2 MB).

A 12-page-long note, consisting only of written text/mathematics and a single grayscale imported figure in one of the pages is taking up 10+ MB, which is frankly outrageous. Also, I'm pretty sure taking out the figure would make little difference; seems like the developers never paid attention to exported file sizes.

How can I reduce this to fit into my 2 MB budget?

Ideally I'd like to flip a switch inside Notability itself which reduced the export file size, but I don't think anything like that exists.

Otherwise, I'm looking for free tools which would help me reduce the file size. EDIT: online tools are not a possibility, as I can't run the risk of my file being stored and later distributed somehow.

I've already tried exporting a PDF from Preview.app with the "Reduce File Size" filter, which didn't make a difference.

Ghostscript fared a little better: gs -o out.pdf -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET in.pdf reduced the file size to 7 MB, but it's not enough for me.

ImageMagick's convert tool produced output that could be barely classified as readable, even at an alleged 600 DPI.

I also tried exporting JPEGs from Notability and concatenating them with Preview.app, which produced a 4 MB file size, still unsuitable for me (and also, I lose vector rendering, searching, etc. that way, which if possible I'd like to retain).

My best result until now was running this 4 MB file through gs -o out.pdf -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET in.pdf (note ebook instead of printer). It is readable, although visibly compressed, and takes up 1.3 MB. Lacking any other options, this is the file I'm going to submit, but I'm hopeful there's a better solution.

Any other suggestions?
Assuming your top priority is to minimize file size. You are going to have to sacrifice and switch over to an image format. Notability uses a vast amount of vectors in order to keep your handing writing sharp and readable at any size, so we will need to discard that information in favor of a simpler , less sharp jpeg file. 

If you have photoshop, export all the files from Notability into an image format and bring them into your desktop to work on. Opening all the images inside Photoshop, use the “save for web” feature and select the absolute minimum of colors possible. I suggest 2 colors for the page (background &amp; lines), and and 3-5 colors for pens (black, red, blue, green, is okay with dithering ).

This will allow you to create an image with minimal compression, at a sharper resolution. 

If you have GIMP (free and open source &lt;3): You can add an extension that gives you similar functionality to that of Photoshop’s “save for web” function. Here is a guide to how to install and use its different options on TemplateToaster.com.

These are both options for bringing 1920x1080 images down to about ~&lt;80 KB each with readable text and minimal compression.

Edit:

I thought I would include an example that I create with my own notes, exported to Jpeg directly from Goodnotes 5 (this works regardless of program). All images are at the native resoultion of 1668x2154

Below are the results you can expect to see. 

On the right, are the original, straight from Goodnotes exported jpegs. On the left, are the images compressed down with the "save for web" plugin on Gimp.

Below are the options that I used for most of the pages, with the exception of pages with images, where instead the "use web-optimized pallete" option was selected. Note how there are only 5 colors.(page, page line, 2 pen colors, white text)


Using this option will retain all text sharpness from the original exported text. Below is difference in quality, on the left is the compressed image, and the right uncompressed. 



This should answer your question. As previously stated, you cannot expect to maintain the .pdf format and submit your work under such a tight data budget. The size of all the files combined together in the first image is in relative to a normal folder with all the images inside. When .zipped, you can expect an even larger file reduction (depending of course on the level of compression that you select with something like 7zip). As I predicted in my orignal response, the average file size among the 13 pages is 76.38 kb, just 3.62 kb under.