Javascript PDFMake.js Example to Convert Dynamic Raw HTML Template to PDF Document in Browser Using Bootstrap 4 Full Project For Beginners








<!doctype html>
<html lang='en'>
  <meta charset='utf-8'>
  <title>PDFMake Convert Raw HTML to PDF Document</title>
  <!-- pdfmake files: -->
  <script src=''></script>
  <script src=''></script>
  <!-- html-to-pdfmake file: -->
  <script src=""></script>
  <link href="" rel="stylesheet">

  <div class="container">
    <h1 class="text-center">
      Raw HTML to PDF Document
    <form id="form">
      <div class="form-group">
        <label for="html">Enter Raw HTML:</label>
        <textarea class="form-control" id="html" cols="30" rows="10"></textarea>
      <button class="btn btn-danger btn-block">Convert to PDF</button>
  <script src=""></script>


      var text = $("#html").val()
      var val = htmlToPdfmake(text); 

      var dd = {content:val};



Leave a Reply