cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Adobe Forms (SFP) - Inserting an image outside of SAP

0 Kudos

Hi SCN,

I'm trying to build a signed PDF form dynamically using a UI5 front-end application. The idea is that a user can pull up a document on the front-end and pass certain values back to SAP to create a PDF using Adobe Forms (e.g. a signed POD to be attached to a delivery using GOS). On top of that I'd also like to pass a signature image (which is created in the front-end) to be included in the creation of the PDF, which will then be saved to SAP Office.

I've searched the forum and managed to get the image into the PDF document using the MIME repository, but this is impractical. I don't think it's efficient to save each individual signature in SAP before adding it to the PDF?

My issue lies in the addition of the signature image. I've tried to pass both the BASE64 and converted XSTRING formats to the form but the image simply wont show. It does work when I pass the converted XSTRING of a MIME object but when I try to pass an XSTRING of a non-MIME object it doesn't work.

Is this possible with Adobe forms to use an XSTRING from an object that lies outside of SAP? Or is there some way to assign the BASE64 string to the image url? I've tried a few variations of the above and I can't get it to work at all without using the MIME repository.

I've read that this might be because of a security change to Adobe Forms but I'm not sure if this is actually the case?

Any help or guidance would be very much appreciated!

Thanks,

B

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Guys,


I managed to find the issue. I was not stripping away the initial base 64 text from the string. Once I removed it, the converted XSTRINg rendered the image perfectly.

former_member193107
Participant
0 Kudos

hi I wonder which part did you strip away?

data:image/bmp;base64,iVBORw0KGgoAAAANSUhEUgAAA

Answers (3)

Answers (3)

marcelom_bovo
Participant
0 Kudos

Hello,

How Did you convert the adobe forms into base64?

thanks

0 Kudos

Hi Evgeny,

Thanks for the advice. I did try as you suggested but still no luck.

I think the issue lies in how I'm decoding the BASE64 from the front end to XSTRING, using SAP. I don;t save or upload the file from anywhere, I simply take the BASE64 code try convert it to XSTRING. When I decode an image that has been save to the MIME repository the output XSTRING works perfectly.

former_member400468
Active Participant
0 Kudos

Hi!

Did you try to set the image file on the PDF directly via script (see the link)

https://forums.adobe.com/thread/1072747

Evgeny