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 Apps / PDF Function in Experi...
Power Apps
Unanswered

PDF Function in Experiments

(0) ShareShare
ReportReport
Posted on by

 

Hi

i used PDF function ,while  extracting data ,it is not showing properly .i checked all properties in Inputbox all are aligned properly.

any idea what was the problem

below is code:

Office365Outlook.SendEmailV2(
User().Email,
DataCardValue18.Text ,
"Your :'" & DataCardValue18.Text & "' .pdf is attached",
{
From: "abc@gmail.com",
Attachments: Table(
{
ContentBytes: PDF(
'screen1',
{
Orientation: PaperOrientation.Landscape,
Size: PaperSize.A4,
DPI: 150,
ExpandContainers: true 
}
),
Name:DataCardValue18.Text & " .data.pdf"
}
)
}
);

 

venky232_1-1669367695968.png

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    Hi @venky232 ,

    This blog of mine should assist your here.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • venky232 Profile Picture
    on at

    i used same code of yours ,but same problem 2 row line it is not showing ..if i use print() it is showing 2nd row line also.

    i used multi line in properties

    venky232_0-1669380532556.png

     

  • venky232 Profile Picture
    on at

    i have followed the video (2) Power Apps PDF Function Introduction | Create PDF Documents from Screens, Galleries & Containers - YouTube

    to save screen as PDF and send mail.

    but here it is printing only 1st line from text inputbox but not showing 2nd line in pdf print.

    but when i preview the app ,2nd line is visible.

    any idea how to fix this 

    @Reza 

    @RezaDorrani

    @WarrenBelz 

    @Drrickryp 

    @RandyHayes 

  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    @venky232 ,

    What is it you are printing and does it fit on the page ?

  • venky232 Profile Picture
    on at

    Yes only input text box it fits perfectly in screen.

     

     

  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    @venky232 

    What is the Height of the Text box and the font size ? Can you also post a wider/higher screenshot.

  • venky232 Profile Picture
    on at

    Height 1.2

    Font size 8

    Top 5 bottom 5

    Not showing 2 lines here

  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    @venky232 

    Maybe increase the Height and see if that helps. This is about the screen print rendering the same as the screen view. The PDF function is new and I suspect has some initial bugs.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard