web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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,490 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
    Microsoft Employee on at

    Thank you so much for your reply!

    Do you mean HTML based web resources?

  • Guido Preite Profile Picture
    1,490 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard