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 Pages
Unanswered

View PDF Document

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am currently using dataverse and in the form, users upload a pdf document. I want to be able to use iframe to view the pdf on the page rather than the user needing to download it to view it. Or if you have another solution that would help me a lot! 

 

The iframe code I am using is incorrect since the url is to dowload it, but I dont know how to refer to the files of the pdf on dataverse. 

 

 <iframe src="{{ (liquidcode that i use go here).url }}"  height="100%" width="100%" allowfullscreen></iframe>

 

Thank you

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

    Hi @setzav,

     

    can you try these methods mentioned here: https://stackoverflow.com/questions/17784037/how-to-display-pdf-file-in-html



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • setzav Profile Picture
    on at

    Thank you for your reply!

     

    How do I know where the source of the file column is saved for dataverse?

  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    Hi @setzav,

     

    you will probably have to use FetchXML and further adjust it to show as you want.

    MS Learn for a file column and fetchXML: https://learn.microsoft.com/en-us/power-pages/configure/file-column



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • setzav Profile Picture
    on at

    Sorry to bother you  

     

    The fetchXML provided only has name, url (which is only for download) and size. How can I find the source of where the pdf is saved to make it viewable?

     

     

  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    Hi @setzav,

     

    could you not use the url and provide it as source?

    If it not has to be dynamically you can also upload the PDFs as a webfile to the page itself.

  • setzav Profile Picture
    on at

    Hello,

     

    The url is only a downloadable link for the pdf, I want to allow the user to view the pdf without needing to click on the link to download it then view it. 

     

    How can I dynamically upload the PDF as a webfile?

     

    I really appreciate your help, Thank you!!

  • Rajath_mk Profile Picture
    93 on at

    Hi @setzav , 

     

    The platform doesn't inherently support direct PDF visualization within forms which is quite frustrating. I could not use Canvas Custom pages as the PDF viewer control option wasnt available. So had to embed a canvas app within the form.

    I loosely followed this Blogpost by Pieter to get the “ModelDrivenFormIntegration” component into my canvas app. Once that was there, I just had to add the “PDF Viewer” into the canvas app. Then in the formula bar of Document property,I just queried the pdf file. In my case, it was a Safety data sheet connected to the form line item. 

     

    [@ModelDrivenFormIntegration].Item.'SDS File'.Value

     


    Also make sure that in the display settings for the canvas app to turn off the Scale to fit option as the PDF will look fuzzy when its published with it turned on. Then  you just have to publish the form and ignore any errors you see, it will be working when you play the app. 

     

    I also tried using a http web request to dynamically get the attachment and tried a html response to vizualize it in a new tab, it worked only on PC's but downloaded the file on mobile. 

     

    Hopefully this helps you. Let me know how you go or if you have any questions.

     

    Rajath_mk_0-1706135013245.png

     

    Regards,

    Raj

  • setzav Profile Picture
    on at

    ()

  • setzav Profile Picture
    on at

    Hello, 

     

    Thanks for your reply!

     

    how do i get the file path for my PDF document (dataverse) in the power automate flow?

     

    Thanks!

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard