Giter VIP home page Giter VIP logo

dom-to-pdf's People

Contributors

ovvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dom-to-pdf's Issues

Page sizing

The jsPDF settings are for a A4 page in portrait orientation.

The constants for the page size are a4Height: 595.28, a4Width: 841.89. I believe these are reversed.

A portrait page should have a width smaller than its height. I was having trouble getting content to not break across pages and reversing these constants fixed the issue.

It is also unclear from the documentation what the overrideWidth option does and what unit it is in.

New Features

I guess adding page break, number of pages and size of paper would be great additions to the library.

Save the pdf in a server

I'd like to know if there is a way to store the generated PDF on the server(I'm willing to turn it into base64 and save in the server).

4 vulnerabilities

They are 4 vulnerabilities (1 low, 2 moderate, 1 high), I'm working on a sensitive site and was wondering if they were any plan to fix them.

Image is not displaying in PDF

<div id="divPdfReport" ref={pdfref} className='pdfPaged1' > <img src={ClientRight} style={{width:'160px'}}/> </div>

var element = document.getElementById('divPdfReport');

         domToPdf(element, function(pdf) {
         console.log('done');
      });

Multiple pages

Is there a way to use dom-to-pdf to create multiple page pdf documents?

Styling the PDF

How do we add styling to the PDF file like margins, header, footer, images, etc

Force Refreshing

I am using it in React and it forcing the page to refresh, which I donot want.

File for use in html?

Hello,

thank you very much for your dom-to-pdf.

I am using dom-to-image.

With dom-to-image it is possible to use an file that I integrate in the header of my html-Dokument.

<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.js"></script>

or

https://github.com/tsayen/dom-to-image/tree/master/dist.

Is there a file, that I can use like this for dom-to-pdf, too?

In the PDF, design is not continuous

In the PDF design is not continuous ,in the page 1 of file there is a space available for Second div, but the second div doesn't continuously show below the first div, second div starts in second page from top by leaving space below first div in first page.

//it takes height of 15% in page 1
// by leaving empty space of 85% (HEIGHT) this div start from second page // table

add demo

I'd love a demo to check out to see if this is what I need ; )

Radio button issue

[bug]: Radio button value gets de-selected after PDF printing

[fix]: add clone.name = node.name + 1; in the clone function just after clone.value = node.value;

Can't copy text from pdf

Hello, i have an issue, after i download that pdf. I can't copy text from that pdf. Can help me? thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.