eKoopmans / html2pdf.js

Client-side HTML-to-PDF rendering using pure JS.
MIT License
4.07k stars 1.37k forks source link

Text rotation Issue #192

Open Fahad-AQ opened 5 years ago

Fahad-AQ commented 5 years ago

css is not working , i am using transform: rotate(180deg) on text span , please advide.

eKoopmans commented 5 years ago

Hi @Fahad-AQ, that could be an issue with html2canvas. Would you please try forking this jsFiddle to reproduce the problem? You can use it to test whether the problem is in html2canvas ("Generate canvas") or html2pdf ("Generate PDF"). Thanks!

Fahad-AQ commented 5 years ago

Hi ekoopmans , kindly give me solution of page break issue ,

image

Fahad-AQ commented 5 years ago

This is my javascript code.

function addScript(url) {
var script = document.createElement('script');
script.type = 'application/javascript';
script.src = url;
document.head.appendChild(script);

} addScript('https://raw.githack.com/eKoopmans/html2pdf/master/dist/html2pdf.bundle.js');

var element = document.getElementById('paginations'); var opt = { filename: 'abc.pdf' };

  // New Promise-based usage:
  html2pdf().set(opt).from(element).save();
JustinMika commented 3 months ago

i've the same problem, i dont how i can resolve it