POST
|
Thanks Jeff, What I am doing now is just selecting the pages from the attribute table I have and then exporting them as pdfs. Then I use the reduce pdf size utlity in adobe once I have all my maps exported. Guess this will work for now...
... View more
12-01-2011
11:23 AM
|
0
|
0
|
137
|
POST
|
I have this running but wondering if anyone has it running for selected pages ? @Kay: He's referring to the option to set jpeg quality when scripting the export in Python. My colleagues have had success running this one, with no negative image results: mxd = arcpy.mapping.MapDocument("CURRENT") for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum arcpy.mapping.ExportToEPS(mxd, r"C:\Temp\Map_Page" + str(pageNum) + ".eps", image_quality="BETTER", image_compression="DEFLATE", picture_symbol="RASTERIZE_PICTURE", convert_markers=True, embed_fonts=False, jpeg_compression_quality=1) del mxd However, when I run the ExportToEPS code with the "jpeg_compression_quality=1" option, I get the following error message: Runtime error <type 'exceptions.TypeError'>: ExportToEPS() got an unexpected keyword argument 'jpeg_compression_quality' My colleagues are running Adobe Acrobat Standard 8 and I am running Adobe Acrobat Standard 9, so that may be where the disparity lies. I modified the script to be built into a tool with output variables, and omitted the "jpeg_compression_quality" option and it works very well for me (no negative images): # Import ArcPy site-package and os modules # import arcpy import os # Set the output workspace # outWorkspace = arcpy.GetParameterAsText(0) # Set the output map name # mapname = arcpy.GetParameterAsText(1) # Tell ArcMap to use the current MXD # mxd = arcpy.mapping.MapDocument("CURRENT") # Execute dataDrivenPages # for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum arcpy.mapping.ExportToEPS(mxd, outWorkspace + str(mapname) + str(pageNum) + ".eps", image_quality="BETTER", image_compression="DEFLATE", picture_symbol="RASTERIZE_PICTURE", convert_markers=True) del mxd Search on "ExportToEPS" in ArcGIS 10 Help to get the breakdown of the syntax and all output options. You'll notice that the "jpeg_compression_quality" option is not mentioned in there...
... View more
11-28-2011
07:33 AM
|
0
|
0
|
137
|
POST
|
Hi Thomas, Have you had any luck with this yet? I am looking for something similar to this. malcolm
... View more
05-11-2011
07:43 AM
|
0
|
0
|
461
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|