ARCPY - ExportToPDF Function

677
2
03-12-2012 03:13 PM
Ericng
by
New Contributor
Hi,

I'm trying to export a map book with data driven pages, with multiple data frames. I am using the UI to export. I can't seem to get the JPEG_COMPRESSION_QUALITY string to work in my script

I have:

mxd = arcpy.mapping.MapDocument("CURRENT")
ddp = mxd.dataDrivenPages
ddp.exportToPDF(r"C:\Desktop\test.pdf", resolution = 150, jpeg_compression_quality = 75)

I get this error:

Runtime error <type 'exceptions.TypeError'>: exportToPDF() got an unexpected keyword argument 'jpeg_compression_quality

I'm not sure what is wrong.

- E. Ng
Tags (2)
0 Kudos
2 Replies
JasonScheirer
Occasional Contributor III
Are you on the latest service pack?
0 Kudos
Ericng
by
New Contributor
Hi,

Updating to the latest service pack fixed it. Thanks a lot.

- E. Ng
0 Kudos