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 / Signature from PenInpu...
Power Apps
Answered

Signature from PenInput into a PDF?

(0) ShareShare
ReportReport
Posted on by 22

Hi everyone,

 

im stuck on creating a power automate flow that gets a new sharepoint item (name, date, signature etc) and converts it into a PDF.

I’ve got the conversion to PDF working fine using the Populate a word document / Convert a word document steps.

it’s the signature from the PowerApp penInput I can’t get!

I can see it as an image (thumbnail) in my SP list, but I just can’t get it to convert into a file that gets added to the PDF

HELP!

Surely there has to be a simple way.

 

so my flow is triggered : when a new Sharepoint item is created.

all Dynamic fields are fine.

 

help would be greatly appreciated

 

thanks

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,315 Most Valuable Professional on at

    Hi @Smorley80 ,

    You need to send JSON string of the pen input to the Flow, then (this is the important part), create a temporary jpg file in OneDrive using base64ToBinary from the JSON, get the Content of the temporary file, then use that content in your Word Merge Image control.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • Smorley80 Profile Picture
    22 on at

    Thanks @WarrenBelz 

    do you have step by step instructions?

  • WarrenBelz Profile Picture
    155,315 Most Valuable Professional on at

    @Smorley80 ,

    I will not be on my PC for some time. If you have a go, I can correct any errors.

  • Smorley80 Profile Picture
    22 on at

    Thanks @WarrenBelz 

    I've had a go and am even more confused.

    I understand the logic of grabbing the 64 code then converting it to an image and then inserting that image into the flow. But I just cannot get it.

    What do i set the SPO Column type to for the PenInput? Multiline text?

    Then what do I use in the flow?

    Here is my flow which runs successfully but nothing is appearing in the signature field in the PDF.

    Please help!

     

     

    Flow.PNG
    PDF Signature.PNG
  • WarrenBelz Profile Picture
    155,315 Most Valuable Professional on at

    @Smorley80 ,

    My suggestion did not involve storing the value (as you had not asked about that and it is a separate topic), but you can store the JSON in a multi-line text column if you want to. 

    Please have a read of this section of my blog on SharePoint images, but instead of writing the file to SharePoint, send it to a (temporary) jpg file in OneDrive, then use the OneDrive function Get file content using path. You can then use the File Content of this directly in your Word Merge Image field. 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Smorley80 Profile Picture
    22 on at

    still no go sorry.
    what am i missing?
    I've followed your instructions

    Ive added the expression like this:

    base64ToBinary(triggerBody()[‘Createfile_FileContent’])

    and also added the dynamic content as the above failed, and am getting this:

    Unable to process template language expressions in action 'Create_file_2' inputs at line '0' and column '0': 'The template language expression 'base64ToBinary(triggerBody()['Createfile_SignatureImageLink'])' cannot be evaluated because property 'Createfile_SignatureImageLink' doesn't exist, available properties are '@odata.etag, ItemInternalId, ID, NAME, Surname, Name0, Conditions_x002f_Limitations, Contact_Number, Date, EPOA, SignatureImageLink, Modified, Created, Author, Author#Claims, Editor, Editor#Claims, {Identifier}, {IsFolder}, {Thumbnail}, {Link}, {Name}, {FilenameWithExtension}, {Path}, {FullPath}, {HasAttachments}, {VersionNumber}, {TriggerWindowStartToken}, {TriggerWindowEndToken}'.

     

    What would you suggest be the best solution to this using the setup I have?

    Obviously i'm missing something /  a step somewhere

  • WarrenBelz Profile Picture
    155,315 Most Valuable Professional on at

    @Smorley80 ,

    Please fully read step 3 (from the 6) from the blog. It will end up looking exactly like this in the OneDrive options

    WarrenBelz_0-1688959452976.png

     

  • Smorley80 Profile Picture
    22 on at

    Hi @WarrenBelz 

    Here is the error i am getting (attached).

     

    I am using this as the JSON for the ONSELECT of my submit button:

    Set(varPen, JSON(PenInput1.Image,JSONFormat.IncludeBinaryData));

     

    The error in the flow:

     

    'The template language expression 'base64ToBinary(triggerBody()['Createfile_FileContent'])' cannot be evaluated because property 'Createfile_FileContent' doesn't exist,

     

    should i have something else in there besides 'CreateFile_FileContent'?

    error.PNG
  • WarrenBelz Profile Picture
    155,315 Most Valuable Professional on at

    @Smorley80 ,

    Mine is triggered by the Power Apps connector - yours is by SharePoint item creation

    WarrenBelz_0-1689026808717.png

    where are you getting the JSON from ? If a multi-line text field, you will need to apply the base64ToBinary to that field content.

     

  • Smorley80 Profile Picture
    22 on at

    That's what i'm asking help on.

    The peninput is writing to a SharePoint list column named SIGNATUREIMAGELINK and is displaying content in the SPO list like this (see attached).

     

     

     

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 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard