Subject: | Illegal operation 'BT' inside a text object |
Hi Lars,
Thanks for making PDF::Reuse available. I've recently started using it for a client and its been working nicely. The tutorial was most helpful.
Just today though, when generating a PDF file from a two-page template, I have discovered that some input will cause a series of errors when opening the generated file using Adobe 5.0 or 6.0. I am using ActiveState Perl 5.8.x with PDF::Reuse 0.29.
When the error occurs, first there is a brief Rebuild notice which disappears on its own and is followed by the following three dialog boxes:
There was an error processing a page. Too few operands.
OK
An unrecognized token 'T.' was found.
OK
Illegal operation 'BT' inside a text object.
OK
The file is then opened but the first page is blank. If I try to open the PDF file using another viewer such as GPDF, both pages will open successfully but none of the inserted data will appear on the first page.
Even more peculiar, this error only seems to occur when inputting a 12 character string that begins with an 'S' (e.g., 'Step Wingate' fails but 'Utep Wingate' as well as 'Steph Wingate' works) and only under Win32.
I found a tech doc[1] at Adobe's website which documented these errors but was not sufficient to resolve my issue. I am going to try to create a test script which can replicate this error. Hopefully, you can test under Win32.
Thanks,
William
[1] http://www.adobe.com/support/techdocs/322743.html