Thanks Doug. I removed the extra parenthesis. Those were left over when I was experimenting making the parameters a string and I forgot to delete them. I added the print statements and ran the script in python. My print statement = 1. Then I get an error on the Export to PDF function:
1
Traceback (most recent call last):
File "V:\gislu\_BasemapMXD\STRMapSearch.py", line 33, in <module>
ddp.exportToPDF(finalPdf, 'CURRENT', resolution = 200)
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\utils.py", line 181, in fn_
return fn(*args, **kw)
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\utils.py", line 181, in fn_
return fn(*args, **kw)
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\_mapping.py", line 446, in exportToPDF
return convertArcObjectToPythonObject(self._arc_object.exportToPDF(*gp_fixargs((out_pdf, page_range_type, page_range_string, multiple_files, resolution, image_quality, colorspace, compress_vectors, image_compression, picture_symbol, convert_markers, embed_fonts, layers_attributes, georef_info, jpeg_compression_quality, show_selection_symbology), True)))
AttributeError: PageLayoutObject: Error in exporting pages
>>>