All Projects → lang-ai → react-pdfs

lang-ai / react-pdfs

Licence: other
Generate PDFs with React

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-pdfs

Yii2 Angular Boilerplate
Yii2 REST API + Angular10 Boilerplate (Frontend/Backend)
Stars: ✭ 194 (+506.25%)
Mutual labels:  server-side-rendering
React Rendering Strategies
Improve your React ⚛️ app performance by using Dynamic Rendering, Progressive Rendering or Static Rendering
Stars: ✭ 217 (+578.13%)
Mutual labels:  server-side-rendering
nextjs-ssr-isr-cdk-aws
🦄 ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎Next.js webapp using Server Side Rendering (SSR) and Incremental Static Regeneration (ISR) deployed with Serverless Nextjs CDK construct on AWS using CloudFront and Lambda@Edge
Stars: ✭ 78 (+143.75%)
Mutual labels:  server-side-rendering
Prerendercloud Lambda Edge
Prerender CloudFront with this [email protected] function.
Stars: ✭ 200 (+525%)
Mutual labels:  server-side-rendering
Puppeteer Renderer
Puppeteer(Chrome headless node API) based web page renderer
Stars: ✭ 214 (+568.75%)
Mutual labels:  server-side-rendering
Angularfire Lite
⚡️ Lightweight library to use Firebase API 🔥 with Angular
Stars: ✭ 245 (+665.63%)
Mutual labels:  server-side-rendering
Nextjs Jwt Authentication
A proof of concept app for demonstrating authentication of Next.js app with JWT.
Stars: ✭ 191 (+496.88%)
Mutual labels:  server-side-rendering
core
Server side rendering with The Elm Architecture in Deno
Stars: ✭ 16 (-50%)
Mutual labels:  server-side-rendering
Universal React Router4
Demo app showing how to use react-router v4 for server- and client-side rendering
Stars: ✭ 216 (+575%)
Mutual labels:  server-side-rendering
Live
Live views and components for golang
Stars: ✭ 251 (+684.38%)
Mutual labels:  server-side-rendering
Vuesion
Vuesion is a boilerplate that helps product teams build faster than ever with fewer headaches and modern best practices across engineering & design.
Stars: ✭ 2,510 (+7743.75%)
Mutual labels:  server-side-rendering
React Imvc
An Isomorphic MVC Framework
Stars: ✭ 211 (+559.38%)
Mutual labels:  server-side-rendering
Universal React
A universal react starter, with routing, meta, title, and data features
Stars: ✭ 247 (+671.88%)
Mutual labels:  server-side-rendering
React Ssr
React SSR as a view template engine
Stars: ✭ 200 (+525%)
Mutual labels:  server-side-rendering
vitext
The Next.js like React framework for better User & Developer experience!
Stars: ✭ 376 (+1075%)
Mutual labels:  server-side-rendering
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+7028.13%)
Mutual labels:  server-side-rendering
Use Ssr
☯️ React hook to determine if you are on the server, browser, or react native
Stars: ✭ 230 (+618.75%)
Mutual labels:  server-side-rendering
YetiForcePDF
The best library in the world to generate PDF from HTML
Stars: ✭ 15 (-53.12%)
Mutual labels:  pdf-generation
FlexDotnetCMS
A powerful, flexible, decoupled and easy to use and Fully Featured ASP .NET CMS, it can also be used as a Headless CMS
Stars: ✭ 45 (+40.63%)
Mutual labels:  server-side-rendering
Beidou
🌌 Isomorphic framework for server-rendered React apps
Stars: ✭ 2,726 (+8418.75%)
Mutual labels:  server-side-rendering

This project is no longer being maintained


Generating PDFs with React

This is an example project you can use to generate PDFs with React. Start by checking the related talk slides here.

If you want to generate emails using React, check the react-emails repo.

Example

To provide an example as starting point, this project generates a demo invoice.

To generate the example:

$ npm install
$ npm run build
$ node example/invoice.js

The result PDF will be saved in the /build/ directory. Here is how it looks like:

PDF Preview

Development

This project was bootstrapped with Create React App. See the development guide here.

Creating the PDF

To create the PDF, simply import the function (you may want to use it as a module) and call it with the data. It returns a promise that resolves when the generated PDF path.

// In case you use it as a module
// const createPDF = require('react-pdfs-example');

const createPDF = require('../server/createPDF');

const data = { 
  date: new Date().toISOString(),
  number: 32149,
    recipient: {
    displayName: 'John White',
    addressLine: 'CEO at Carddesign.con\nLondon, United Kingdom',
  },
  // more data...
};

createPDF(data)
  .then((path) => {
    // PDF has been generated with the config from the function
    // generatePDF() inside server/createPDF.js.
    // Returns the generated PDF path.
  });

LangAI

Built with ❤️ by Lang.ai

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].