When I try to compile pdf_inc.p version 3.2.3 on unix
(IBM AIX 5.1) the following errors occur:
&THEN without matching &IF or &ELSEIF. (2949)
** Preprocessor could not understand line 6369 in
file './srcdev/system/pdf_inc.p'. (2124)
** ./srcdev/system/pdf_inc.p Could not understand line
6351. (193)
&ELSE with no matching &IF or &ELSEIF. (2950)
** Preprocessor could not understand line 6394 in
file './srcdev/system/pdf_inc.p'. (2124)
** ./srcdev/system/pdf_inc.p Could not understand line
6393. (193)
&ENDIF without matching &IF, &ELSEIF or &ELSE. (2951)
** Preprocessor could not understand line 6479 in
file './srcdev/system/pdf_inc.p'. (2124)
** ./srcdev/system/pdf_inc.p Could not understand line
6478. (193)
It has to do with the pdf_replace_text procedure:
PROCEDURE pdf_replace_text: /* PRIVATE */
DEFINE INPUT-OUTPUT PARAMETER pdfText AS
CHARACTER NO-UNDO.
/* Replace any special characters in the data string
since this
will create a bad PDF doccument */
pdfText = REPLACE(pdfText,"~\","~\\").
pdfText = REPLACE(pdfText,"(","~\(").
pdfText = REPLACE(pdfText,")","~\)").
pdfText = REPLACE(pdfText,"[","~\[").
pdfText = REPLACE(pdfText,"]","~\]").
END. /* pdf_replace_text */
Logged In: NO
pdfText = REPLACE(pdfText,"~\","~\\").
should read
pdfText = REPLACE(pdfText,"~\","~\~\").
Logged In: YES
user_id=1089326
pdfText = REPLACE(pdfText,"~\","~\\").
Should read
pdfText = REPLACE(pdfText,"~\","~\~\").
for it to compile properly