Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

 

  • WarrenBelz Profile Picture
    146,522 Most Valuable Professional on at
    Re: PDF Function in Experiments

    @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

  • venky232 Profile Picture
    on at
    Re: PDF Function in Experiments

    Height 1.2

    Font size 8

    Top 5 bottom 5

    Not showing 2 lines here

  • WarrenBelz Profile Picture
    146,522 Most Valuable Professional on at
    Re: PDF Function in Experiments

    @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
    Re: PDF Function in Experiments

    Yes only input text box it fits perfectly in screen.

     

     

  • WarrenBelz Profile Picture
    146,522 Most Valuable Professional on at
    Re: PDF Function in Experiments

    @venky232 ,

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

  • venky232 Profile Picture
    on at
    Inputbox multiline not showing

    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 

  • venky232 Profile Picture
    on at
    Re: PDF Function in Experiments

    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

     

  • WarrenBelz Profile Picture
    146,522 Most Valuable Professional on at
    Re: PDF Function in Experiments

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard