Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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. 

  • Community Power Platform Member Profile Picture
    on at
    Re: Insert image into file using PCF

    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.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Insert image into file using PCF

    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!

     

     

  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at
    Re: Insert image into file using PCF

    yes

  • Community Power Platform Member Profile Picture
    on at
    Re: Insert image into file using PCF

    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
    Re: Insert image into file using PCF

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 55 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 42 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 31 Super User 2025 Season 1

Overall leaderboard