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?

  • You can use some custom code to convert page into PDF using itextsharp or any other 3rd party DLL. Jul 12, 2019 at 9:21

3 Answers 3



You can export the SharePoint pages in PDF format using tools like Muhimbi or using some dlls in C# like itextsharp.

There are some similar threads on MSDN, please check below Links:

  1. Export SharePoint page to PDF.
  2. Saving a SharePoint Page to PDF .
  3. Sharepoint Online: Export pages to PDF .
  4. iTextSharp .

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).

  • 1
    Thanks for the 'shout out'. Surprisingly tricky topic, we have been working on this for years and the work never stops. Assuming this is about SharePoint on-premise, have a look at these HTML to PDF resources: support.muhimbi.com/hc/en-us/articles/… Jul 17, 2019 at 10:01

I may be misunderstanding the question, but many tools (notably Adobe Acrobat) let you print any web page as a PDF.


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:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.