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 / Insert image into file...
Power Apps
Unanswered

Insert image into file using PCF

(0) ShareShare
ReportReport
Posted on by

Hi,

I never have created a PCF before, and I would like to create one that'll help me, in a canvas app, in a file preview section (ideally PDF Preview), drag and drop an image into that very file, be able to resize it and move it around to finally save or print the output.

Thank you for your help. 

I have the same question (0)
  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    your scenario will not benefit from a PCF control. Ideally this kind of scenario can be implemented using a web resource, your problem is to find the libraries to implement what you want to achieve.

  • Community Power Platform Member Profile Picture
    on at

    Thank you so much for your reply!

    Do you mean HTML based web resources?

  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    yes

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @Nebugadnizar , 

     

    Since you are already in a Canvas App, how about using a PDF-Viewer control : https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-pdf-viewer?WT.mc_id=BA-MVP-5004107

    On top of it should be possible to place a PCF (you would need to make one), which is transparent but allows you to move an image around using Drag&drop and resize. 
    Finally you can use PDF() PowerFx function applied for a container containing both the PDF Viewer and the PCF: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/how-to/pdf-function?WT.mc_id=BA-MVP-5004107

    The open point: what library to use to implement the PCF.  A fast "google" lead me to this, but I have have used it: https://konvajs.org/docs/sandbox/Image_Resize.html
    Hope it helps!

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @DianaBirkelbach ,

    That is actually quite an interesting approach!

    I will give it a try (along with some other leads I'm exploring) and will let you know about the outcome.

    Many thanks for the help.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard