Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a pdf image into Adobe Form

Abhijit74
Active Contributor
0 Kudos

Hello Members,

Happy New Year to All of you.

My requirement is to add a quality certificate's (Transaction QC53 is for specific certificate record) image into adobe form. I need to display some records into first page and then need to  attach or add the certificate image into 2nd page.

Please let me if somebody had already faced this kind of issue and got solution.

Thanks in advance for your help.

Abhijit

18 REPLIES 18

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Abhijit74
Active Contributor
0 Kudos

Hello ,

I'm waiting for your valuable response. Please let me know if it is at all possible ? If yes then how?

Thanks & Regards,

Abhijit Mandal

Former Member
0 Kudos

Please let us know how your ADOBE form get called ? I am not suret but its just matter of adding Pic in adobe form then yes it is possible.

Thnx,

Prakash

Abhijit74
Active Contributor
0 Kudos

Hello,

The form is called from a Z program. It's not a static picture. I need to check for quality certificate in QC53 and if exists then only I need to add.

Thanks & Regards,

Abhijit

Abhijit74
Active Contributor
0 Kudos

Hello ,

I'm looking for help on this topic. Experts. can you please update?

Thanks & Regards,

Abhijit

0 Kudos

Hi Abhijit,

I think you would need to pass a URL into the form as a parameter if you mean to include a dynamic picture based on your check.  Then you should be able to point to the URL by inputting some programming logic in the form.

Regards,

Ryan Crosby

Abhijit74
Active Contributor
0 Kudos

Hello,

I have to check the QC53 attachment list. If exists then I need to add this attachment into SAP Adobe form.

Actually, I'm displaying certificate details from QCPR table. I need to attach the certificate image to the adobe form dynamically .

Thanks & Regards,

Abhijit 

0 Kudos

How is this certificate image stored?

Regards,

Ryan Crosby

Abhijit74
Active Contributor
0 Kudos

These are pdf file.

0 Kudos

HI Abhijit,

i don't think you can dynamically embed an image into a PDF.  I think you need to provide a URL for the form of where an image is located.  If it is stored into a table in some XSTRING or RAW format then you could write a simple BSP application to serve the image file and then give that URL to the form.

Regards,

Ryan Crosby

Abhijit74
Active Contributor
0 Kudos

Hello,

Could you please elaborate. I don't have any idea about BSP.

Thanks & Regards,

Abhijit

0 Kudos

I checked the QC53 attachment logic and it appears that it is stored somewhere at the OS level.  If you have a way to determine the file location then I could help with some form of BSP logic to read the file data into your form.

0 Kudos

Hi Abhijit,

I spent some time researching this gathering of data just to gain experience in the area and I may have a sample that would work for you.  Here is a very basic BSP application that will gather the first attachment for a quality certificate and output it at an image using a URL (Note that I only selected the first but maybe this would differ from your requirement).  Here is the basic setup of the BSP application:

Next is the BSP code that will read the attachment and output it as binary data as well as set the appropriate mime type for the response depending on the type of image.  The assumption here is that you are only looking at images:

The last step is to setup a parameter for the URL so you can tell the system which quality certificate you are interested in getting an attachment for:

I apologize for the two code images but the screen was too small.  Now the last thing is merely to construct the URL so that you tell the BSP application what to go get.  The URL would be in the format of - host/sap/bc/bsp/sap/ztest353535/certificate.htm?ID=insert your cert no here

Hope this helps you out.

Regards,

Ryan Crosby

Abhijit74
Active Contributor
0 Kudos

Hi Ryan,

Thanks for your mail. Could you please let me know how can i add the BSP application into my existing report?

I can't create it separately. Because I already have different 4 pages of display in my adobe form. and I have already displayed the certificate details.

Now, I need to do the hyperlink of certificate number to the pdf attachment.

Thanks & Regards,

Abhijit

0 Kudos

Hi Abhijit,

Unfortunately the BSP application would have to be created separately.  I did find another possibility regarding the input of a dynamic image but found that the quality was not so good when I tested it in my system.  Under the context tab in SFP you can add a "graphic" node and if you set the type as either a "graphic reference" or "graphic content".  The "graphic reference" means you would supply a URL for the picture in the binding and "graphic content" means you would supply the XSTRING value from lv_xstr for example from the above code in the binding (I tried this one and it didn't look very good compared to the HTTP version from the URL).

Whichever you try you will still need to either pass in the additional parameter for the URL or the XSTRING in the form interface so you can read it in the form.

Regards,

Ryan Crosby

Abhijit74
Active Contributor
0 Kudos

Hello Experts,

Awaiting for valuable response.

Thanks & Regards,

Abhijit

DanielP
Active Participant
0 Kudos

We had the same question, .PDF files are not a supported format extension for graphic/images by Adobe Livecycle Designer 10.4.0 as per below: