jsPDF Tutorial to Rotate Text at Different Angles or Directions in PDF Document Using Javascript Full Project For Beginners

 

 

 

index.html

 

 

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	
</body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.debug.js"></script>
<script>
	var doc = new jsPDF();

doc.setFontSize(17);

doc.setTextColor(255, 0, 0);
doc.text(30, 90, 'JOHN WILLIAMSON LATHAM', null, 90);

   
    

doc.save("sample.pdf")
</script>
</html>

Leave a Reply