Forum Discussion

ViewP's avatar
ViewP
Frequent Visitor
2 years ago
Solved

Question about Viewing PDF in Power BI without converting it to base64

Hi!  
I'm not sure I should post this here or in Power Apps Forum since it is related to both of them.

I'm trying to use Power BI  to view PDF based on data selected in slicer

For Example , 

Branch Number

1
2
3

4

Basically, make visual show PDF of Branch's layout regarding to Branch Number in slicer that was selected.
My database is in Sharepoint Library / Onedrive folder that contain PDF files named according to the Branch Number.

I searched about my problem in this forum and found  that I need to either use 3rd party visual or convert to base64.

However, I can also use Power apps and heard that it can be embedded in Power BI.
The question is can I use Power apps as pdf viewer for power BI  without converting it to base64 ? 
If it is possible, could you please help explain how to do it ? (such as data needed for Power BI to pass to Power Apps and coding in Power Apps to read it )

Thank you in advance.
 

8 Replies

  • Dinesh_Suranga's avatar
    Dinesh_Suranga
    Icon for Continued Contributor rankContinued Contributor

    Hi ViewP ,
    Did you try to direct to a url when you click a button in power bi?

    It does not show your pdf in the report but once you ckick the button after selecting the Branch Number, it will open pdf in your web browser.

    Thanks.

    • ViewP's avatar
      ViewP
      Frequent Visitor

      Hi Dinesh_Suranga 
      Thanks for replying.
      I looked into it , But user prefer to view it in power BI as they need to view other visual in the same page at the same time.

    • ViewP's avatar
      ViewP
      Frequent Visitor

      christinepayton 

      Thanks ! this is working 
      However, the text in PDF still look blurry when at 0% zoom and need to zoom in the see clear text
      It is  not good as open directly from the website.
      This happend only when viewing Power BI in web browser like chrome or edge.

      Any Idea how to fix this? Thanks!
      But everything is crystal clear in Iphone and Ipad.

      • christinepayton's avatar
        christinepayton
        Icon for Most Valuable Professional rankMost Valuable Professional

        Hmm I would try fiddling with the scaling options. In Power BI, in the View tab, Page view dropdown, I would try setting it to "actual size" for your report vs fitting to width/height, my guess is it's the scaling that's causing the blurriness... but it might also be happening just for the app visual embed if it's trying to scale that, I'm not sure. There's also a canvas app size scaling feature you could try turning off, though that one's usually off by default I think.