ovvn / dom-to-pdf Goto Github PK
View Code? Open in Web Editor NEWGenerates a printable paginated pdf from DOM node using HTML5 canvas and svg
Generates a printable paginated pdf from DOM node using HTML5 canvas and svg
Hello, i have an issue, after i download that pdf. I can't copy text from that pdf. Can help me? thank you
I guess adding page break, number of pages and size of paper would be great additions to the library.
the dependency url
"dom-to-image": "git://github.com/dmapper/dom-to-image",
does not exist. it should be
https://github.com/tsayen/dom-to-image
html2canvas gives better quality images. Currently, the pictures are a bit blurry.
[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;
on build have this problem
undefined ls-remote -h -t ssh://[email protected]/ovvn/dom-to-pdf.git
Hey i'm using experimental this lib, but, i get a bug in jspdf dependencie.
I'm report this to jspdf lib creator, but iI thought it was cool to warn you here about the bug too, so you can follow the status of the error updates.
link to issue from jspdf library: parallax/jsPDF#2843
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.
I'd love a demo to check out to see if this is what I need ; )
Is there a way to use dom-to-pdf to create multiple page pdf documents?
please add pdf object in callback function to use on others functionalities
<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');
});
How do we add styling to the PDF file like margins, header, footer, images, etc
I generate a PDF that missed css.
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.
I am using it in React and it forcing the page to refresh, which I donot want.
I am embedding an image within the container that I am rendering out to PDF. The image src is "blob:http://localhost:3000/8700bb63-c31e-45fe-98fc-499479dca412". However it is not appearing in the PDF.
I don't think the problem is CORS, so I don't think I need a proxy URL.
Is this something wrong with my implementation? Or something wrong with dom-to-pdf?
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.
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?
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).
I want to save generated pdf instead of saving. Is there any way?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.