Tuesday, May 27, 2008

CFdocument Coldfusion 8.01 update HTML to PDF bug

The new ColdFusion 8.01 update has some very nice fixes and additions, such being able to send a document from a variable instead of saving and then attaching it. Alas, nothing is perfect.

In one of our projects, we turn HTML into PDF's using the cfdocument tag set. Before the update to 8.01 the HTML being sent to the PDF formatter worked perfectly.

The string of HTML that cfdocument was choking on looked like this:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tbody>
<tr>
<td>test
<br /><br />
</td>
</tr>
</tbody>
</table>

Specifically, the issue is with the double br's. With just one br it worked, but with both it would throw the following error.

"java.io.IOException: Parsing problem occurred during the rendering process of this document."

This is the simplest example, there may be other quirks rendering HTML to PDF.

I highly recommend reading through the release notes to learn more about the update!

http://www.adobe.com/support/documentation/en/coldfusion/801/cf801releasenotes.pdf

Thursday, May 22, 2008

How to Avoid Photo BLOAT

Don't you hate when you receive an email with an image attached and every time you try to print it, it takes about 4 pieces of paper because it's so huge? Guess what happens if you try to upload that same image to your website? Not good! How about when you go to a website that has a lot of images and ....... it......takes......forever......to.......load.......UGH!

The problem, in a nutshell, is that the images are too darn big. Here's a free online tool for resizing your images:

www.picnik.com

The site offers the ability to resize as well as fix, crop, rotate and more. It works on Mac, Windows, and Linux and does not require any installation or downloading.

Today's New York Times has a great article on this topic. Read more...

Friday, May 2, 2008

Protect Your Domain Name

Some companies are just not ethical. It's sad, but true. In the past 6 months, two of our clients have been hurt by unscrupulous companies and several others have been contacted. A few things to look out for:

1. The domain renewal scam. An official looking document shows up asking you to renew your domain name. The letter usually shows up several months in advance of the renewal date, encouraging your to renew now to "protect" yourself from losing that domain name. When you pay the invoice and renew the name, the domain gets renewed, but not in your name. It's transferred to the jerks who initiated the scam.

2. The domain name theft. You're searching for a domain name on the website of an unethical company and the next thing you know, the company registers the name for which you just searched. What happens? You can still register the domain, but ONLY from THAT unscrupulous company - for a premium price, of course.

3. The domain name theft Version 2. It's nearing time to renew your domain name registration, but you figure you'll get around to it one of these days. The next thing you know, some company snatched it and you've lost it. It's not that common, but it happens.

Tucows, a legitimate company for which we are resellers, offers these suggested ways to protect yourself:

1. Enable WHOIS Privacy. This is the absolute best protection, stopping the renewal scam dead in its tracks as there is no way for the scammer to contact the Registrant directly.

2. Make sure your domain is locked. A locked domain can't be transferred.

3. Know your Reseller and Registrar. Don't assume someone will take care of this for you. You should keep on file all the information about where and when you registered your domain name. You should know your username and password as well. Keep it somewhere you'll find it when you need it.

About J3media, Inc