I may have found a mistake in the exportToPDF documentation for a Layout. The documentation on this page:
Layout—ArcGIS Pro | Documentation
includes 'embed_color_profile' but I get en error in Python that I have too many arguments when I include a value for that.
The exportToPDF function in Map Series both includes that argument and it works.
The documentation is current for ArcGIS Pro 2.6. It rolled over to the new version yesterday.
Perhaps you could share your expression.
Also it is often useful to use the named parameters, rather than relying on parameter position
Thanks, I'm still using 2.4.1. Here is the expression:
tempLayout.exportToPDF(mapFolder+pageNames[page]+'.pdf', 300, 'BEST', True, 'JPEG', False, 'None', False, 70, False, True)
It works now since I removed the final argument.
Thanks for the tip on naming the parameters.
Glad it worked out