pnp/sp-dev-fx-extensions

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

webbrewer opened this issue · 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).

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

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.