Dear community,
using a file attribute (https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/file-attributes) it is possible to upload files to CDS, namely PDFs.
Is there any possibility to display a PDF file from CDS using Power Apps PDF Viewer Control https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer or just PDF.js https://mozilla.github.io/pdf.js/.
What I am trying to achieve is a file preview in a model driven app.
Today I implemented a pdf preview in a model driven app based on a canvas app.
Here are the full steps:
https://sharepains.com/2023/07/03/pdf-preview-in-a-model-driven-apps/
It avoids the coded option of PCF controls.
Additional functionality can be added to model-driven apps by adding PCF controls. This PCF attachments control allows the user to open PDF files and read them in the browser.
Link to PCF Control
https://github.com/OOlashyn/PCF-AttachmentGalleryControl
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473