cancel
Showing results for 
Search instead for 
Did you mean: 

Display adobe form pdf via odata service

Former Member
0 Kudos

Hi,

Our requirement is to display an adobe form in SAP UI5.

I have created an odata service that gets adobe form in xstring format and returns it to output.

I am trying to test the same in gateway client and getting following error

'FIle Doesnot begin with '%pdf-'.

I am unable to view the pdf output on gateway client.

Regards,

Meghna.

Accepted Solutions (0)

Answers (2)

Answers (2)

ChandraMahajan
Active Contributor
0 Kudos

You can also have look on blog

Regards,

Chandra

Former Member
0 Kudos

Hi Chandra,

I have followed your blog and developed.

I am still getting the error.

ChandraMahajan
Active Contributor
0 Kudos

Have you checked the improved approach (using media streaming solution)?

how are you querying in GW client? (for e.g /sap/opu/odata/sap/ZTESTPDF_SRV/pdfset('5')/$value like this?)

Former Member
0 Kudos

I am using the get_stream method.

And yes that is the syntax that i have followed to retrieve pdf.

there seems to be some issue with the pdf format.

Former Member
0 Kudos

Hi Meghna,

can you attach a screen please

thanks

Sri

Former Member
0 Kudos

Heres the screen shot.