I am beating PHP into submission!

Jun 26, 2007 19:29

So today at work I hacked the main report -> PDF label scripts in OpenBiblio so that it would print three copies of each label instead of just printing in the left column. I spent several hours trying to make it print one copy of each label, three columns AND ten rows, but I could only get it to either a column or a row if I made it print only one.

However, I also hacked the report that it's based on so that it would retrieve the library name and phone number from MySQL. I added those to the labels, so that each label has dynamically-populated contact info for the library as well as the title, author, and collection of the book.

I also made the barcode and label fit an Avery 5160 label sheet, which was driving me crazy until I realized that Acrobat had "fit to printable area" checked, which shrunk a perfectly formatted PDF into a non-perfectly formatted PDF. Eventually I may get it tweaked well enough to release back into the project.

Did I mention that I understood about 10% of what I was looking at, not being a PHP person?

Hoo-AH!

web, work, php, mysql, computer

Previous post Next post
Up