Skip to content

mccsoft/PdfGenerator

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
src
 
 
 
 
 
 
 
 

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