Page 1 of 1

PDF TJ Operator

Posted: Sun May 16, 2010 11:20 pm
by Benjamin
Anyone know anything about rendering numbers in a PDF document using the TJ operator?

Re: PDF TJ Operator

Posted: Mon May 17, 2010 6:05 am
by Weirdan
I'm pretty sure all you need is to put them into parenthesis, like this:

Code: Select all

[(-12.23)] TJ

Re: PDF TJ Operator

Posted: Mon May 17, 2010 12:40 pm
by Benjamin
It appears the character sets are not mapped literally. So the character 3 might actually be NULL.

Re: PDF TJ Operator

Posted: Fri Jun 18, 2010 8:28 am
by Benjamin
I've built a system that locates place holders in a PDF file and replaces them with customized text. This is used to provide custom PDF documents.

There appears to be multiple font streams per font. If the wrong stream is used arbitrary characters will not render correctly. They either display as if the encoding is wrong or they have a width of 0. I'm wondering if anyone has any experience with this and if there are any workarounds.

Would it be better to use a PDF form and then flatten it?

Re: PDF TJ Operator

Posted: Fri Jun 18, 2010 11:27 am
by Weirdan
They either display as if the encoding is wrong or they have a width of 0.
Most pdf editors / printers would not include a character into the font stream if it's not used anywhere in the document - in other words they strip unused characters from the font. Sounds very similar to your issue.

Re: PDF TJ Operator

Posted: Sat Jun 19, 2010 6:46 am
by josh
I don't know anything about this but since you PMd me figured I'd throw this link out here http://framework.zend.com/manual/en/zend.pdf.html

Re: PDF TJ Operator

Posted: Sat Jun 19, 2010 9:12 am
by Benjamin
Thanks, I think Weirdan might be onto something. I'll do some more research on this.

Re: PDF TJ Operator

Posted: Sat Jun 19, 2010 7:22 pm
by Benjamin
@Weirdan, you were 100% correct. Embedding every character into the PDF document solved the problem. Thanks alot.