cancel
Showing results for 
Search instead for 
Did you mean: 

Different length for Uline (SAPscript)

michael_fallenbchel
Active Participant
0 Kudos

Hi experts,

maybe only a small problem:

I have a SAPscript form. Here I have a line ( ULINE(84) ).

Printing on a HP printer (HPLJ4), everything's fine. Printing as a PDF (PDF1), my line get broken (line break), so I have the last ~4 "ULINES" in a second line.

Sure, I can do somethin like

IF printer = PDF

ULINE(80)

ELSE

ULINE(84)

ENDIF.

But that's not very nice!

Any ideas how to prevent the line break?

Thanks

Michael

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Michael,

Please, see SAP Note 172529 - Left-hand border when printing PDF files (PCL-5).

SAP Note 409194 - Printing from Acrobat Reader vs. Printing from SAP is also useful.

I hope this helps you

Regards

Eduardo

michael_fallenbchel
Active Participant
0 Kudos

Hi Eduardo,

I've checked both notes and also tried to change the customizing for PDF conversion (report RSTXPDF3) -> nothing.

I compared both documents (in print preview), real HP printer and the PDF. The page margin seems to be same, the difference is the font (maybe size). While in HP print I have 14 words in line, I have only 13 in PDF print. Also the line seems to be dotted in PDF, in HP it's a "real" line.

Is tehere a difference in font size or something like that?

Thanks

Michael

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try the recommendations by SAP Note 101266 - SAPscript: printable area for laser printers (mentioned in note 172529)

Regards

Eduardo

michael_fallenbchel
Active Participant
0 Kudos

Hi Eduardo,

I tried also, but no help.

I don't think the offset (or something similar) is the problem.

See this "screenshots":

1. Printout

2. PDF

As you can see, text is printed at the beginning of the page, and also at the end.

The lines have the same length, but only at PDF they have a line break.

Any ieas?


Regards

Michael

aidan_black
Active Contributor
0 Kudos

Hello Michael,

I guess you use a proportional font like HELVE for the underline characters. This is one of the problems described in SAP note 183948. The different printer language have different widths for underline character for proportional fonts.

Try changing the font used for the underline character to non-proportional font COURIER and you should get the same result for both device types.

regards,

Aidan

Answers (0)