Test CSS File for CFDocument Compatibility - Builder Extension
Recently, I was assigned to handle issues related to conversion of some HTML documents we have built into PDF using the <cfdocument> tag in ColdFusion. One of the things you will notice if you check the documentation for the <cfdocument> tag is that it doesn't support the full-range of CSS style options (and no CSS3 for that matter at the moment). Rather than go through each of the many CSS documents related to what I am working on and finding each and every instance of a style that wasn't on that list, I whipped up a little one-pager ColdFusion Builder extension that does the work for me. Here's how it works.
Once you install the extension, you simply right click on any CSS file and choose "cfdocument CSS test > check for compatibility." Once it is done checking, which takes all of a few milliseconds, it will give you a list of any styles you may have used that are not on the supported styles list. At the moment, it simply tells you which styles were not supported not where they are in the document but, assuming others find this useful, perhaps that is a future enhancement. In addition, there are some limitations listed to some of the supported styles, I don't currently check that. Nonetheless, if you are working with cfdocument, this could be useful for you (and is yet another example of how you can quickly solve problems with ColdFusion Builder extensions).
If you want to install it, I am posting the code here for the time being. Also, I created a little video to show you how it works and dicuss the code used to build the extension as it is a good simple learning example in my opinion (sorry if the audio isn't great...but its still ok).
There are currently no comments for this entry.


