cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GiselyA
Regular Visitor

Convert HTML to PDF not working

Hey guys,

I'm trying to convert an html to pdf, my html is fine but my pdf file is always blank. What am I missing??

 

Here is my html code: 

 

 

<!DOCTYPE html>
<html>
  <head>
    <style>
      .header {
        display: flex;
        align-items: center;
        gap: 200px;
      }
      h4 {
        position: absolute;
        font-family: Montserrat;
        font-weight: normal;
      }
    </style>
  </head>
  <body>
    <div id="header">
      <img width="150" src="data&colon;image/jpeg;base64,@{outputs('Compose')}" />
      <div>
        <h4><strong> Solicitações</strong> - MATRIX</h4>
      </div>
    </div>
  </body>
</html>

 

 

my html file:

html.png

my pdf file:

pdf.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @GiselyA ,

 

The point is that the 'convert file' action do not support CSS style. Please try other actions something like "Convert HTML to PDF":

 

vbofengmsft_0-1655178285662.png

 

Best Regards,

Bof

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @GiselyA ,

 

The point is that the 'convert file' action do not support CSS style. Please try other actions something like "Convert HTML to PDF":

 

vbofengmsft_0-1655178285662.png

 

Best Regards,

Bof

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (5,680)