Function scs2pdf_ahpp in scs2pdf.c doesn't handle positioning right,
if *curpos is lower then position. Wenn you make a report with
HIGHLIGHT attribute, AHPP is used to position the cursor back to the
start of this field and overprint a second time, to get a bold output.

I found no easy way, to switch to and back from a bold font, but
the following patch should at least print the second string in the right
place:


--- scs2pdf.c.orig      Wed Mar 13 09:56:27 2002
+++ scs2pdf.c   Wed Mar 13 09:59:35 2002
@@ -363,14 +363,12 @@

   if (*curpos > position)
     {
-      /* I think we should be writing a new line here but the output is
-       * all screwed up when we do.  Since it looks correct without the
-       * new line I'm going to leave it out. */
-      /*
-         bytes += pdf_process_char ('\0', 1);
-         fprintf (outfile, "0 -12 Td\n");
-         bytes += 9;
-      */
+      /* Cursor is positioned back to start of line and then
+       * added blanks up to position. */
+
+      bytes += pdf_process_char ('\0', 1);
+      fprintf (outfile, "0 0 Td\n");
+      bytes += 7;

       for (i = 0; i < position; i++)
        {
--
Esda Feinstrumpffabrik GmbH
Frank Richter, Leiter EDV
Hauptstr. 76, D-09392 Auerbach
E-Mail: [EMAIL PROTECTED]
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: [EMAIL PROTECTED]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250
or email: [EMAIL PROTECTED]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.

Reply via email to