Second-cup-of-coffee

28Sep/090

Internet Explorer and PNG hacks

I ran into an interesting (well, interesting to me in an infuriatingly frustrating kind of way) problem with a site I had worked on and Internet Explorer (6, 7, and 8). The site displayed fine but after the page displayed I could see the status bar churning away. It would chug along and I’d watch it download hundreds of mystery items. I couldn’t replicate the behavior in any other browser.

As many web developers know, Internet Explorer 6 cannot natively handle transparent PNGs but you could overcome this by using a behavior (.htc) file. In this particular site, the .htc file was being loaded regardless of the version of Internet Explorer. It was this behavior file that was causing Internet Explorer to process every PNG on the page. I put in a conditional IE statement and this solved the problem for Internet Explorer 7 and 8.

Filed under: Programming No Comments
25Sep/090

WT… PDF?

I am working on a project for work that requires the merging of two PDFs. One PDF needs to be an editable PDF and needs to be populated with data from a MySQL database. This combined PDF then needs to be sent to the user's browser for download. I figured out how to combine two test PDFs and I figured out how to populate an editable PDF via PHP. However, the scripts that can combine PDFs seem to only work reliably with PDFs that are version 1.4 or lower. And, of course, the editing functionality doesn't seem to be available in PDF version 1.4. Soooo, I can do one or the other. I can combine the PDFs or I can populate the PDF with data.

I am going to next look into Adobe's Live Cycle software which they don't seem to list pricing for. Should be interesting.

Filed under: Programming No Comments