cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jayant_2203
Helper II
Helper II

Convert to PDF issue

Hi All,

 

I am trying to create a pdf from PowerApps data. I have created the html in an html editor and the output is as expected but when i use the flow to convert the html to pdf it gives a very different output. Can you guys tell me what am I doing wrong here?

Below is the image to how it looks in html format 

Jayant_2203_0-1632222930222.png

Below is how it looks in pdf

Jayant_2203_1-1632222952676.png

Below is the code for html

<!DOCTYPE html>
<html>

 

<head>
  <title>Page Title</title>
<style>
   .textc {
  display: inline-block;
 
}
.text1{
width: 48%;
display: inline-block;}
.text2{
width: 48%;
display: inline-block;}
.labelborder {
  border : 1px solid black;
  width: 150 px;
  overflow: hidden;
  display: inline-block;
}
</style>
</head>
<body>
  <h1>
    Customer, accounts & channels
  </h1>
  <div class="textc">
     <div class="text1">
    <p >Strong Hold Accounts </p>
    <label class="labelborder"> Paragraphs are the building blocks of papers. Many students define paragraphs in terms of length: a paragraph is a group of at least five sentences, a paragraph is half a page long, etc. In reality, though, the unity and coherence of ideas among sentences is what constitutes a paragraph. A paragraph is defined as “a group of sentences or a single sentence that forms a unit” (Lunsford and Connors 116). Length and appearance do not determine whether a section in a paper is a paragraph. For instance, in some styles of writing, particularly journalistic styles, a paragraph can be just one sentence long. Ultimately, a paragraph is a sentence or group of sentences that support one main idea. In this handout, we will refer to this as the “controlling idea,” because it controls what happens in the rest of the paragraph.</label>
    </div>
     <div class="text2">
    <p >Growth Actions </p>
  <label class="labelborder"> Paragraphs are the building blocks of papers. Many students define paragraphs in terms of length: a paragraph is a group of at least five sentences, a paragraph is half a page long, etc. In reality, though, the unity and coherence of ideas among sentences is what constitutes a paragraph. A paragraph is defined as “a group of sentences or a single sentence that forms a unit” (Lunsford and Connors 116). Length and appearance do not determine whether a section in a paper is a paragraph. For instance, in some styles of writing, particularly journalistic styles, a paragraph can be just one sentence long. Ultimately, a paragraph is a sentence or group of sentences that support one main idea. In this handout, we will refer to this as the “controlling idea,” because it controls what happens in the rest of the paragraph.</label>
    </div>
  </div>
  <hr>
</body>

 

</html>

 

2 REPLIES 2
PrasadAthalye
Community Champion
Community Champion

What PDF action you are using to convert? It may not support all HTML tags. Are you referring to content stacking on top of each other instead of side by side?

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

@PrasadAthalye i am using convert to pdf action of one drive. I want to place content side by side each other with dynamic value from my labels in powerapps. It seems that html file getting created is fine but the pdf does not seem to apply the same styles. I even tried inline styles.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,825)