Hi! Welcome to the example of generating PDFs using PuppeteerSharp.
- Firstly, you should open NodeApp folder and build bundle.js. This bundle is used like template for a report, which will be filled with a data from ReportDto.
cd src/MccSoft.PdfGenerator.NodeApp
npm install
npm run build
For development mode, use npm run start
script. It'll be started in browser with HTR.
-
Then open .NET solution from repo's root folder and build it.
-
Run
MccSoft.PdfGenerator.App
service. -
To get some generated pdf as result, you can use VSCode with installed HttpClient extension.
-
Open in VSCode
client.http
file from the repo's root folder. -
CLick
Send request
. -
After success response, you can click button
Save requst body
and just save it in PDF. -
Open saved PDF in some PDF viewer (e.g. Google Chrome).
-