Skip to main content
October 16, 2008
Question

Bold Letters in PDF generated using CFDOCUMENT tag

  • October 16, 2008
  • 1 reply
  • 294 views
Hi All,
I try to generate a PDF in ColdFusion 8.0 deployed in a Redhat Linux environment. When I generated the pdf I realized that some of the text in paragraphs have some letters (for example letter Terrorism Risk Insurance Act ).

If any of you have faced similar problems and fixed it please let me know.

Thanks
Regards
prasanna
    This topic has been closed for replies.

    1 reply

    Inspiring
    October 16, 2008
    where is that text coming from?
    if it is just a matter of stripping out the and ,
    you should be able to run a replace() function

    <cfset mytext = " Terrorism Risk
    Insurance Act">

    <cfset cleantext = replace(mytext, ' ', '', 'all')>
    <cfset cleantext = replace(cleantext, '
    ', '', 'all')>

    <cfoutput>#cleantext#</cfoutput>

    if you want it to actually make those letters bold, replace with
    <strong> instead of a blank ''


    Michael Evangelista, Evangelista Design
    Web : www.mredesign.com Blog : www.miuaiga.com
    Developer Newsgroups: news://forums.mredesign.com

    FB Ruben wrote:
    > Hi All,
    > I try to generate a PDF in ColdFusion 8.0 deployed in a Redhat Linux
    > environment. When I generated the pdf I realized that some of the text in
    > paragraphs have some letters (for example letter
    Terrorism Risk
    > Insurance Act ).
    >
    > If any of you have faced similar problems and fixed it please let me
    > know.
    >
    > Thanks
    > Regards
    > prasanna
    >
    >