Arcpy exporting PDF problems

2458
3
Jump to solution
10-05-2012 08:55 AM
qiangxue
New Contributor
I will appreciate if you can take a look at my question. I used arcpy.ExportToPDF for my map. It worded well before I upgraded to 10.1. I have attributes table added on the map. Now those tables become very small when I use my python scripts to export PDF. I still can use export to PDF from menu to get the right size of tables on my map. However, python scripts works faster, so I still prefer to using it. Could you find out what reason to make those added attributes tables very small? Thanks a lot.
0 Kudos
1 Solution

Accepted Solutions
JeffBarrette
Esri Regular Contributor
This is a known limit (NIM063441) when exporting "Added Tables" in a layout to PDF from a stand-alone script or script tool.  If you run the same python script from the Python window, using current or a file path to the mxd, it will work.  There is also a known limit trying to export OLE tables.

Here are some Python solutions to working with dynamic tables in a layout using arcpy.mapping.

Static Graphic Tables:
http://www.arcgis.com/home/item.html?id=af4fe32a93554eadbd3be3b0e55326be

Dynamic Graphic Tables:
http://www.arcgis.com/home/item.html?id=3a525b986b774a3f9cbbd8daf2435852

Jeff

View solution in original post

0 Kudos
3 Replies
JeffBarrette
Esri Regular Contributor
Could you provide screen shots and anything else that may be unique about your tables (e.g., source data, ole object, etc).

Jeff
0 Kudos
qiangxue
New Contributor
see attachments, please.
0 Kudos
JeffBarrette
Esri Regular Contributor
This is a known limit (NIM063441) when exporting "Added Tables" in a layout to PDF from a stand-alone script or script tool.  If you run the same python script from the Python window, using current or a file path to the mxd, it will work.  There is also a known limit trying to export OLE tables.

Here are some Python solutions to working with dynamic tables in a layout using arcpy.mapping.

Static Graphic Tables:
http://www.arcgis.com/home/item.html?id=af4fe32a93554eadbd3be3b0e55326be

Dynamic Graphic Tables:
http://www.arcgis.com/home/item.html?id=3a525b986b774a3f9cbbd8daf2435852

Jeff
0 Kudos