/DownloadArticlePageWebpart

A web part which lets users download SharePoint News article.

Primary LanguageTypeScript

download-article-page

Summary

Short summary on functionality and used technologies.

[picture of the solution in action, if possible]

Used SharePoint Framework Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

JsPDF

Solution

Author(s) --------|--------- Shiv Shankar Kumar (https://shivsquest.com/)

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • npm install
    • gulp serve

Features

This webpart has a button called 'Download'. The webpart is supposed to be placed on the News Article page. On click of the button, it extracts article information from 'CanvasContent1', removes unwanted details using REGEX and exports as pdf.