× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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: frichter@esda.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.