HTML Content not scale to the A4 size. Content smaller than browser view.
See original GitHub issueWhen button onclick run the export_form() function, what I miss up? The content is not as like in the browser view. It’s smaller from my browser.
function export_form(){
console.log('export');
var pdf = new jsPDF("p", "pt", "a4");
pdf.addHTML($('#container_section'), 15, 15, function() {
console.log('export');
pdf.save('web.pdf');
});
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
HTML Content not scale to the A4 size. Content smaller than ...
The content is not as like in the browser view. It's smaller from my browser. untitled. function export_form(){ console.log('export'); var pdf = ...
Read more >How to make a HTML Page in A4 paper size page(s)?
Basically I create a page of body "width: 200mm;" and container of height: 290mm (smaller than A4). Then I used page-break-after: always; so ......
Read more >Fit print preview to viewer size (html) - Telerik Forums
The problem is that this is an A4 landscape report and my site has to have a fixed width that is less than...
Read more >Scaled/Proportional Content with CSS and JavaScript
What we don't get (easily, anyway) is a way to scale whole element (and it's children) proportionally—retaining its exact layout as it changes ......
Read more >CSS to set A4 paper size | Edureka Community
page element results in scaling of the page content. ... To resolve this issue, just set the A4 paper width and height to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sheet * not shit 😉
The browserview is depending on your css etc… So if your html-code or css is faulty, what do you expect you get in the pdf?