Select to view content in your preferred language

Is it possible to export to PDF with Attributes using python?

2313
2
Jump to solution
10-19-2012 03:54 AM
OvidioRivero
Emerging Contributor
Hello listers,

I am trying to export a an atlas to a pdf with attributes.  I am trying to do this using python but in the python reference I dont find an option that preserves the attributes.


This is what I find in the the Python help as you can see there is no option for the attributes. 

ExportToPDF (map_document, out_pdf, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {image_quality}, {colorspace}, {compress_vectors}, {image_compression}, {picture_symbol}, {convert_markers}, {embed_fonts}, {layers_attributes}, {georef_info}, {jpeg_compression_quality})

Any help would be appreciated.

Thanks,

Ovidio
0 Kudos
1 Solution

Accepted Solutions
JonathanQuinn
Esri Notable Contributor
Isn't the {layers_attributes} parameter what you want to change to LAYERS_AND_ATTRIBUTES?  From the help:

layers_attributes:

A string that controls inclusion of PDF layer and PDF object data (attributes) in the export file.

    LAYERS_ONLY ???Export PDF layers only.
    LAYERS_AND_ATTRIBUTES ???Export PDF layers and feature attributes.
    NONE ???None.

(The default value is LAYERS_ONLY)

View solution in original post

0 Kudos
2 Replies
JonathanQuinn
Esri Notable Contributor
Isn't the {layers_attributes} parameter what you want to change to LAYERS_AND_ATTRIBUTES?  From the help:

layers_attributes:

A string that controls inclusion of PDF layer and PDF object data (attributes) in the export file.

    LAYERS_ONLY ???Export PDF layers only.
    LAYERS_AND_ATTRIBUTES ???Export PDF layers and feature attributes.
    NONE ???None.

(The default value is LAYERS_ONLY)
0 Kudos
OvidioRivero
Emerging Contributor
Yes you are correct. Thanks for pointing that out.
0 Kudos