cancel
Showing results for 
Search instead for 
Did you mean: 

Report returned as PDF through RESTful is cropped

Former Member
0 Kudos

Hi Everyone,

I hope someone can help point me in the right direction. I am a BO guy, but don't know too much about Java or RESTful. We are calling a few reports through RESTful and they are being displayed as PDF.

The PDF that are returned are cropped. The header and footer are all cropped off and literally the body or section is created. When the report is run in Webi it is displayed correctly. It is only with the REST call that the PDF is cropped.

There are no page settings specified in the code.

Thanks in advance for any help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alexander,

What is the BI version you are using? Is it SAP BusinessObjects Business Intelligence platform 4.0 SP7? Also the issue comes when the usage of REST call to export in paginated mode versus listing mode is mixed. In Which mode you are exporting it?

Regards,

Kedar

daniel_paulsen
Active Contributor
0 Kudos

HI Alexander,

see the following post: 

and try:


GET  .../raylight/v1/<docId>/pages       (Accept: application/pdf)


Dan

Answers (4)

Answers (4)

creativewarlock
Explorer
0 Kudos

What is the meaning of "raylight" in the URL?

Former Member
0 Kudos

Hi everyone,

Thank you very much. Exporting the document in paginated mode /pages worked perfectly.

Many thanks to all of you.

A.

Former Member
0 Kudos

Hi everyone,

Firstly, thanks for the replies. Here is some more information:

System verison: BI4.1 SP5 Patch 7

getDocumentId - uriTemplate: [http://servername:6405/biprws/raylight/v1/documents?offset=0&limit=50]

setDocumentParameters - uriTemplate: [http://servername:6405/biprws/raylight/v1/documents/59046/parameters]

getDocumentAsPDF - uriTemplate: [http://servername:6405/biprws/raylight/v1/documents/59046]

eric_festinger
Contributor
0 Kudos

hi Alexander,

Your last call:

getDocumentAsPDF - uriTemplate: [http://servername:6405/biprws/raylight/v1/documents/59046]

... exports the document in listing mode

To export it the same way as BI LaunchPad, as Kedar and Dan suggested, you need to ask for paginated mode:

[http://servername:6405/biprws/raylight/v1/documents/59046/pages]

See also this optional URL parameter:

mode: (type=string, values="normal" or "quickDisplay", default="normal")

Regards,

eric

eric_festinger
Contributor
0 Kudos

hi Alexander,

Could you please copy/paste the call URL? (remove the server name if necessary)

Regards,

eric