cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with the font and alignment in SAP Script PDF

Former Member
0 Kudos

Hi Experts,

I have a problem with the font in SAP Script PDF conversion.

The output of the form is working fine but in the PDF the output is wrong.

There is a dutch letter ' ï ' which is pinted in the form output correctly but in the PDF output the character

has been changed to '#'.

and also the alignment of some text has beed changed without line spacing in between.

Please let me know what could be the problem and how to solve this issue.

Thanks in advance,

Regards,

Sankara Chakradhar.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

try to change the printer which supports the Dutch fonts and check ..

see the links it will help you..

Regards,

Prabhudas

Former Member
0 Kudos

Hi Prabhudas,

Thanks for the early reply.

The problem is with the PDF output but not with the Print.

If we print the form the characters are coming good, both in prinout and print preview.

But we are converting the output to PDF if the output medium is set to 5. In PDF generated the values are wrong.

Thanks & Regards,

Sankara Chakradhar.

Former Member
0 Kudos

Hi,

which function module your are using to convert the data into PDF.

if it is CONVERT_ABAPSPOOLJOB_2_PDF internally it uses some printer...

you said prinout and print preview is working properly , the local printe view is always good because it uses HP lasertjet.

but if you shedule it uses Post script printer the font will differ.

Regards,

Prabhudas

Former Member
0 Kudos

Hi Prabhudas,

I am using the FM 'CONVERT_OTF' to convert the data to pdf.

The FM CLOSE_FORM is creating the IT_OTF internal table and the CONVERT_PDF uses that internal table to populate the IT_PDF internal table and then using the FM 'SO_OBJECT_SEND' to send the PDF file to mail.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

IMPORTING

bin_filesize = g_filesize

TABLES

otf = it_otf

lines = it_pdf.

Regards,

Sankara Chakradhar.

Former Member
0 Kudos

Hi,

If your script is generating a spool request, then make use of this standard program RSTXPDFT4 to convert to PDF and see .