cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT to Web(pdf) has different line spacing than in SAP?

Former Member
0 Kudos

When we issue to output the order in SAP it looks fine. When we open it in the web, using PDF, the lines are spaced differently.

We have never had an issue before, but now we added a lot of text to a final page of the sapscript.

Any suggestion how to adjust the PDF line spacing for output via our SAP Function Modules that create OTF to PDF?

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Resolved issue.

Former Member
0 Kudos

Hi Tom ,

Good to hear the issue was resolved . i am facing the same issue . can you share your solution which function module you are using ...

tahnk you in advance

Former Member
0 Kudos

Hi,

The SAPscript must generate an OTF output and then you convert the OTF into PDF format.

There are 2 possibilities :

1.Without generating any spool :

2.When calling OPEN_FORM function module, export parameter OPTIONS-TDGETOTF = 'X', and when calling CLOSE_FORM function module, use returned parameter OTFDATA

call CONVERT_OTF function module to convert the OTF to PDF. Returned parameters are BIN_FILE (the PDF binary) and BIN_FILESIZE (the length of the PDF binary). See below how to save a PDF binary to a file.

If an OTF spool has been generated, you may convert it using CONVERT_OTFSPOOLJOB_2_PDF function module. Returned parameters are PDF table (the PDF binary) and PDF_BYTECOUNT (the length of the PDF binary).

Thanks