Generate landscape PDF reports using "PDF Web Service"

A Elbarbary
Giga Guru

Hi Community,

There is a simple OOTB way for generating PDF reports.

According to this URL, We can generate the report simply by adding the parameter 'PDF' to the URL query string, for example:

<SNOW_URL>/sc_req_item_list.do?PDF

The problem is that there are around 20 columns in my custom list view and I can't delete any, is there a way to generate the PDF as landscape instead of portrait so that there is enough width to fit every thing rather than having very narrow columns and wrapped text as per the below image?

gen report.png

1 ACCEPTED SOLUTION

shubh1992
Tera Guru

Hi   Abd El-Rhman El-Barbary



You can generate the PDF For any record by extending the URL with PDF   like <your-instance/incident_list.do?PDF&sys_id but you cannot change the orientation of it.



Regards,


Shubh


View solution in original post

5 REPLIES 5

shubh1992
Tera Guru

Hi   Abd El-Rhman El-Barbary



You can generate the PDF For any record by extending the URL with PDF   like <your-instance/incident_list.do?PDF&sys_id but you cannot change the orientation of it.



Regards,


Shubh


HI Shubh,

 

Can you help on generating customized PDF in landscape. I tried many ways by doing modifications in GeneralPDF script include but noting worked for me.

 

Thank you in advance 

Hi Shubh, 

I am able to generate the PDF but it gives me a blank PDF with empty fields.

https://<domainURL>.service-now.com/sc_req_item.do?PDF&sys_id=<sysId>&sysparm_query=number=RITM123123

 

Could you suggest me if my parameters are okay if i need to add anything?

 

Appreciate your help,

 

Thanks,

Sujith.

A Elbarbary
Giga Guru

ok, thanks for the hint !