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 Viewer - Multiline...
Power Apps
Unanswered

PDF Viewer - Multiline Card

(0) ShareShare
ReportReport
Posted on by 5

Hi all,

 

I have a PDF Viewer that uses the PDF function to display the contents of a form that lives inside a container. For the most part, this is working great, but I have two issues that keep coming up:

 

1. There is a multiline text box in the form and the PDF only ever shows the first line of text, no matter how much I increase the height of the actual text box. Any idea how to resolve?

2. Sometimes lines of text get cut off and sit part way between page 1 and page 2. Is there a way to gain greater control over the formatting of the PDF to get text to overflow to the next page when it won't fit on the current one?

 

Thanks!

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @hcross95 

     

    How are you generating the PDF? I would like to know since this is crucial to make accurate suggestions.

    As of now here's what I would say:

    For question 1:

     (Option 1) Find a text wrapping generator in your PDF generation settings

     (Option 2) Put all text entered in the textbox to a Label that has 

    cha_cha_0-1670048483931.png

     

    For question 2:

    1. How many multiline textboxes do you have? If only one, you can do it by trimming output on Page 1 and continuing to Page 2. You can use Split, Concat, FirstN, and LastN for this.

    cha_cha_1-1670049401649.png

    In the example above, we will be limiting only the first five text on page1 label then on page2 label, we will display the remaining of the actual text from the input text box with named TextInput3.

     

     

    //Code for Page1 Label
    Concat(FirstN(Split(TextInput3.Text," "),5),Result," ")
    
    
    //Code for Page2 Label
    Concat(LastN(Split(TextInput3.Text," "),CountRows(Split(TextInput3.Text," "))-5),Result," ")

     

     

     


     ✔️
    Just in case you think my answer helped you solve your problem, please mark/accept this as a SOLUTION.   This helps community members if they experience a similar issue in the future.

     

     🔗
      🕸  bistek.space  🐦 @cha_bistek  📺  @BisTekSpace 

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