What makes pdf_text_align fail in pdfinclude?

Bruce Noble

New Member
I have been using pdfinclude for years, and never came across this one. I have a call to pdf_text_align that works perfectly when the data comes from source "a", but generates no text in the PDF file when the data source is "b". I have thoroughly debugged the code to ensure that there are no problems with the PDF file being open, font name and point size are correct, X and Y coordinates are correct. What have people experienced with this routine that results in no text being generated?
 
I am still having this problem. Since nobody has responded, that's usually a strong indicator that nobody else has experienced this - likely meaning my logic issue, etc. Does anyone have any way of debugging what goes on with a pdf_text_align call so that I might see why it is generating blank space instead of printable text? Are there any debugging procedures/calls/etc. that give you a window into what is going on?

I message the data to the screen immediately after the call to pdf_text_align, and it is always correct, not blank.
 
Ok, so the problem is related to printing text inside of filled boxes generated with pdf_rect. Sometimes, it works, sometimes it doesn't. But if I suppress the boxes, the text always works. The strange thing is that it doesn't seem to matter whether the box is generated before or after the text. The results are still unreliable.
 
Back
Top