I love what I do.

I love technology and education. Maybe you like knitting. Cool. My thing is educational technology.

Please feel free to leave a comment...

The Many Hells of PDF’s and PHP

Monday, February 01, 2010

If you want to create a PDF from PHP you use a fairly simple PHP library.  The benefits are obvious: you can have ubiquitous PDF generated from dynamic data, which is fun and nice - especially for report cards.

But, because PDF’s are PDF’s, you have to EXACTLY specify where you want text to go - on an X - Y coordinate grid. This makes creating complex reports exceedingly painful.  Once the report is done, you can dance your “I’m so happy THIS is over” dance. But until then, you need to place text, test, change, place text, test, change, yadda yadda yadda.

Here’s an example:

PDF_set_text_pos($p, 50, 700);
PDF_show($p, “Hello world!”);

This is a simple example, imagine a full page with tables, descriptions, etc… It really is a pain in the neck.

Three guesses what I’m working on today, and the first two don’t count.





Commenting is not available in this weblog entry.

Avatar

Bill MacKenty, Chief Zuccini

I make a difference in the life of kids. You want to tell me what's more rewarding?

Avatar

Resume

This is my full resume. It has all my work experience since I graduated from college in 1992, including certifications, professional memberships, and descriptions of my work.

Avatar

Polish Resume

This is my full resume translated into Polish. My wife tells me it is a literal translation, and as such might convey a slightly different meaning to Polish speakers.