Hello,
I face the following problem:
We have 2 systems. On one system there is a userinterface. User can create PDF-files. The pdf-files are created on system1.
The pdf-files have to send to system 2. I tried the following to read the pdf file:
INPUT STREAM abc FROM VALUE(cFile).
REPEAT:
IMPORT STREAM abc UNFORMATTED cText.
CASE icontent:
WHEN 1 THEN DO:
IF LENGTH(ttPdf.content1 + cText,"CHARACTER") LT 31000 THEN
ASSIGN ttPdf.content1 = ttPdf.content1 + cText.
ELSE
ASSIGN
ttPdf.content2 = cText
iContent = 2
.
END.
WHEN 2 THEN DO:
IF LENGTH(ttPdf.content2 + cText,"CHARACTER") LT 31000 THEN
ASSIGN ttPdf.content2 = ttPdf.content2 + cText.
ELSE
ASSIGN
ttPdf.content3 = cText
icontent = 3
.
END.
WHEN 3 THEN DO:
IF LENGTH(ttPdf.content3 + cText,"CHARACTER") LT 31000 THEN
ASSIGN ttPdf.content3 = ttPdf.content3 + cText.
ELSE
ASSIGN lOk = FALSE.
END.
END CASE.
END.
INPUT STREAM abc CLOSE.
I just the above method for xml-files behore, that worked fine. Now it doesnt work for PDF-files.
can anyone help me out on this?
I face the following problem:
We have 2 systems. On one system there is a userinterface. User can create PDF-files. The pdf-files are created on system1.
The pdf-files have to send to system 2. I tried the following to read the pdf file:
INPUT STREAM abc FROM VALUE(cFile).
REPEAT:
IMPORT STREAM abc UNFORMATTED cText.
CASE icontent:
WHEN 1 THEN DO:
IF LENGTH(ttPdf.content1 + cText,"CHARACTER") LT 31000 THEN
ASSIGN ttPdf.content1 = ttPdf.content1 + cText.
ELSE
ASSIGN
ttPdf.content2 = cText
iContent = 2
.
END.
WHEN 2 THEN DO:
IF LENGTH(ttPdf.content2 + cText,"CHARACTER") LT 31000 THEN
ASSIGN ttPdf.content2 = ttPdf.content2 + cText.
ELSE
ASSIGN
ttPdf.content3 = cText
icontent = 3
.
END.
WHEN 3 THEN DO:
IF LENGTH(ttPdf.content3 + cText,"CHARACTER") LT 31000 THEN
ASSIGN ttPdf.content3 = ttPdf.content3 + cText.
ELSE
ASSIGN lOk = FALSE.
END.
END CASE.
END.
INPUT STREAM abc CLOSE.
I just the above method for xml-files behore, that worked fine. Now it doesnt work for PDF-files.
can anyone help me out on this?