{"id":266,"date":"2012-12-20T09:40:13","date_gmt":"2012-12-19T20:40:13","guid":{"rendered":"https:\/\/blogs.otago.ac.nz\/si-geology\/?p=266"},"modified":"2013-02-18T09:32:59","modified_gmt":"2013-02-17T20:32:59","slug":"optimising-pdfs-in-acrobat-pro-including-downsampling-and-compressing-rasters","status":"publish","type":"post","link":"https:\/\/blogs.otago.ac.nz\/si-geology\/optimising-pdfs-in-acrobat-pro-including-downsampling-and-compressing-rasters\/","title":{"rendered":"Optimising PDFs in acrobat pro (including downsampling and compressing rasters)"},"content":{"rendered":"<p>Sometimes we are required to reduce the file size of a pdf so that it can be uploaded, emailed etc. When we are printing something we always want to use an uncompressed version though.<\/p>\n<h2>Some concepts<\/h2>\n<p>There are a couple of key concepts that are useful to understand when reducing the file size of a pdf. Usually vector text graphics etc. take up a small proportion of the pdf file size and the thing that makes pdfs large are embedded rasters (aka bitmaps, images) such as photos. To make these rasters smaller we can do two things to them.<\/p>\n<h3>1 Downsampling<\/h3>\n<p>This is the process of reducing the number of pixels in an image. Typically downsampling will be achieved by choosing a lower pixel density (PPI) such as 150ppi rather than 300ppi. This will result in a squared reduction in file size. For example if you downsample from 300 to 100ppi the new file will be \u00bc the size of the original. You might choose to downsample an image if you don\u2019t expect someone to view it at a high pixel density (i.e. for images that will only be viewed on screen).<\/p>\n<h3>2 Raster compression<\/h3>\n<p>This is the process of storing the information about an image more efficiently. Compression falls into two categories: lossy and lossless and there are a variety of file types that utilize different compression algorithms. Jpeg compression is lossy and stores information about how the colours change from one corner of an 8&#215;8 pixel square to the other corner (if you look closely at highly compressed JPEGs you can see this effect . Sometimes compression is used generally to refer to any kind of activity that will reduce the file size, I will use raster compression to explicitly refer to the compression to a raster image not including downsampling.<\/p>\n<h3>More concepts<\/h3>\n<p>For a bit of background check out <a title=\"Pixel count, pixel density, document size, dots per inch, optical resolution\" href=\"https:\/\/blogs.otago.ac.nz\/si-geology\/2011\/12\/20\/pixel-count-pixel-density-document-size-dots-per-inch-optical-resolution\/\">the blog post I did about pixel count resolution etc.<\/a><\/p>\n<h2>The quick and dirty method: saving as reduced size pdf from acrobat pro<\/h2>\n<p>This is a bit of a mystery approach. I\u2019ve looked into it and I cannot figure out what this actually does to the rasters. Sometimes this works ok. This is the quick and dirty approach.<\/p>\n<figure id=\"attachment_269\" aria-describedby=\"caption-attachment-269\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-09-59-p-m-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-269\" src=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-09-59-p-m--300x202.png\" alt=\"Save as options from Acrobat pro\" width=\"300\" height=\"202\" srcset=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-09-59-p-m--300x202.png 300w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-09-59-p-m--443x300.png 443w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-09-59-p-m-.png 491w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-269\" class=\"wp-caption-text\">Save as options from Acrobat pro<\/figcaption><\/figure>\n<h2>The better approach: save as optimising pdf<\/h2>\n<p>Saving as optimised pdf gives you a lot more options including the ability to see what is taking up space in your pdf (Click on Save as&gt; Optimized PDF&gt;Audit space usage).<\/p>\n<figure id=\"attachment_271\" aria-describedby=\"caption-attachment-271\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-13-13-p-m-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-271\" src=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-13-13-p-m--300x248.png\" alt=\"Pdf optimiser options\" width=\"300\" height=\"248\" srcset=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-13-13-p-m--300x248.png 300w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-13-13-p-m--362x300.png 362w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-13-13-p-m-.png 777w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-271\" class=\"wp-caption-text\">Pdf optimiser options. Each of the boxes on the left hand side are submenus.<\/figcaption><\/figure>\n<p>Clicking on audit space usage will bring up a box listing the size and percentage for each element in your pdf. In the example below there are three main contributors to the large file size:<\/p>\n<ol>\n<li>Images<\/li>\n<li>X-object Forms: the vector graphics in the document<\/li>\n<li>Piece information: In the case of this document this turns out to be information created by the program that made the pdf (LaTeX) and we don\u2019t actually need it.<\/li>\n<\/ol>\n<div>\n<figure id=\"attachment_270\" aria-describedby=\"caption-attachment-270\" style=\"width: 221px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-17-07-p-m-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-270\" src=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-17-07-p-m--221x300.png\" alt=\"Audit space usage dialog box\" width=\"221\" height=\"300\" srcset=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-17-07-p-m--221x300.png 221w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-17-07-p-m-.png 394w\" sizes=\"auto, (max-width: 221px) 100vw, 221px\" \/><\/a><figcaption id=\"caption-attachment-270\" class=\"wp-caption-text\">Audit space usage dialog box<\/figcaption><\/figure>\n<p>We can do stuff to make 1 and 3 Smaller but there\u2019s not much we can do about 2 (in some rare cases rasterising the really complex vector graphics may help).<\/p>\n<h2>Other optimising things<\/h2>\n<p>Before we start downsampling and compressing the images it\u2019s useful to look at what can be done to the rest of the pdf. I found this useful information out from <a href=\"http:\/\/chris-hummersone.blogspot.co.nz\/2011\/01\/how-to-reduce-size-of-your-document.html\">http:\/\/chris-hummersone.blogspot.co.nz\/2011\/01\/how-to-reduce-size-of-your-document.html<\/a> . Chris\u2019s post deals specifically with pdfs created from LaTex but the principles should be transferable to any pdf.<\/p>\n<p>Below are the settings he recommends for each tab (for more detail read his post).<\/p>\n<figure id=\"attachment_268\" aria-describedby=\"caption-attachment-268\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-44-26-p-m-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-268\" src=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-44-26-p-m--300x134.png\" alt=\"\" width=\"300\" height=\"134\" srcset=\"https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-44-26-p-m--300x134.png 300w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-44-26-p-m--500x223.png 500w, https:\/\/blogs.otago.ac.nz\/si-geology\/files\/2012\/12\/19-12-2012-4-44-26-p-m-.png 1020w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-268\" class=\"wp-caption-text\">Recommended options for PDF optimising<\/figcaption><\/figure>\n<\/div>\n<p>I recommend saving these settings so you can use them again. In the example above where piece information contributed ~50MB the file size was reduce by approximately 50MB.<\/p>\n<h2>Image downsampling and raster compression<\/h2>\n<p>The amount of downsampling and raster compression that you choose to use is going to depend on the purpose for the document. The lower limit I would go to is bicubic downsampling to 100ppi for all image types and JPEG at high quality. This should produce a much smaller pdf for viewing on a computer (e.g. 20MB vs. 150MB). You may want to save various configurations for downsampling and compressing that are fit for different purposes.<\/p>\n<p>Do not do any compression to the version you want to print. Print is much higher resolution than on screen and any compression is much more noticeable.<\/p>\n<h2>Some notes on saving PDFs with illustrator compatibility and\/or embedded images.<\/h2>\n<p>I\u2019m not entirely sure if optimising a pdf will get rid of extra images that are stored when pdfs are saved from illustrator with ai compatibility checked and embedded images. See my previous post for <a title=\"Adobe illustrator: Ai, pdf, linking, embedding and saving\" href=\"https:\/\/blogs.otago.ac.nz\/si-geology\/2012\/12\/07\/adobe-illustrator-ai-pdf-linking-embedding-and-saving\/\">information about best saving practices from AI<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes we are required to reduce the file size of a pdf so that it can be uploaded, emailed etc. When we are printing something we always want to use an uncompressed version though. Some concepts There are a couple of key concepts that are useful to understand when reducing the file size of a [&hellip;]<\/p>\n","protected":false},"author":10389,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8811],"tags":[8812,8816,8815,26011,83,8813,8814,8772,8770,8758,8768,8807,8743],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-word-processing","tag-acrobat-pro","tag-compression","tag-downsampling","tag-illustration","tag-images","tag-optimising","tag-pdf","tag-pixel-count","tag-pixel-density","tag-publication","tag-resolution","tag-saving","tag-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/users\/10389"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/comments?post=266"}],"version-history":[{"count":0,"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/posts\/266\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/media?parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/categories?post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.otago.ac.nz\/si-geology\/wp-json\/wp\/v2\/tags?post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}