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 / Change ActualZoom of P...
Power Apps
Unanswered

Change ActualZoom of PDF Viewer, or force it to load zoomed in? (changing zoom crashes on iOS)

(0) ShareShare
ReportReport
Posted on by 3

I'm using the PDF Viewer in a app to be used on iPad.

 

As someone else found in 2017, changing the zoom of the PDF Viewer on iOS tends to crash the app and force it to restart. This happens whether using the built-in controls or making custom zoom controls.

 

As a workaround, I'd like to have the pdf be zoomed in by default, however even when changing the Zoom attribute, the PDF Viewer always loads to fit the width of the area.

 

Is there any way to force the PDF Viewer to start zoomed in, perhaps by modifying the ActualZoom attribute?

I don't see anywhere that ActualZoom can be modified.

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at

    Hi @RGartman ,

     

    It seems that I have reproduced your issue. I will try to discuss this issue with others and see if they have further suggestions. Sorry for the inconvenience.

     

    Regards,

    Mona

  • denglish Profile Picture
    128 on at

    @v-monli-msft-- Any update on this? In my app, the PdfViewer is still loading up set to Zoom.FitWidth, regardless of what the Zoom attribute is set to. Setting the Zoom attribute that changes OnVisible also does not work.

  • MC-09121519-0 Profile Picture
    on at

    @v-monli-msft , same issue/requirement here. Any update?

  • Nico_0710 Profile Picture
    171 on at

    Hey,

    has anyone solved the problem ?

  • MC-09121519-0 Profile Picture
    on at

    Hi, If I remember well, I needed to start a timer object when the apps is starting that sets a variable for the zoom level. The PDF viewer Zoom property is set to this variable. The idea is you need a duration of the timer object that is long enough for the PDF viewer to load the PDF and then set the zoom attribute. If the PDF is not loaded and you set the zoom, it will not work. 

     

    Also, if you want to have zoom level default by user, you can use LoadData/SaveData to save and retreive user zoom level preference.

     

    Hope this help.

  • Nico_0710 Profile Picture
    171 on at

    Hey,

    Here is a brief explanation of what I need. I have two screens in my app. On the first one, a PDF file is selected which is to be displayed on screen two. It is then displayed on screen 2. I have already tried your approach and set the AutoStart property of the timer to Set(varZoom, Zoom.FitBoth). I have set the zoom property of the PDF to varZoom. However, it does not work. Have I done something wrong or is there another approach that should work?

     

  • krodgers Profile Picture
    45 on at
    If know this thread is old but the problem is still there. I did find a work around so the way I have this working is having the Zoom look at a variable. Everytime I select a file in a gallery to view the PDF I first set the variable for Zoom to Zoom.FitWidth and then there is about a 1 second delay and then I set the variable for Zoom to Zoom.FitHeight and it fixes the Zoom for the PDF. I attached a screenshot of the Onselect code for the gallery.
     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard