I'm working on a document which incorporates a lot of figures and tables etc. The PDF file size is creeping up and up, to the point that github complains about it now too.
I've already got a list of the largest images etc (from ls) which are the likely culprits of contributing to the file size. There are other elements in the document too however, such as To-Do notes, and on-the-fly typeset images a-la Tikz and it's ilk, which can't be calculated in the same way.
Is there an easy way to tell what is contributing to making a TeX PDF file large? Is there anything in the auxiliary files?
draftoption for thegraphicxpackage. – Mike May 15 '18 at 21:28graphicxcropping methods but crop the files (might be good keeping the originals as backups). Also scale their resolution down to a resolution appropriate for their printing size (no need to include an image at 900 dpi if it gets printed with half of its natural size, 150-300dpi seem enough here). The human eye has its limitations on the resolution. – Skillmon May 16 '18 at 11:26graphicxis 'keeping' the cropped areas? This is definitely something that will be costing me in the document at the moment. Rather than have to go back and redo all the figures, is there an option to have those regions 'removed'? – Joe Healey May 16 '18 at 11:28graphics. I'm not aware of an already implemented method to save the cropped image files automatically, nor do I know how thegraphicsbundle could be configured to leave out the data. – Skillmon May 16 '18 at 11:33gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=foo-compressed.pdf foo.pdfcan dramatically reduce the file size. – samcarter_is_at_topanswers.xyz May 16 '18 at 12:50