web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Image not appearing wh...
Power Automate
Unanswered

Image not appearing when converted to PDF

(0) ShareShare
ReportReport
Posted on by

Hello! I'm on an app that I'm developing, I need to place a button that takes info from the app and places it into a PDF. The flow works well but, now I'm trying to send a Image to the PDF too, but when I open the PDF, the image appears with a Red X. Any help?

 

This is my Flow:

AngeloLopes_0-1658997514796.png

 

This is my HTML control content:

 

"<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
</head>


<body style='margin: 10px 10px 10px 10px; font-family: Verdana, Geneva, Tahoma, sans-serif;'>

<div style='width:100%;height: auto; background-color: rgb(16,6,159); color:white; text-align: center; font-weight: bold'>

Polopiqué - Modelos e Operações

</div>

<table>
<tr>
<th style='padding-left: 18px; font-weight: bold; text-align:center'><b>Modelo " & " " & varDetalhes.Cliente & " " & varDetalhes.Modelo & " " & varDetalhes.Designação & "
</th>
<th>

 

 

 

// Here is the problem.  


<img src='https://www.polopique.pt/media/images/logotipo.jpg' alt='logotipo' width='120'>

 

 

 

 

</th>
</tr>
</table>
<br>


<center>
<table>
<tr style='background-color: rgb(199,199,199)'> <th> </th><th>Operação</th> <th>Máquina</th> <th>Tempo</th> <th>Prod/Hora</th></tr>

" & Concat(
colModOp;
"<tr style='text-align: center'>
<td style='width: 50px ; '> " & Ordem & " </td>
<td style='width: 200px; text-align:left'> " & LookUp(
Operações;
RefOperação.Value = Operação;
Descrição
) & " </td>
<td style='width: 100px'> " & LookUp(
Operações;
RefOperação.Value = Operação;
Máquinas.Value
) & " </td>
<td style='width: 80px'> " & Tempo & " </td>
<td style='width: 50px'> " &
With(
{
_min: Value(
Left(
Tempo;
2
)
) * 60 * 1000;
_sec: Value(
Mid(
Tempo;
4;
2
)
) * 1000;
_ms: Value(
Right(
Tempo;
3
)
)
};
RoundUp(
3600000 / (_min + _sec + _ms);
0
)
) & " </td></tr>"
) & "
</table>
</center>

<br>

<div style='width:100%; height: auto; background-color: rgb(16,6,159); color:white; text-align: center; font-weight: bold;'> " & Now() & " </div>

</body>
</html>"

 

Categories:
I have the same question (0)
  • Verified answer
    Akash17 Profile Picture
    549 Super User 2024 Season 1 on at

    Hi @Anonymous 

    First Thing to notice is Your PowerApps(V2) trigger there you have input type as text that is PDFbody in your case so that is 1 reason of getting error

    so You just click on plus icon and take one more input type as file like

    Screenshot (33).png

    Now To FileContent you pass your image URL from powerapps

    Note:

    insted of sending image directly from app you store image into OndDrive or sharepoint and this URL you pass to the FileContent

    Once this done 

    Take next action as a Get file content using path of OneDrive (stored your image in one drive ) and from dynamic content select File Content

    Screenshot (35).png

    For more please refer

    https://www.youtube.com/watch?v=KGLtKl97OGo&t=489s

     

     

    Please Accept as a solution if you got your answer and give like

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard