Skip to content

mccsoft/PdfGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pdf generator service with PuppeteerSharp

Hi! Welcome to the example of generating PDFs using PuppeteerSharp.

Small overview scheme

img

How to build and run

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

  1. Then open .NET solution from repo's root folder and build it.

  2. Run MccSoft.PdfGenerator.App service.

  3. To get some generated pdf as result, you can use VSCode with installed HttpClient extension.

    1. Open in VSCode client.http file from the repo's root folder.

    2. CLick Send request.

    3. After success response, you can click button Save requst body and just save it in PDF.

    4. Open saved PDF in some PDF viewer (e.g. Google Chrome).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published