Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Bold Letters in PDF generated using CFDOCUMENT tag

Guest
Oct 16, 2008 Oct 16, 2008
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
273
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2008 Oct 16, 2008
LATEST
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
>
>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources