logo
down
shadow

generating pdf from Html in React using html2canvas and jspdf


generating pdf from Html in React using html2canvas and jspdf

Content Index :

generating pdf from Html in React using html2canvas and jspdf
Tag : reactjs , By : redha
Date : November 25 2020, 01:01 AM

will help you You can use the excellent React-pdf library. It has good performance and has the added benefit that if you print text, it will be searchable.
If you need to render the page in the DOM as well as in PDF, I recommend to create yourself primitives and use these instead of the dom tags (div, p, etc). By using these primitives, you will be able to render the same components in the dom as well as in a pdf.
import React from 'react';
import { View as ViewPDF } from '@react-pdf/renderer';
import { RENDERING_CONTEXT, withRenderingContext } from '../RenderingContext';

class View extends React.Component {
  render() {
    const { renderingContext, children, className, style } = this.props;
    const isPdf = renderingContext === RENDERING_CONTEXT.PDF;
    return isPdf
      ? <ViewPDF className={className} style={style}>
          {children}
        </ViewPDF>
      : <div className={className} style {style}>
          {children}
        </div>;
  }
}
export default withRenderingContext(View);

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

jsPDF: html2canvas not loaded while using new .html() method


Tag : development , By : Mforg
Date : March 29 2020, 07:55 AM
wish of those help jsPDF needs html2canvas to be declared in the global scope to work, so you have to write
window.html2canvas = html2canvas;

React: transferring HTML elements to web worker to generate Pdf using jspdf and html2canvas


Tag : reactjs , By : Nougat
Date : March 29 2020, 07:55 AM
I wish did fix the issue. It turns out DOM elements will not work with the structured clone algorithm. Images do, however, so I could simply transfer the canvas images instead of the canvas element. Instead, I decided to parse the DOM elements to extract the data i needed and used pdfMake to create the pdf file (due to blurriness from using html2canvas/jsPDF).

Convert HTML page to PDF in Angular using jsPdf and Html2Canvas


Tag : html , By : kokok13
Date : March 29 2020, 07:55 AM
around this issue I have solved this issue myself doing some R&D.
I noticed that it was not the issue of my jspdf library but html2canvas library the image that was being captured was half. So to resolve that issue i used html-to-image npm Package. this are the following changes i did to my code.
//in my component i imported
import htmlToImage from 'html-to-image';

public captureScreen() {
const filename = 'rtgs-form.pdf';
const node = document.getElementById('contentToConvert');
htmlToImage.toPng(node)
.then( (dataUrl) => {
const img = new Image();
img.src = dataUrl;
const pdf = new jspdf('p', 'mm', 'a4');
pdf.setLineWidth(1);
pdf.addImage(img, 'PNG', 0, 0, 208, 298);
pdf.save(filename);
})
.catch((error) => {
console.error('oops, something went wrong!', error);
});
}

Issues with generating good Quality pdf from javascript libraries: jspdf and html2canvas


Tag : javascript , By : Xander
Date : March 29 2020, 07:55 AM

Generating PDF from HTML/CSS string with Angular 4, jsPDF, html2canvas


Tag : javascript , By : Tim Tyrrell
Date : March 29 2020, 07:55 AM
This might help you Here is an example to generate pdf for your reference.. But here I haven´t used html2canvas for styling. Hope it will help you:
In HTML:
<a class="page-link" style="  (click)="convert()">Generate PDF</a>
import * as jsPDF from 'jspdf';
import 'jspdf-autotable';
convert() {

    var doc = new jsPDF();
    var col = ["Id", "TypeID","Accnt","Amnt","Start","End","Contrapartida"];
    var rows = [];

    var imgData = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBaRXhpZgAATU0AKgAAAAgABQMBAAUAAAABAAAASgMDAAEAAAABAAAAAFEQAAEAAAABAQAAAFERAAQAAAABAAAOw1ESAAQAAAABAAAOwwAAAAAAAYagAACxj//bAEMABwUFBgUEBwYFBggHBwgKEQsKCQkKFQ8QDBEYFRoZGBUYFxseJyEbHSUdFxgiLiIlKCkrLCsaIC8zLyoyJyorKv/bAEMBBwgICgkKFAsLFCocGBwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKv/AABEIAPwBwAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaan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RRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf/9k='




var rowCountModNew = [
["1721079361", "0001", "2100074911", "200", "22112017", "23112017", "51696"],
["1721079362", "0002", "2100074912", "300", "22112017", "23112017", "51691"],
["1721079363", "0003", "2100074913", "400", "22112017", "23112017", "51692"],
["1721079364", "0004", "2100074914", "500", "22112017", "23112017", "51693"]
]


rowCountModNew.forEach(element => {
      rows.push(element);

    });



    doc.addImage(imgData, 'JPEG', 90, 60, 20, 20);


    doc.autoTable(col, rows);
    doc.save('Test.pdf');
  }
convert() {       
    var doc = new jsPDF();
    var col = ["Id", "TypeID","Accnt","Amnt","Start","End","Contrapartida"];
    var rows = [];    
    var imgData = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBaRXhpZgAATU0AKgAAAAgABQMBAAUAAAABAAAASgMDAAEAAAABAAAAAFEQAAEAAAABAQAAAFERAAQAAAABAAAOw1ESAAQAAAABAAAOwwAAAAAAAYagAACxj//bAEMABwUFBgUEBwYFBggHBwgKEQsKCQkKFQ8QDBEYFRoZGBUYFxseJyEbHSUdFxgiLiIlKCkrLCsaIC8zLyoyJyorKv/bAEMBBwgICgkKFAsLFCocGBwqKioqKioqKioqKioqKioqKioqKioqK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UUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf/9k='   


var rowCountModNew = [
["1721079361", "0001", "2100074911", "200", "22112017", "23112017", "51696"],
["1721079362", "0002", "2100074912", "300", "22112017", "23112017", "51691"],
["1721079363", "0003", "2100074913", "400", "22112017", "23112017", "51692"],
["1721079364", "0004", "2100074914", "500", "22112017", "23112017", "51693"]
]

rowCountModNew.forEach(element => {
      rows.push(element);          
    });

    doc.text(80, 20, 'Report Final');
    doc.addImage(imgData, 'JPEG', 90, 40, 20, 20);    
    doc.autoTable(col, rows,{startY: 60});
    doc.text(80, 130, 'Thank you');
    doc.save('Test.pdf');        
  }
Related Posts Related QUESTIONS :
  • React JS — how do I add child components and set calculated transformations?
  • ReactJS componentDidUpdate() prevState equals to currentState
  • TypeScript error: JSX element type 'Tree' does not have any construct or call signatures. I'm not able to import my own
  • createProvider is not exported from react-redux?
  • Error:(19, 35) TS2304: Cannot find name 'T'. Why I can't extend interface in TS?
  • How can I secure images in S3 buckets with Auth0 and a React front-end
  • React Import Multiple Functions
  • React render when props change
  • Cannot read property 'array' of undefined
  • What is the expected return of `useEffect` used for?
  • Why i need to install npm for react native app
  • How to fix 'module not found' for audio files using file-loader? Images, CSS, and JSON are working just fine
  • Can't render the component received as a prop.children in my parent component
  • rootInstance.findByType("input"); Giving Expected 1 but found 2 instances with node type : "undefined&quo
  • Reset state to initial state only for specific state variables
  • Get error TS2322: Type 'any' is not assignable to type 'never'
  • Is it possible to update the store outside of the Provider context in Redux?
  • Copy to clipboard is copying value with two newlines
  • How to test useRef with the "current" prop in jest/enzyme
  • How to remove value of each key in Async Storage in React Native at the time of Logout
  • Is there a simpler way to write this React code
  • Auth0. How to get user's permissions in access token?
  • this.setState is not updating the state property
  • for loops in reacts js
  • The 'Access-Control-Allow-Origin' header contains multiple values 'http://localhost:3000, http://localhost:3000', but on
  • Slowly implementing redux to an existing React.js project
  • how to use document.querySelector().innerHTML in react
  • Pass params to firestore collections
  • BrowserRouter vs Router with history.push()
  • React Formik onSubmit RestAPI called twice, once click a submit button
  • Can this assignment be made simpler by destructuring?
  • Manually fire a query via compose( graphql() )
  • Why not maintain state in localStorage if redux loses state on refresh?
  • How to remove duplicated before map
  • How to write date in a field with date format?
  • How to listen to localstorage value changes in react?
  • Apollo local state - querying for object w unknown keys
  • Submit works with second try
  • Error : Cannot read property 'mountComponent' of undefined
  • How to export module properly so vscode can show my module in suggestion [ctrl+space]?
  • React - How to do network requests inside a setState, is my code okay?
  • Building CRM Web Resources with React
  • How to get Material UI Icon SVG path? React Icon Picker
  • How to use data attributes in React
  • Problem importing stateless function is react
  • Best practice to prevent state update warning for unmounted component from a handler
  • How to inject `apollo client` through react context via `contextType` instead of consumer?
  • useEffect Hook Example: What causes the re-render?
  • How to check whether React updates dom or not?
  • Understanding reselect in redux
  • Getting an error about undefined is not object in React native
  • NPM run build change name file
  • Setting initial state based on prop when using useState Hook
  • How to handle a lot of data in reactjs
  • React Router v4 nested routes not work with webpack-dev-server
  • in Typescript, How to ensure React child components are of a certain type
  • Parsing error: Identifier 'React' has already been declared
  • React: Sibling component communication issue
  • How to simulate click on a react-leaflet Marker in my unit tests?
  • trying to use useState with types
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com