Hi I've got a font problem to add a text at the top of an existing PDF file. This problem only occurs when we log into Windows XP PC as normal PC user. If we log into XP PC as Administrator, the application works fine and since then it always works fine no matter what user account we use to log into the XP PC. This problem has been replicated on a couple of Windows XP PCs. (Furthermore, this problem doesn't exist in Windows2000 at all. The printer is EPSON TM-T990, model M165A. Adobe acrobat is acrobat reader 5.0.17.)
The attached is the source code. What it does effectively is, reading the content from a temporary PDF file, adding the printed-on timestamp at the very top of the pdf file using absolute coordinates, write the new content into a new temporary file and returns the new file for printing. However, the physical print output is partially corrupted. The original PDF file content uses two fonts: Arial Narrow and Arial Narrow Bold. The added timestamp text in the new file uses Arial Narrow Bold. All the texts, which use Arial Narrow Bold on the receipt, are corrupted. The print texts, which use Arial Narrow, are not affected and printed out fine. The following are the steps to replicate this problem, in which the only difference is the XP user account. Step 1/ logged into the XP machine using normal teller user account and did the printing. It didn't work properly. Checking the Acrobat Document/Fonts, we found the actual fonts Arial Narrow Bold and Arial Narrow, which were used to print the recept, were substituted with Acrobat fonts (something like Adobe San MM). The fonts were different from the original fonts respectively. Step 2/ logged off the XP machine and relogged into the machine using Administrator user account, and then did the printing. It worked perfectly!!! Checking the Acrobat Document/Fonts, we found the actual fonts Arial Narrow Bold and Arial Narrow, were the same as the original fonts respectively. Step 3/ logged off the XP machine and relogged into the machine using normal teller user account, and then did the printing. We get the same result as step 2. Everything is work perfectly! Well, you might want to say probably this is caused by the font file access permission. However, what confuses me is the application can print the ORIGINAL pdf file perfectly. If the problem is caused by the font file access permission, how could the original pdf be printed out perfectly? Both the old and new pdf files use Arial Narrow Bold fonts. Sorry about the lengthy descript about this tricky problem and thanks for your patience. I am looking forward to your reply. Thanks again! Ping (See attached file: FontInWinXP_Soure.txt)
FontInWinXP_Soure.txt
Description: Binary data
