Hi
We are using Thangsan font to display Thai Font.We have a standalone program whcih will generate a PDF & print.
For PDF, we are using Device THSWINU, and for printing we are using a device type "ZHPLJ4"( This device will generate a Small spool size over the network).
Our Pseudo code will looks like this.
LOOP at Documents.
*---------------------PDF ------------------------------------
* Send mail with PDF data * SEND 2 copies of PDF with differtn values
DO 2 times.
*** Different parmaters are passed to Smartform 1st time and 2nd Time.
call smartform using THSWINU
Convert OTF to PDF and SEND MAIL.
ENDDO.
*-----------------------------------------------------------------
*----------------------PRINTING ---------------------------
*Printing only one Copy.
call smartform using ZHPLJ4 ( this is mapped to the actual printer)
*----------------------------------------------------------------
ENDLOOP.
* Note: ZPHLJ4 IS only works for printing, if used in PDF genration, that PDF is totally out of alignment and Font will not displyed properly.
When we execute the program with 1 document Both PDF & print works fine. But if we execute the program with 2 or 3 documents , 1st copy of PDF for each document is misaligned ( looks like its taking ZHPLJ4 Settings). But second copy for that document is Fine. printing is always Fine.
Document | PDF Copy1(Device: THSWINU) | PDF Copy 2(Device THSWINU) | Print( Device Type ZHPLJ4) |
Document 1 | OK | ok | ok |
Document 2 | NOT ok(Out of alignemnt) | ok | ok |
Document 3 | NOT ok(Out of alignemnt) | ok | ok |
Document 4 | NOT ok(Out of alignemnt) | ok | ok |
Document 5 | NOT ok(Out of alignemnt) | ok | ok |
We suspect that, after printing a copy with ZHPLJ4 , when it comes to next documents 1st copy, system is still taking ZHPLJ4 setting even though THSWINU is mentioned in the parameters.
Please suggest how to clear the printer buffer or any of other way to solve this issue.
thanks