title: Bootstrap not working in mpdf
body: <p>I am facing a problem that bootstrap is not working in mpdf.
  Is there anyway to solve this issue?
  I need all the information in one page just like i did it in preview.</p>
  
  <p>This is the html code:</p>
  
  <p>This is the preview link something like this:
  <a href="https://elisa.com.my/pdf/test/index1.html" rel="nofollow noreferrer">https://elisa.com.my/pdf/test/index1.html</a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
      &lt;!--[if IE 8]&gt; &lt;html lang="en" class="ie8"&gt; &lt;![endif]--&gt;  
      &lt;!--[if IE 9]&gt; &lt;html lang="en" class="ie9"&gt; &lt;![endif]--&gt;  
      &lt;!--[if !IE]&gt;&lt;!--&gt; &lt;html lang="en"&gt; &lt;!--&lt;![endif]--&gt;  
      &lt;head&gt;
          &lt;title&gt;Responsive Resume/CV Template for Developers&lt;/title&gt;
          &lt;!-- Meta --&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
          &lt;meta name="description" content="Responsive HTML5 Resume/CV Template for Developers"&gt;
          &lt;meta name="author" content="Xiaoying Riley at 3rd Wave Media"&gt;    
          &lt;link rel="shortcut icon" href="favicon.ico"&gt;  
          &lt;link href='https://fonts.googleapis.com/css?family=Roboto:400,500,400italic,300italic,300,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'&gt;
          &lt;!-- Global CSS --&gt;
          &lt;link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css"&gt;   
          &lt;!-- Plugins CSS --&gt;
          &lt;link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.css"&gt;
  
          &lt;!-- Theme CSS --&gt;  
          &lt;link id="theme-style" rel="stylesheet" href="assets/css/styles.css"&gt;
          &lt;!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --&gt;
          &lt;!--[if lt IE 9]&gt;
            &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"&gt;&lt;/script&gt;
            &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
          &lt;![endif]--&gt;
  
      &lt;/head&gt;
  
  
      &lt;body&gt;
          &lt;button class="btn btn-info" id="cmd"&gt;generate PDF&lt;/button&gt;
          &lt;div id="content"&gt;
          &lt;div class="wrapper"&gt;
              &lt;div class="sidebar-wrapper"&gt;
                  &lt;div class="profile-container"&gt;
                      &lt;img class="profile" src="assets/images/profile.png" alt="" /&gt;
                      &lt;h1 class="name"&gt;Alan Doe&lt;/h1&gt;
                      &lt;h3 class="tagline"&gt;Full Stack Developer&lt;/h3&gt;
                  &lt;/div&gt;&lt;!--//profile-container--&gt;
  
                  &lt;div class="contact-container container-block" style="margin-top:-10% !important;"&gt;
                      &lt;ul class="list-unstyled contact-list"&gt;
                          &lt;li class="email"&gt;&lt;i class="fa fa-envelope"&gt;&lt;/i&gt;&lt;a href="mailto: yourname@email.com"&gt;alan.doe@website.com&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="phone"&gt;&lt;i class="fa fa-phone"&gt;&lt;/i&gt;&lt;a href="tel:0123 456 789"&gt;0123 456 789&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="website"&gt;&lt;i class="fa fa-globe"&gt;&lt;/i&gt;&lt;a href="http://themes.3rdwavemedia.com/website-templates/free-responsive-website-template-for-developers/" target="_blank"&gt;portfoliosite.com&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="linkedin"&gt;&lt;i class="fa fa-linkedin"&gt;&lt;/i&gt;&lt;a href="#" target="_blank"&gt;linkedin.com/in/alandoe&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="github"&gt;&lt;i class="fa fa-github"&gt;&lt;/i&gt;&lt;a href="#" target="_blank"&gt;github.com/username&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="twitter"&gt;&lt;i class="fa fa-twitter"&gt;&lt;/i&gt;&lt;a href="https://twitter.com/3rdwave_themes" target="_blank"&gt;@twittername&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;&lt;!--//contact-container--&gt;
                  &lt;div class="education-container container-block" style="margin-top:-10% !important;"&gt;
                      &lt;h2 class="container-block-title"&gt;Education&lt;/h2&gt;
                      &lt;div class="item"&gt;
                          &lt;h4 class="degree"&gt;MSc in Computer Science&lt;/h4&gt;
                          &lt;h5 class="meta"&gt;University of London&lt;/h5&gt;
                          &lt;div class="time"&gt;2011 - 2012&lt;/div&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
                      &lt;div class="item"&gt;
                          &lt;h4 class="degree"&gt;BSc in Applied Mathematics&lt;/h4&gt;
                          &lt;h5 class="meta"&gt;Bristol University&lt;/h5&gt;
                          &lt;div class="time"&gt;2007 - 2011&lt;/div&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
                  &lt;/div&gt;&lt;!--//education-container--&gt;
  
                  &lt;div class="languages-container container-block" style="margin-top:-10% !important;"&gt;
                      &lt;h2 class="container-block-title"&gt;Languages&lt;/h2&gt;
                      &lt;ul class="list-unstyled interests-list"&gt;
                          &lt;li&gt;English &lt;span class="lang-desc"&gt;(Native)&lt;/span&gt;&lt;/li&gt;
                          &lt;li&gt;French &lt;span class="lang-desc"&gt;(Professional)&lt;/span&gt;&lt;/li&gt;
                          &lt;li&gt;Spanish &lt;span class="lang-desc"&gt;(Professional)&lt;/span&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;&lt;!--//interests--&gt;
  
                  &lt;div class="interests-container container-block" style="margin-top:-10% !important;"&gt;
                      &lt;h2 class="container-block-title"&gt;Interests&lt;/h2&gt;
                      &lt;ul class="list-unstyled interests-list"&gt;
                          &lt;li&gt;Climbing&lt;/li&gt;
                          &lt;li&gt;Snowboarding&lt;/li&gt;
                          &lt;li&gt;Cooking&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;&lt;!--//interests--&gt;
  
              &lt;/div&gt;&lt;!--//sidebar-wrapper--&gt;
  
              &lt;div class="main-wrapper"&gt;
  
                  &lt;section class="section summary-section"&gt;
                      &lt;h2 class="section-title"&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt;Career Profile&lt;/h2&gt;
                      &lt;div class="summary"&gt;
                          &lt;p&gt;Summarise your career here lorem ipsum dolor sit amet, consectetuer adipiscing elit. You can &lt;a href="http://themes.3rdwavemedia.com/website-templates/orbit-free-resume-cv-template-for-developers/" target="_blank"&gt;download this free resume/CV template here&lt;/a&gt;. Aenean commodo ligula eget dolor aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu.&lt;/p&gt;
                      &lt;/div&gt;&lt;!--//summary--&gt;
                  &lt;/section&gt;&lt;!--//section--&gt;
  
                  &lt;section class="section experiences-section"&gt;
                      &lt;h2 class="section-title"&gt;&lt;i class="fa fa-briefcase"&gt;&lt;/i&gt;Experiences&lt;/h2&gt;
  
                      &lt;div class="item"&gt;
                          &lt;div class="meta"&gt;
                              &lt;div class="upper-row"&gt;
                                  &lt;h3 class="job-title"&gt;Lead Developer&lt;/h3&gt;
                                  &lt;div class="time"&gt;2015 - Present&lt;/div&gt;
                              &lt;/div&gt;&lt;!--//upper-row--&gt;
                              &lt;div class="company"&gt;Startup Hubs, San Francisco&lt;/div&gt;
                          &lt;/div&gt;&lt;!--//meta--&gt;
                          &lt;div class="details"&gt;
                              &lt;p&gt;Describe your role here lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo.&lt;/p&gt;  
                              &lt;p&gt;Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. &lt;/p&gt;
                          &lt;/div&gt;&lt;!--//details--&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
  
                      &lt;div class="item"&gt;
                          &lt;div class="meta"&gt;
                              &lt;div class="upper-row"&gt;
                                  &lt;h3 class="job-title"&gt;Senior Software Engineer&lt;/h3&gt;
                                  &lt;div class="time"&gt;2014 - 2015&lt;/div&gt;
                              &lt;/div&gt;&lt;!--//upper-row--&gt;
                              &lt;div class="company"&gt;Google, London&lt;/div&gt;
                          &lt;/div&gt;&lt;!--//meta--&gt;
                          &lt;div class="details"&gt;
                              &lt;p&gt;Describe your role here lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.&lt;/p&gt;  
  
                          &lt;/div&gt;&lt;!--//details--&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
  
                      &lt;div class="item"&gt;
                          &lt;div class="meta"&gt;
                              &lt;div class="upper-row"&gt;
                                  &lt;h3 class="job-title"&gt;UI Developer&lt;/h3&gt;
                                  &lt;div class="time"&gt;2012 - 2014&lt;/div&gt;
                              &lt;/div&gt;&lt;!--//upper-row--&gt;
                              &lt;div class="company"&gt;Amazon, London&lt;/div&gt;
                          &lt;/div&gt;&lt;!--//meta--&gt;
                          &lt;div class="details"&gt;
                              &lt;p&gt;Describe your role here lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.&lt;/p&gt;  
                          &lt;/div&gt;&lt;!--//details--&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
  
                  &lt;/section&gt;&lt;!--//section--&gt;
  
                  &lt;section class="section projects-section"&gt;
                      &lt;h2 class="section-title"&gt;&lt;i class="fa fa-archive"&gt;&lt;/i&gt;Projects&lt;/h2&gt;
                      &lt;div class="intro"&gt;
                          &lt;p&gt;You can list your side projects or open source libraries in this section. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum et ligula in nunc bibendum fringilla a eu lectus.&lt;/p&gt;
                      &lt;/div&gt;&lt;!--//intro--&gt;
                      &lt;div class="item"&gt;
                          &lt;span class="project-title"&gt;&lt;a href="#hook"&gt;Velocity&lt;/a&gt;&lt;/span&gt; - &lt;span class="project-tagline"&gt;A responsive website template designed to help startups promote, market and sell their products.&lt;/span&gt;
  
                      &lt;/div&gt;&lt;!--//item--&gt;
                      &lt;div class="item"&gt;
                          &lt;span class="project-title"&gt;&lt;a href="http://themes.3rdwavemedia.com/website-templates/responsive-bootstrap-theme-web-development-agencies-devstudio/" target="_blank"&gt;DevStudio&lt;/a&gt;&lt;/span&gt; - 
                          &lt;span class="project-tagline"&gt;A responsive website template designed to help web developers/designers market their services. &lt;/span&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
                      &lt;div class="item"&gt;
                          &lt;span class="project-title"&gt;&lt;a href="http://themes.3rdwavemedia.com/website-templates/responsive-bootstrap-theme-for-startups-tempo/" target="_blank"&gt;Tempo&lt;/a&gt;&lt;/span&gt; - &lt;span class="project-tagline"&gt;A responsive website template designed to help startups promote their products or services and to attract users &amp;amp; investors&lt;/span&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
                      &lt;div class="item"&gt;
                          &lt;span class="project-title"&gt;&lt;a href="hhttp://themes.3rdwavemedia.com/website-templates/responsive-bootstrap-theme-mobile-apps-atom/" target="_blank"&gt;Atom&lt;/a&gt;&lt;/span&gt; - &lt;span class="project-tagline"&gt;A comprehensive website template solution for startups/developers to market their mobile apps. &lt;/span&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
                      &lt;div class="item"&gt;
                          &lt;span class="project-title"&gt;&lt;a href="http://themes.3rdwavemedia.com/website-templates/responsive-bootstrap-theme-for-mobile-apps-delta/" target="_blank"&gt;Delta&lt;/a&gt;&lt;/span&gt; - &lt;span class="project-tagline"&gt;A responsive Bootstrap one page theme designed to help app developers promote their mobile apps&lt;/span&gt;
                      &lt;/div&gt;&lt;!--//item--&gt;
                  &lt;/section&gt;&lt;!--//section--&gt;
  
                  &lt;section class="skills-section section"&gt;
                      &lt;h2 class="section-title"&gt;&lt;i class="fa fa-rocket"&gt;&lt;/i&gt;Skills &amp;amp; Proficiency&lt;/h2&gt;
                      &lt;div class="skillset"&gt;        
                          &lt;div class="item"&gt;
                              &lt;h3 class="level-title"&gt;Python &amp;amp; Django&lt;/h3&gt;
                              &lt;div class="level-bar"&gt;
                                  &lt;div class="level-bar-inner" data-level="98%"&gt;
                                  &lt;/div&gt;                                      
                              &lt;/div&gt;&lt;!--//level-bar--&gt;                                 
                          &lt;/div&gt;&lt;!--//item--&gt;
  
                          &lt;div class="item"&gt;
                              &lt;h3 class="level-title"&gt;Javascript &amp;amp; jQuery&lt;/h3&gt;
                              &lt;div class="level-bar"&gt;
                                  &lt;div class="level-bar-inner" data-level="98%"&gt;
                                  &lt;/div&gt;                                      
                              &lt;/div&gt;&lt;!--//level-bar--&gt;                                 
                          &lt;/div&gt;&lt;!--//item--&gt;
  
                          &lt;div class="item"&gt;
                              &lt;h3 class="level-title"&gt;Angular&lt;/h3&gt;
                              &lt;div class="level-bar"&gt;
                                  &lt;div class="level-bar-inner" data-level="98%"&gt;
                                  &lt;/div&gt;                                      
                              &lt;/div&gt;&lt;!--//level-bar--&gt;                                 
                          &lt;/div&gt;&lt;!--//item--&gt;
  
                          &lt;div class="item"&gt;
                              &lt;h3 class="level-title"&gt;HTML5 &amp;amp; CSS&lt;/h3&gt;
                              &lt;div class="level-bar"&gt;
                                  &lt;div class="level-bar-inner" data-level="95%"&gt;
                                  &lt;/div&gt;                                      
                              &lt;/div&gt;&lt;!--//level-bar--&gt;                                 
                          &lt;/div&gt;&lt;!--//item--&gt;
  
                          &lt;div class="item"&gt;
                              &lt;h3 class="level-title"&gt;Ruby on Rails&lt;/h3&gt;
                              &lt;div class="level-bar"&gt;
                                  &lt;div class="level-bar-inner" data-level="85%"&gt;
                                  &lt;/div&gt;                                      
                              &lt;/div&gt;&lt;!--//level-bar--&gt;                                 
                          &lt;/div&gt;&lt;!--//item--&gt;
  
                          &lt;div class="item"&gt;
                              &lt;h3 class="level-title"&gt;Sketch &amp;amp; Photoshop&lt;/h3&gt;
                              &lt;div class="level-bar"&gt;
                                  &lt;div class="level-bar-inner" data-level="60%"&gt;
                                  &lt;/div&gt;                                      
                              &lt;/div&gt;&lt;!--//level-bar--&gt;                                 
                          &lt;/div&gt;&lt;!--//item--&gt;
  
                      &lt;/div&gt;  
                  &lt;/section&gt;&lt;!--//skills-section--&gt;
  
              &lt;/div&gt;&lt;!--//main-body--&gt;
          &lt;/div&gt;
      &lt;/div&gt;    
          &lt;!-- Javascript --&gt;          
          &lt;script type="text/javascript" src="assets/plugins/jquery-1.11.3.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="assets/plugins/bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;    
          &lt;!-- custom js --&gt;
          &lt;script type="text/javascript" src="assets/js/main.js"&gt;&lt;/script&gt;        
          &lt;!-- these js files are used for making PDF --&gt;
          &lt;script src="js/jspdf.js"&gt;&lt;/script&gt;
          &lt;script src="js/jquery-2.1.3.js"&gt;&lt;/script&gt;
          &lt;script src="js/pdfFromHTML.js"&gt;&lt;/script&gt;
          &lt;script src="https://rawgit.com/Xportability/css-to-pdf/master/js/xepOnline.jqPlugin.js"&gt;&lt;/script&gt;
          &lt;script&gt;
          var doc = new jsPDF();
          var specialElementHandlers = {
              '#editor': function (element, renderer) {
                  return true;
              }
          };
  
          $('#cmd').click(function () {
              doc.fromHTML($('#content').html(), 15, 15, {
                  'width': 170,
                      'elementHandlers': specialElementHandlers
              });
              doc.save('sample-file.pdf');
          });
          &lt;/script&gt;
      &lt;/body&gt;
      &lt;/html&gt; 
  </code></pre>
  
  <p>This is the php code where I generate my pdf using MPDF.</p>
  
  <p>The output in the preview was totally not same:<a href="https://elisa.com.my/pdf/test/index.php" rel="nofollow noreferrer">https://elisa.com.my/pdf/test/index.php</a></p>
  
  <pre><code>&lt;?php
  
  include('mpdf60/mpdf.php');
  $html = file_get_contents('https://elisa.com.my/pdf/test/index1.html');
  $mpdf=new mPDF();
  $mpdf-&gt;WriteHTML($html);
  $mpdf-&gt;SetDisplayMode('default');
  
  $mpdf-&gt;Output();
  
  ?&gt;
  </code></pre>
  
  <p>Is there any way to achieve make it one page and generate a clone in the preview? I did before using jsPDF but I don't want it to be in an image</p>