We have tried CSS...that's another problem that when you use a font that
is not a system font, and the font contains dashes or spaces in the font
family name (like EuroStile-Black-DTC), it defaults to NewTimesRoman. It
works fine in the html and even in the Acrobat distiller, but something
about cfdocument didn't like it at all, which prompted me to learn a little
more about iText. We spent another week on that one and had to find a font
family that did not have dashes or spaces in the font-family in order for it
to work, too bad the client refused to switch fonts, it would have saved me
some sleep last week. This is a whole new week and still no sleep :)
The reason for this is that we were attempting to Bold the text in one spot,
and not bold it in another. When we used Styles or tags, or CSS definitions
the whole page would end up being bold no matter what we tried, CSS, <b>,
<strong>, <span>, and even div tags (did nothing) we tried everything out
there...the only thing that worked was a font with no spaces and no dashes
in the name. And it has to be install properly on the server.
So we had to come up with two different fonts...one font for bold and
one font for not bold, after dealing with this garbage I recommend not using
anything but system fonts, and if you need to bold something, make sure you
separate the bold text by putting everything in it's own TD rather than
trying to define the class in the table. It was another nightmare that I've
already posted last week I think.
Matt
----- Original Message -----
From: "Larry C. Lyons" <[EMAIL PROTECTED]>
To: "CF-Community" <[email protected]>
Sent: Wednesday, August 17, 2005 4:14 PM
Subject: SPAM-LOW: Re: Yet another day of screwing with CFDOCUMENT
> Just a suggestion, have you tried using CSS instead of using cell
> properties?
>
> larry
>
> On 8/17/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
>> Today, just like the last few weeks, we've STILL been trying to
>> figure out why right alignment in a table doesn't work properly when
>> using CFDOCUMENT. When using anything other than numbers and letters, a
>> simple table will not align the text to the right properly. It goes
>> right over the table structure because the non-alphanumeric characters
>> are treated differently than numbers and letters. We've spent 80+ hours
>> over a small estimated quote to figuring this out and nearly cost us the
>> whole deal. I'm certain that it didn't make us or CF look good, and
>> there should have been something somewhere stating that this is a
>> problem....so now there will be. No one else should have to go through
>> what we went through to get this desired result. Rediculas. No matter
>> what we tried, the right alignment is off by a number of pixels which we
>> think is a problem somewhere in the "iText's" interpretation of the html
>> through CF. Not too sure why it acts this way, but it does....maybe
>> someone at MM can answer without billing me over the phone :)
>>
>> Example. (This works because there is only alphanumeric chars in the
>> table)
>> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
>> <TR>
>> <TD ALIGN="RIGHT" width="336">
>> test test test test text<br>
>> test 1234 test 1234<Br>
>> test5654 test <br>
>> </TD>
>> </TR>
>> </TABLE>
>>
>> However this table doesn't work. When you right align paragraphs that
>> contain non-alphanumeric characters (commas, @, semi-colons, periods etc)
>> you get wacky behavior on the right alignment. Again, this is only when
>> you align to the right. The Left alignment seem to be fine. We're still
>> playing with the center alignment, but the chars are still treated
>> different.
>> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
>> <TR>
>> <TD ALIGN="RIGHT" width="336">
>> [EMAIL PROTECTED]<Br>
>> johnny went to the market @ 2:pm<Br>
>> </TD>
>> </TR>
>> </TABLE>
>>
>> Here is one solution that we found as a work around! Oh, wow...and
>> actual solution... Each non-alphanumeric character has to be in it's own
>> <td> tag, and each line has to be in it's own table. In order to get the
>> above table to work you have to do the following below. Also, any style
>> that's defined has to be in EVERY <td> tag, not just in the table tag,
>> even the <td> tag that contain spaces because if you don't, it throws off
>> the vertical height in the row and ultimately messes up the right
>> alignment. The only reason I didn't put the styles into the td tag in
>> this example is so everyone could read it better.
>>
>> This works!!
>> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><tr><td align="right">
>> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD
>> ALIGN="RIGHT">matt</td><td>@</td><td>bridgeleaf</td><td>.</td><td>com</td></tr></table>
>> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD
>> ALIGN="RIGHT">johnny</td><td> </td><td>went</td><td> </td><td>to</td><td> </td><td>the</td><td> </td><td>market</td><td> </td><td>@</td><td>2</td><td>:</td><td>pm</td></tr></table></TD></TR></TABLE>
>> </td></tr></table>
>>
>> I hope this helps everyone else out there trying to make this work.
>>
>> Matt Blatchley
>> Bridgeleaf Studios
>> www.bridgeleaf.com
>>
>>
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:170147
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54