I want to download SharePoint pages(.aspx) in PDF format using Powershell or C# console application.
Is it possible?
Can you please share your thoughts or some reference code?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You can export the SharePoint pages in PDF format using tools like
Muhimbi or using some
dlls in C# like
There are some similar threads on MSDN, please check below Links:
Also on browser(not sure all browsers supports or not) you can press
Ctrl+P, it will allow you to save the SharePoint page to PDF.(It may not include everything in PDF as it is on page if there is any custom functionality on page).
You can add a button called Export to PDF in an HTML file then set the onclick event for the button.
More information, you can refer to the code provided in the following article: