sp-dev-fx-extensions icon indicating copy to clipboard operation
sp-dev-fx-extensions copied to clipboard

Any way to get react-command-convert-to-pdf to export site pages?

Open webbrewer opened this issue 2 years ago • 2 comments

Sample

react-command-convert-to-pdf

Author(s)

wobba

Question

Works for html files but not aspx....which is what I really need (without having to convert all my pages to aspx).

webbrewer avatar Apr 19 '22 18:04 webbrewer

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Apr 19 '22 18:04 ghost

You probably need a browser-like web engine to execute the JS for any client side dynamic content of the aspx page and then use this output DOM to save it as static html page in SharePoint. After that you can use the normal html to pdf conversion of this extension. There is a NodeJS module for this purpose, which was mentioned in this superuser thread.

matherm-aboehm avatar Aug 31 '22 07:08 matherm-aboehm