<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shwetha940</title>
    <description>The latest articles on DEV Community by Shwetha940 (@shwetha940).</description>
    <link>https://dev.to/shwetha940</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F715407%2Ffdd41bc5-d26f-469a-abbf-942018e10987.png</url>
      <title>DEV Community: Shwetha940</title>
      <link>https://dev.to/shwetha940</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shwetha940"/>
    <language>en</language>
    <item>
      <title>How to fit on one page using mpdf?</title>
      <dc:creator>Shwetha940</dc:creator>
      <pubDate>Wed, 29 Sep 2021 06:15:21 +0000</pubDate>
      <link>https://dev.to/shwetha940/how-to-fit-on-one-page-using-mpdf-37nj</link>
      <guid>https://dev.to/shwetha940/how-to-fit-on-one-page-using-mpdf-37nj</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/64762797/how-to-fit-on-one-page-using-mpdf" rel="noopener noreferrer"&gt;
               How to fit on one page using mpdf?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 10 '20&lt;/span&gt;
            &lt;span&gt;Comments: 5&lt;/span&gt;
            &lt;span&gt;Answers: 1&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/64762797/how-to-fit-on-one-page-using-mpdf" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          -1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;&lt;strong&gt;Here is my code&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;require_once './vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();
$mpdf-&amp;gt;AddPage();
$mpdf-&amp;gt;WriteHTML($html);
$fname = date('Y-m-d-h-i-s') . "-" . ".pdf";
$mpdf-&amp;gt;Output(__DIR__ . "/pdf/" . $fname);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But, It's 2 pages. I want to fit on one page.&lt;/p&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/64762797/how-to-fit-on-one-page-using-mpdf" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>mPDF generate data only one page</title>
      <dc:creator>Shwetha940</dc:creator>
      <pubDate>Wed, 29 Sep 2021 04:17:52 +0000</pubDate>
      <link>https://dev.to/shwetha940/mpdf-generate-data-only-one-page-168j</link>
      <guid>https://dev.to/shwetha940/mpdf-generate-data-only-one-page-168j</guid>
      <description>&lt;p&gt;How to setting mPDF generate all data only in one page? I already create function to generate my data to pdf file like&lt;/p&gt;

&lt;p&gt;$fileName = "installment_".generateUuid().".pdf";&lt;br&gt;
$pdf = LARAVELPDF::loadView('invoice.invoice-wa', $this-&amp;gt;strukData);&lt;br&gt;
$pdf-&amp;gt;save(storage_path('app/public/'.$fileName));&lt;br&gt;
I used &lt;a href="https://github.com/niklasravnsborg/laravel-pdf"&gt;https://github.com/niklasravnsborg/laravel-pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And my code output 2 page like&lt;/p&gt;

</description>
      <category>php</category>
    </item>
  </channel>
</rss>
