@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 mxdHowever, 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 mxdSearch 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...
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.