<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem downloading PDF budget template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1163994#M43269</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/943867"&gt;@ViniBernardo&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do I get you right that the PDF is actually a HTML file and once a user clicks on "download", it getting converted to a PDF?&lt;BR /&gt;&lt;BR /&gt;If so - it's most likely a conversion error of the HTML-to-PDF library. I've played around with such converters in the past and I had the best results with wrapping all CSS in a&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;@media print{
 /* YOUR CSS styles for the PDF */
}&lt;/LI-CODE&gt;
&lt;P&gt;media query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: Since PDFs are print, a recommended practise is to use 'mm'/'inch' and 'pt' instead of 'px'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is actually a PDF than it's a PDF error and you might want to save the file as PDF again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 15:30:36 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2025-06-12T15:30:36Z</dc:date>
    <item>
      <title>Problem downloading PDF budget template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1163451#M43254</link>
      <description>&lt;P&gt;Recently, some custom budget templates (HTML) are causing problems: When downloaded as a PDF, the tables, texts, and banners are overlapping each other.&lt;/P&gt;&lt;P&gt;I don't know if this is due to the PDF itself or the code. I need help.&lt;BR /&gt;&lt;BR /&gt;follow a screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViniBernardo_0-1749654081843.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/148243i75246F075CAD29CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViniBernardo_0-1749654081843.png" alt="ViniBernardo_0-1749654081843.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 15:03:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1163451#M43254</guid>
      <dc:creator>ViniBernardo</dc:creator>
      <dc:date>2025-06-11T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem downloading PDF budget template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1163994#M43269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/943867"&gt;@ViniBernardo&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do I get you right that the PDF is actually a HTML file and once a user clicks on "download", it getting converted to a PDF?&lt;BR /&gt;&lt;BR /&gt;If so - it's most likely a conversion error of the HTML-to-PDF library. I've played around with such converters in the past and I had the best results with wrapping all CSS in a&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;@media print{
 /* YOUR CSS styles for the PDF */
}&lt;/LI-CODE&gt;
&lt;P&gt;media query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: Since PDFs are print, a recommended practise is to use 'mm'/'inch' and 'pt' instead of 'px'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is actually a PDF than it's a PDF error and you might want to save the file as PDF again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:30:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1163994#M43269</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2025-06-12T15:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem downloading PDF budget template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1166185#M43314</link>
      <description>&lt;P&gt;Hi Anton&lt;/P&gt;&lt;P&gt;Thank you very much for the tip.&lt;/P&gt;&lt;P&gt;I was seriously going crazy with this.&lt;/P&gt;&lt;P&gt;The PDF problem has finally been solved, now only the page break part remains.&lt;/P&gt;&lt;P&gt;But the worst is over hehe.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 12:00:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-downloading-PDF-budget-template/m-p/1166185#M43314</guid>
      <dc:creator>ViniBernardo</dc:creator>
      <dc:date>2025-06-18T12:00:23Z</dc:date>
    </item>
  </channel>
</rss>

