Post Script files created in Word 6 and Word 2003
Greetings!
We have an ordering application which uses .ps files which serves as templates to generate a .pdf order contract form using Adobe Distiller. The .ps template file are created by 'print to file' a template Word document using Word 6 (pretty old) which saves a .prn file and it is later renamed to .ps. These template word document contains certain tags (delimited text), which will also be present in the .ps file as is. The application later parses these .ps files to replace these tags with its corresponding values from business objects and passes the stream to Adobe distiller which returns a PDF file.
(Order Number: $sOrderNumber$)116 677 MS
When the same word document is 'print to file' using Word 2003, the tags ( and all the text ) are encoded in the .prn file as below:
(O)116 731 MS (r)181 731 MS (d)209 731 MS (e)255 731 MS (r)301 731 MS ( )329 731 MS (N)352 731 MS (u)412 731 MS (m)458 731 MS (b)529 731 MS (e)575 731 MS (r)621 731 MS (:)649 731 MS ( )672 731 MS ($)695 731 MS (s)741 731 MS
(O)783 731 MS (r)848 731 MS (d)876 731 MS (e)922 731 MS (r)968 731 MS (N)996 731 MS (u)1056 731 MS (m)1102 731 MS (b)1173 731 MS (e)1219 731 MS (r)1265 731 MS ($)1293 731 MS
