1

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. – Dikesh Gandhi Jul 12 at 9:21
2

Yes:

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

0

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

0

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:

https://www.c-sharpcorner.com/blogs/export-to-pdf-in-sharepoint

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.