New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@valueadd/nestjs-ng-pdf-generator

Package Overview
Dependencies
Maintainers
9
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@valueadd/nestjs-ng-pdf-generator

Pdf generator with for NestJS with templates based on Angular

  • 15.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-40%
Maintainers
9
Weekly downloads
 
Created
Source

@valueadd/nestjs-ng-pdf-generator

version downloads

Extension to the @nestjs/ng-universal that adds the generic endpoint 'pdf-generator' that will return Angular view converted to the pdf. GET request to the pdf-generator/:any-path will open your app at the "any-path" and trigger the "to pdf" browser action.

Usage

  1. Adjust your angular app for the SSR with NestJS (sample: https://github.com/TrilonIO/universal-nest).
  2. Instead of AngularUniversalModule.forRoot import PdfGeneratorModule.forRoot

Notice

  • Name of the generated pdf will be taken from the tab title.
  • Your client app will be opened as a localhost. It may cause a CORS exception on requests to your API.
  • Your Angular app have access to the Request object. You can pass headers from the request to the 'pdf-generator/' by adding them to the forwardHeaders option in PdfGeneratorModule.forRoot. You can use it to authenticate your Angular app by forwarding Authentication header.
  • Exceptions from the HttpClient in the client application are passed as the result of PdfGenerator.

Keywords

FAQs

Package last updated on 25 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc