Exporting to PDF using ArcPy of ArcGIS Pro?Does arcpy have an issue with directory names starting with a...

Can I sign legal documents with a smiley face?

Is it possible to put a rectangle as background in the author section?

Does a 'pending' US visa application constitute a denial?

What does chmod -u do?

Not using 's' for he/she/it

Creature in Shazam mid-credits scene?

Is it improper etiquette to ask your opponent what his/her rating is before the game?

What does routing an IP address mean?

The screen of my macbook suddenly broken down how can I do to recover

Problem with TransformedDistribution

What are the purposes of autoencoders?

How do I find all files that end with a dot

What is Cash Advance APR?

What was this official D&D 3.5e Lovecraft-flavored rulebook?

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?

Why is it that I can sometimes guess the next note?

Aragorn's "guise" in the Orthanc Stone

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

C++ debug/print custom type with GDB : the case of nlohmann json library

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

What is this called? Old film camera viewer?

Are the IPv6 address space and IPv4 address space completely disjoint?

Creepy dinosaur pc game identification

Closed-form expression for certain product



Exporting to PDF using ArcPy of ArcGIS Pro?


Does arcpy have an issue with directory names starting with a number?AttributeError: 'unicode' object has no attribute '_arc_object' from arcpy.mapping.ListLayers?Getting error in running ExportReport Python code in ArcMapExport attributes of shapefiles into text fileDelete line vertex from polyline layer using point feature in arcpyReferencing Enterprise Geodatabase feature classes from ArcPy with ArcGIS Pro?Debugging unexpected characters placed by ArcPy Python script tool in text element of ArcGIS Pro layout?Writing PDF anchor point into text element of layout using ArcPy for ArcGIS Pro?arcpy.mp.LayerFile() OSErrorarcpy SelectLayerByAttribute_management runs in the Python window in ArcGIS Pro, but fails to run from Spyder or PyCharm













0















I have a weird issue in exporting the layout to PDF
My code is really simple and I have tried in ArcGIS Python IDLE but I have came across the problem.



My Code and error is :



Code:



aprx = arcpy.mp.ArcGISProject("CURRENT")
Layout = aprx.listLayouts()[0]
Layout.exportToPDF(r"C:1.pdf")


Error:



Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:program filesarcgisproResourcesarcpyarcpyutils.py", line 191, in fn_
return fn(*args, **kw)
File "c:program filesarcgisproResourcesarcpyarcpy_mp.py", line 975, in exportToPDF
return convertArcObjectToPythonObject(self._arc_object.exportToPDF(*gp_fixargs((out_pdf, resolution, image_quality, compress_vector_graphics, image_compression, embed_fonts, layers_attributes, georef_info, jpeg_compression_quality, clip_to_elements), True)))
OSError: C1.pdf









share|improve this question









New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    What happens when you try to save it to a directory instead of the root of the C: drive and give it a name that starts with a letter, i.e. C:tempa1.pdf

    – user2856
    1 hour ago











  • I have tried and it worked. Actually, it was part of my script tools and the problem was I was referring to save pdf to project path instead of project folder path. but as curiosity why could not we able to save in C drive.

    – Dave Kazemi
    1 hour ago






  • 1





    If you’re using CURRENT you need to run the code from within Pro. You can’t run it from outside the app, in Idle. CURRENT doesn’t exist there

    – KHibma
    1 hour ago
















0















I have a weird issue in exporting the layout to PDF
My code is really simple and I have tried in ArcGIS Python IDLE but I have came across the problem.



My Code and error is :



Code:



aprx = arcpy.mp.ArcGISProject("CURRENT")
Layout = aprx.listLayouts()[0]
Layout.exportToPDF(r"C:1.pdf")


Error:



Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:program filesarcgisproResourcesarcpyarcpyutils.py", line 191, in fn_
return fn(*args, **kw)
File "c:program filesarcgisproResourcesarcpyarcpy_mp.py", line 975, in exportToPDF
return convertArcObjectToPythonObject(self._arc_object.exportToPDF(*gp_fixargs((out_pdf, resolution, image_quality, compress_vector_graphics, image_compression, embed_fonts, layers_attributes, georef_info, jpeg_compression_quality, clip_to_elements), True)))
OSError: C1.pdf









share|improve this question









New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    What happens when you try to save it to a directory instead of the root of the C: drive and give it a name that starts with a letter, i.e. C:tempa1.pdf

    – user2856
    1 hour ago











  • I have tried and it worked. Actually, it was part of my script tools and the problem was I was referring to save pdf to project path instead of project folder path. but as curiosity why could not we able to save in C drive.

    – Dave Kazemi
    1 hour ago






  • 1





    If you’re using CURRENT you need to run the code from within Pro. You can’t run it from outside the app, in Idle. CURRENT doesn’t exist there

    – KHibma
    1 hour ago














0












0








0








I have a weird issue in exporting the layout to PDF
My code is really simple and I have tried in ArcGIS Python IDLE but I have came across the problem.



My Code and error is :



Code:



aprx = arcpy.mp.ArcGISProject("CURRENT")
Layout = aprx.listLayouts()[0]
Layout.exportToPDF(r"C:1.pdf")


Error:



Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:program filesarcgisproResourcesarcpyarcpyutils.py", line 191, in fn_
return fn(*args, **kw)
File "c:program filesarcgisproResourcesarcpyarcpy_mp.py", line 975, in exportToPDF
return convertArcObjectToPythonObject(self._arc_object.exportToPDF(*gp_fixargs((out_pdf, resolution, image_quality, compress_vector_graphics, image_compression, embed_fonts, layers_attributes, georef_info, jpeg_compression_quality, clip_to_elements), True)))
OSError: C1.pdf









share|improve this question









New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have a weird issue in exporting the layout to PDF
My code is really simple and I have tried in ArcGIS Python IDLE but I have came across the problem.



My Code and error is :



Code:



aprx = arcpy.mp.ArcGISProject("CURRENT")
Layout = aprx.listLayouts()[0]
Layout.exportToPDF(r"C:1.pdf")


Error:



Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:program filesarcgisproResourcesarcpyarcpyutils.py", line 191, in fn_
return fn(*args, **kw)
File "c:program filesarcgisproResourcesarcpyarcpy_mp.py", line 975, in exportToPDF
return convertArcObjectToPythonObject(self._arc_object.exportToPDF(*gp_fixargs((out_pdf, resolution, image_quality, compress_vector_graphics, image_compression, embed_fonts, layers_attributes, georef_info, jpeg_compression_quality, clip_to_elements), True)))
OSError: C1.pdf






arcpy arcgis-pro pdf






share|improve this question









New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 5 mins ago









PolyGeo

53.7k1781244




53.7k1781244






New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









Dave KazemiDave Kazemi

1




1




New contributor




Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Dave Kazemi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    What happens when you try to save it to a directory instead of the root of the C: drive and give it a name that starts with a letter, i.e. C:tempa1.pdf

    – user2856
    1 hour ago











  • I have tried and it worked. Actually, it was part of my script tools and the problem was I was referring to save pdf to project path instead of project folder path. but as curiosity why could not we able to save in C drive.

    – Dave Kazemi
    1 hour ago






  • 1





    If you’re using CURRENT you need to run the code from within Pro. You can’t run it from outside the app, in Idle. CURRENT doesn’t exist there

    – KHibma
    1 hour ago














  • 1





    What happens when you try to save it to a directory instead of the root of the C: drive and give it a name that starts with a letter, i.e. C:tempa1.pdf

    – user2856
    1 hour ago











  • I have tried and it worked. Actually, it was part of my script tools and the problem was I was referring to save pdf to project path instead of project folder path. but as curiosity why could not we able to save in C drive.

    – Dave Kazemi
    1 hour ago






  • 1





    If you’re using CURRENT you need to run the code from within Pro. You can’t run it from outside the app, in Idle. CURRENT doesn’t exist there

    – KHibma
    1 hour ago








1




1





What happens when you try to save it to a directory instead of the root of the C: drive and give it a name that starts with a letter, i.e. C:tempa1.pdf

– user2856
1 hour ago





What happens when you try to save it to a directory instead of the root of the C: drive and give it a name that starts with a letter, i.e. C:tempa1.pdf

– user2856
1 hour ago













I have tried and it worked. Actually, it was part of my script tools and the problem was I was referring to save pdf to project path instead of project folder path. but as curiosity why could not we able to save in C drive.

– Dave Kazemi
1 hour ago





I have tried and it worked. Actually, it was part of my script tools and the problem was I was referring to save pdf to project path instead of project folder path. but as curiosity why could not we able to save in C drive.

– Dave Kazemi
1 hour ago




1




1





If you’re using CURRENT you need to run the code from within Pro. You can’t run it from outside the app, in Idle. CURRENT doesn’t exist there

– KHibma
1 hour ago





If you’re using CURRENT you need to run the code from within Pro. You can’t run it from outside the app, in Idle. CURRENT doesn’t exist there

– KHibma
1 hour ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Dave Kazemi is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f316471%2fexporting-to-pdf-using-arcpy-of-arcgis-pro%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Dave Kazemi is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Dave Kazemi is a new contributor. Be nice, and check out our Code of Conduct.













Dave Kazemi is a new contributor. Be nice, and check out our Code of Conduct.












Dave Kazemi is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f316471%2fexporting-to-pdf-using-arcpy-of-arcgis-pro%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Щит и меч (фильм) Содержание Названия серий | Сюжет |...

Венесуэла на летних Олимпийских играх 2000 Содержание Состав...

Meter-Bus Содержание Параметры шины | Стандартизация |...