Hey all,
I've been using the pdflib api to generate invoices for my company and everything looks great, but i'm having a problem trying to print text on top of a filled rectangle. Here is a snippet from my code:
pdf_rect($pdf, 322, 550, 85, 20);
pdf_fill($pdf);
pdf_setrgbcolor($pdf, 1.0, 1.0, 1.0);
pdf_setfont($pdf, $font_arial, 6);
pdf_show_xy($pdf, "QUANTITY", (364 - (pdf_stringwidth($pdf, "QUANTITY") / 2)), 557);
pdf_setrgbcolor($pdf, 0.0, 0.0, 0.35);
This creates a blue filled rectangle and prints the word "QUANTITY" centered on top of the box. It shows up right in the browser but doesn't print the words when i print the pdf document. Any ideas? Thanks.