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 ( experim...
Power Apps
Unanswered

PDF function ( experimental) in Canvas app not working with margins and is cutting text

(0) ShareShare
ReportReport
Posted on by 24

Hi!

 

Yes i know, I should have never started using the PDF function in the first place. I tought it was a great idea as building a document with Word developer looked time consuming and a bit difficult.  However, looking back now it would have been the best idea.

 

Anyway, I really need some help! I have built an canvas app that the users enter data i several screens. This turns out to be a A4 document on the last screen. It is thereafter a flow that sends the document for QA and signature in Docusign. Everything is working, OH WELL, almost. The pdf fuction is cutting text. This means that when the page turns it does not realize that the text need to follow. This I have used a work around with building space between the various text fields ect. But if you have a better solution I would really like to know it! I have used a container for the pdf fuction and there are text labels in the pdf ( not forms ect).

 

So to my other problem. The app suddely cut the marin of the pdf. This has worked before, but now it suddenly puts all the text to the left side. So how can I fix this asap? 

sandy7_0-1715350014883.png

This is a view of the onselect code for the "show pdf" button.

 

In addition there is also the trigger for the flow that sends the pdf out of canvas app

sandy7_1-1715350173027.png

What am I doing wrong? and what should the margin be? I have tried to put the margin to 0mm. This does not help. I have also tried to remove the margin totally as I have read that can also be done. Still does not work.

 

PLEASE help me ❤️

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    HI @sandy7 ,

     

    You may try reverting to an earlier authoring version: Change authoring version for Power Apps Studio - Power Apps | Microsoft Learn

  • sandy7 Profile Picture
    24 on at

    But I have made several changes to the app after i first set up the pdf function. Will this not affect the rest of the app?

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @sandy7 ,

     

    No, changes to the authoring version should not affect those. Also you can change back to the current authoring version if any issues do occur.

  • sandy7 Profile Picture
    24 on at

    Hi, I ended up trying several things here. The final solution for the margin was to take away the code ( margin code) completely on the onselect button of the "Create PDF" as well as the code on onselect for "send for QA" (the flow). I thereafter replaced the code and ensured that the code for margin was " Margin: "25mm 25mm 0mm 25mm" on  both the button and the flow. This made a fully functional A4 margin in the document.

     

    However, this does not fix my issue with the PDF cutting text from time to time. Do you know if there is any code or solution for this? the document can be anywhere from 3-5 pages. It cuts text sometimes in stead of moving the text to a new page.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard