3

There are a number of different compression options for exporting pdf files from ArcGIS (eg RLE, LZW, Deflate etc) but which is best for exporting raster topographic basemaps?

Generally such maps will have quite a lot of white space, along with areas of even tone (eg lakes, forests). I'm looking for guidance on what settings work well for folks - clearly I'm trying to minimise file size whilst preserving quality.

I've had reasonable luck with the 'adaptive' compression method, but relying on trial and error is quite difficult because there are a few parameters to play with: resolution, output image quality, and compression-specific quality as well.

  • 2
    Are you exporting vector only features or a mixture or raster and vector? Are you having any issues with the technique you are using? – Jakub Sisak GeoGraphics Apr 30 '15 at 17:11
  • Probably it is deflate with predictor=2 if you can set it with ArcGIS. Read linfiniti.com/2011/05/… – user30184 Apr 30 '15 at 17:16
  • 1
    ESRI says adaptive gives the smallest file sizes but may have compression artifacts, while deflate is best for lossless compression. If you are using county wide mosaics sid/jp2 or wms topos, you already may have compression effects. If you are using 13 color USGS drg tifs, then the single most important setting may be quality/resample. You need enough to get the topo lines to display well at the scale of your map. If you try to export a USGS 1:24000 scale topo at 1:48000, you likely will have to go use a high quality setting but at 1:10000 normal may be fine. – johns Apr 30 '15 at 20:41
  • I'm exporting raster (tif) maps, not vector, and have edited the question to reflect this. I suppose nothing is wrong with my current technique, it's just that if there's a better way to do it, that results in smaller files, then that would be best for me as smaller files are easier to share and take up less room. Thanks – TreeMan May 1 '15 at 9:52
6

Considering the fact that you are exporting some raster data as well; the best technique, IMHO, is to NOT use the ArcGIS PDF exporter at all but rather export to a high resolution TIFF instead and then convert the tiff using Adobe Acrobat Pro renderer to PDF. (Important note: this only works well with TIFF) You can tweak the rendering options in Adobe if need be but you will get the best and most importantly the smallest result (in file size) using this workaround. Adobe Acrobat works best, other 3rd party PDF makers are not as good; I've tested a few with mixed results; either the resulting PDF was larger, or appeared more down-sampled or the on-screen viewer rendering was subpar. Adobe is not cheap but there is simply no comparison when it comes to accurate conversion and on-screen display. The PDF exporter in ESRI works reasonably well for exporting vector maps with no transparencies. Personally, I would not recommend the PDF exporter for complex maps, maps with transparencies and maps containing rasters. I've been suggesting this technique to people from time to time but received a lot of negative rap for it being a bit of a hack, requiring the purchase of additional software, etc, etc. but I have not found anything better to date. I email and distribute a lot of complex maps (by a lot i mean 1000s) and I need my output to be high resolution and small in file size and this is what works for me.

I run a small test exporting a simple tabloid sized map with imagery, some vector layers and some annotations using both PDF and the TIFF technique described herein.

For the PDF export I chose the following parameters:
Resolution: 300 PDI
Output Image Quality (Resample Ratio): Best
Destination Colorspace: RGB
Compress Vector Graphics: Yes
Image Compression: Adaptive
JPEG Quality: 80%
Picture Symbol: Rasterize layers with bitmap markers/fills
Embed All Document Fonts: Yes
Layers and Attributes: None
Export Map Georeference Information

For the TIFF export I chose:
300DPI 
24 bit true colour mode
Adobe Renderer (Converting TIFF to PDF) Settings:
Scan Compression: No
Monochrome Compression: JBIG2 (Loseless)
Greyscale Compresion: JPEG (Quality: Medium)
Color Compression: JPEG (Quality: Medium)
RGB Policy: Preserve Embedded Profiles

Results: ArcGIS PDF Exporter file size: 8.17MB

400% magnification enter image description here

TIFF Export converted to PDF file size: 3.13 MB

400% magnification enter image description here

Conclusion: Clearly, the PDF exporter result shows cleaner line work because features on top of raster were converted to vector graphics. However, there is no difference in the quality of the raster. Also the result magnification is 400% so the differences are not noticeable when viewed at 100% or when printed. Personally I prefer the smaller file for emailing and distribution but may choose the PDF exporter file for press.

Things get a little more complicated as the complexity of the map increases. Any vector layer bellow a raster layer will be rasterized when the ArcGIS PDF Exporter is used. Any layer below a layer that has a transparency other than 0% will be rasterized as well so as complexity of the map increases so does the ability of the PDF exporter to utilize vectors. Additionally, the actual renderer itself produces files that are far larger then those exported to tiff then subsequently converted to PDF in Adobe. At some point the ArcGIS exporter produces files so large and complex, they become unusable as most users will not even be able to open them or if only vectors are used, the file will take a very long time to draw.

For example, I run the same test on a map that is more complex, a more typical representative of the daily work I do. This map has 3 annotation layers containing a total of 60 label classes, about 30 vector layers (some of them transparent), label masks, and a single relief raster layer positioned above several vector layers. The map size is 34”x44”.

Using the same parameters above, the PDF Exporter produced a file that was 57.4MB and which I was unable to open because it caused my 32GB RAM-64-bit OS-Xeon processor-solid state HD workstation to run out of memory whereas the TIFF technique produced a 16MB file that opens without any issues on any machine. I also know I can push the export to 600 or even 700 DPI and still be able to convert this to PDF and plot it without any issues.

  • Since the advent of Arc Pro I'd suggest many of the problems described above are no longer problems. Arc Pro will deal with transparencies and renders vector / raster mixed maps far better than ArcMap. – Oliver Burdekin Jul 27 '17 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.