Write RGB rasters to pdf using arcpy in Arcgis Pro 3.x

235
2
01-19-2023 11:09 AM
WadeWall
Occasional Contributor

Hi all,

I would like to write a collection of RGB rasters located in a folder to a single pdf, with one raster per image. I see that a methodology is outlined here:

https://community.esri.com/t5/python-questions/export-multiple-raster-into-single-pdf-using-arcpy/td...

However, this is for arcmap 10.x. I am wanting to go through a collection of rasters, loading each one individually into a layout, and then print the layout to a pdf, and then remove the raster before adding the next. Is it possible to do this in Arcgis Pro / arcpy? If anyone could point me in the right direction, I would greatly appreciate it.

0 Kudos
2 Replies
Taren_Esri
Esri Contributor

Hi @WadeWall 

This is possible. I can't necessarily write the code out here for you, but most of what you want can be accomplished with a few iterators, and the Layout object. The documentation for this is really robust, and if you Ctrl + F "PDF" you can get some more information on the Export to PDF method, in addition to a good rundown of what other objects you'll need to get setup. Good luck!

 

0 Kudos
WadeWall
Occasional Contributor

Thanks for pointing me in the right direction.

 

0 Kudos