Select to view content in your preferred language

Rounded Rectangles Not Exporting

11-14-2022 08:18 AM
New Contributor II

I recently inserted "rounded rectangle" graphics into my Pro project and everything looks great.  When I export, however, they come out as traditional rectangles.  No matter what format I export them to (PDF/JPEG/TIFF/PNG) , it doesn't change.  If I increase the DPI and print quality, still nothing changes, same thing.   I have not figured out a way to export these rounded rectangles.  Everything else in my map exports as expected except these. 

Is there something I'm missing or could do differently when I export?  Could it be a bug?

In ArcPro:  Note the rounded corners

In ArcPro:  Note the rounded cornersIn ArcPro: Note the rounded corners      

In my exported documents:  straight rectangle corners



2 Replies
Esri Regular Contributor

Unfortunately this is a known bug in ArcGIS Pro 3.0 and earlier. It should be addressed in the Pro 3.1 release. In the meantime, you can work around the issue by exporting via the Python window instead of the export pane.  You can learn more about exporting via Python here

And here is a sample script you can paste in the Python window to export all layouts in a project to PDF.

##Export to PDF
import time
aprx ="CURRENT")
for lyt in aprx.listLayouts():
#Parameters: output name, resolution, image quality, compress vector graphics, image compression, embed fonts, layer attributes, georeference, jpeg compression, clip to elements, output as image, embed color profile
#Image quality: "BEST", "BETTER", "NORMAL", "FASTER", "FASTEST"
#Image compression: "ADAPTIVE", "DEFLATE", "JPEG", "LZW", "NONE", "RLE"
	start = time.time()
	lyt.exportToPDF(f"C:\Temp\{}.pdf", 150, "BEST", True, "ADAPTIVE", True, "LAYERS_ONLY", True, 80, False, False, False)
	end = time.time()
	print(f"{} exported in {end - start} seconds")
New Contributor II

John beat me to it.  Looking forward to 3.1!

0 Kudos