<?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: Convert HTML files to PDF in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5282283#M17188</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/669902"&gt;@ArneVer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;AS per my understanding and findings, Fabric runs in managed environment so there is no built in fabric API that converts HTML to PDF.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Workaround for this problem:&lt;BR /&gt;&lt;/STRONG&gt;Fabric NoteBook&amp;nbsp; &amp;nbsp; &amp;nbsp;----&amp;gt;(Read HTML from Lakehouse) ----&amp;gt; Azure Function (PlayWrtie +Chromium) ----&amp;gt; Convert HTML to PDF&amp;nbsp; ----&amp;gt; Save PDF to ADSL /OneLake&lt;BR /&gt;&lt;BR /&gt;2nd Option similar approach but use Power Auomate Flow instead Azure Function.&lt;BR /&gt;&lt;BR /&gt;Lakehouse ----&amp;gt; Power Automate ----&amp;gt;HTML to PDF converter ----&amp;gt;Onelake / Sharepoint&lt;BR /&gt;&lt;BR /&gt;Please let me know how this goes on.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;&lt;BR /&gt;If this helps,&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;✓ Mark as Kudos | Help Others&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2026 16:52:31 GMT</pubDate>
    <dc:creator>Murtaza_Ghafoor</dc:creator>
    <dc:date>2026-07-09T16:52:31Z</dc:date>
    <item>
      <title>Convert HTML files to PDF</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5281374#M17178</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently looking for a technique to convert HTML files stored in a Microsoft Fabric Lakehouse into PDF files.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The goal is to preserve both the content and the original formatting/layout as accurately as possible.&lt;/P&gt;&lt;P&gt;I initially tried using xhtml2pdf, but the HTML files contain a large embedded CSS stylesheet (Bootstrap-like grid, media queries, advanced selectors such as :not() and attribute selectors). This resulted in CSS parsing errors. After removing the styling, the PDF could be generated successfully, but most of the original layout was lost.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also evaluated:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;WeasyPrint,&lt;/STRONG&gt; but it requires OS-level libraries (e.g. fontconfig) that are not available in my Fabric environment.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Playwright,&lt;/STRONG&gt; but running Chromium inside a Fabric Notebook appears to be challenging due to runtime and browser binary limitations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since preserving the layout is a hard requirement, I'm looking for recommendations from anyone who has implemented HTML-to-PDF conversion in Microsoft Fabric while maintaining browser-quality rendering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 10:09:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5281374#M17178</guid>
      <dc:creator>ArneVer</dc:creator>
      <dc:date>2026-07-09T10:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML files to PDF</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5282283#M17188</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/669902"&gt;@ArneVer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;AS per my understanding and findings, Fabric runs in managed environment so there is no built in fabric API that converts HTML to PDF.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Workaround for this problem:&lt;BR /&gt;&lt;/STRONG&gt;Fabric NoteBook&amp;nbsp; &amp;nbsp; &amp;nbsp;----&amp;gt;(Read HTML from Lakehouse) ----&amp;gt; Azure Function (PlayWrtie +Chromium) ----&amp;gt; Convert HTML to PDF&amp;nbsp; ----&amp;gt; Save PDF to ADSL /OneLake&lt;BR /&gt;&lt;BR /&gt;2nd Option similar approach but use Power Auomate Flow instead Azure Function.&lt;BR /&gt;&lt;BR /&gt;Lakehouse ----&amp;gt; Power Automate ----&amp;gt;HTML to PDF converter ----&amp;gt;Onelake / Sharepoint&lt;BR /&gt;&lt;BR /&gt;Please let me know how this goes on.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;&lt;BR /&gt;If this helps,&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;✓ Mark as Kudos | Help Others&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 16:52:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5282283#M17188</guid>
      <dc:creator>Murtaza_Ghafoor</dc:creator>
      <dc:date>2026-07-09T16:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML files to PDF</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5287428#M17212</link>
      <description>&lt;P&gt;Fabric Lakehouse and Notebooks do not provide any built‑in HTML→PDF, so the safe way is to read the HTML out of the Lakehouse and convert it to PDF in another environment (for example a normal browser’s “Print → Save as PDF” or an external HTML‑to‑PDF service).&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2026 06:18:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5287428#M17212</guid>
      <dc:creator>Kagiyama_yutaka</dc:creator>
      <dc:date>2026-07-12T06:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML files to PDF</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5296923#M17258</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/669902"&gt;@ArneVer&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1550082"&gt;@Kagiyama_yutaka&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/695681"&gt;@Murtaza_Ghafoor&lt;/a&gt;&amp;nbsp; for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 12:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5296923#M17258</guid>
      <dc:creator>v-abhinavmu</dc:creator>
      <dc:date>2026-07-15T12:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML files to PDF</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5299285#M17267</link>
      <description>&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/117140"&gt;@User&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Preserving the original HTML layout (especially with complex CSS frameworks like Bootstrap) typically requires a browser-based rendering engine. Libraries such as xhtml2pdf are suitable for simple HTML but often struggle with modern CSS features.&lt;/P&gt;&lt;P&gt;Based on your findings, here are a few approaches you could consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Use &lt;STRONG&gt;Playwright&lt;/STRONG&gt; or &lt;STRONG&gt;Puppeteer&lt;/STRONG&gt; in an environment that supports Chromium (such as Azure Functions, Azure Container Apps, Azure App Service, or a VM). Your Fabric Notebook can then invoke this service to generate high-fidelity PDFs.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If you're already using Azure, consider building a lightweight HTML-to-PDF microservice and calling it from a Fabric Pipeline or Notebook. This keeps the rendering separate from Fabric's runtime limitations.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If your HTML is generated from a reporting process, another option is to render the PDF outside Fabric before storing it in the Lakehouse.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Unfortunately, Fabric Notebooks currently don't expose the OS-level dependencies required by tools such as &lt;STRONG&gt;WeasyPrint&lt;/STRONG&gt;, nor are they designed to run headless Chromium reliably. Because of this, browser-based rendering directly inside Fabric isn't officially supported today.&lt;/P&gt;&lt;P&gt;For more information:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Playwright: &lt;A href="https://playwright.dev/python/" target="_blank" rel="noopener"&gt;https://playwright.dev/python/&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;WeasyPrint: &lt;A href="https://weasyprint.readthedocs.io/" target="_blank" rel="noopener"&gt;https://weasyprint.readthedocs.io/&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Microsoft Fabric Notebooks: &lt;A href="https://learn.microsoft.com/fabric/data-engineering/how-to-use-notebook" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/fabric/data-engineering/how-to-use-notebook&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Could you also clarify:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Are the HTML files generated within Fabric, or are they imported from another application?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is the PDF generation required entirely inside Microsoft Fabric, or would calling an external Azure service be an acceptable solution?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Approximately how many HTML files do you need to convert (e.g., tens, hundreds, or thousands per day)?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This information will help determine the most suitable and scalable approach for your scenario.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;H4&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Helpful? Give a Kudos &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; — keep the community growing.&lt;/STRONG&gt;&lt;/H4&gt;&lt;H4&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Solved your issue? Mark this as the Accepted Solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/STRONG&gt;&lt;/H4&gt;&lt;H4&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Prince Singh | Data Science &amp;amp; Microsoft Fabric Enthusiast&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 16 Jul 2026 07:44:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Convert-HTML-files-to-PDF/m-p/5299285#M17267</guid>
      <dc:creator>Prince0011</dc:creator>
      <dc:date>2026-07-16T07:44:40Z</dc:date>
    </item>
  </channel>
</rss>

