Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
gwomx #1
Older versions of Acrobat Reader
I am having a problem with text showing up garbled. When I open the cfdocument
with Acrobat Reader 7 the text shows up fine but when I use an older version
(Acrobat Reader 5) the text shows up garbled. I am pulling the text from a
database and some of it is formatted in html.
Is there a way to tell cfdocument to create the pdf as Reader 5 or higher?
Here is my code:
<cfset display = "0">
<cfif IsDefined("id")>
<cfif Len(Trim(id))>
<cfset display = "1">
</cfif>
</cfif>
<cfif display is "1">
<cfquery name="lessoninfo" datasource="lesson" dbtype="odbc">
SELECT * FROM lessons WHERE id=#id#
</cfquery>
<cfoutput query="lessoninfo">
<cfdocument format="pdf" fontembed="no" margintop="0.1">
<link href="/styles.css" type="text/css" rel="stylesheet">
<body>
<cfdocumentitem type="footer">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr> <cfoutput>
<td align="left"><font color="##CCCCCC" size="-4">Lesson Number:
#number#</font><td>
<td align="right"><font color="##CCCCCC" size="-4">Page
#cfdocument.currentpagenumber# of #cfdocument.totalpagecount# </font> </td>
</cfoutput> </tr>
</table>
</cfdocumentitem >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="##27662F"><img src=" /images/logo_hq.jpg"
width="225" hspace="5" vspace="5"></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center" class="Header">#title#</td>
</tr>
<cfif Len(Trim(series))>
<tr>
<td align="center" class="Header">Series: #series#</td>
</tr>
</cfif>
<cfif Len(Trim(part))>
<tr>
<td align="center" class="Header">Part: #part#</td>
</tr>
</cfif>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="left" class="text11px">#lesson#</td>
<tr>
</table>
</body>
</cfdocument>
</cfoutput>
<cfelse>
There is no page to display.
</cfif>
gwomx Guest
-
Older versions of contribute
Hi Everyone, one of my clients who has been editing a site for god knows how long using contribute 2, i upgraded a while back to contribute 3. now... -
Must I REALLY Uninstall older Versions
Just got my 2.3 disks -- along with the disks came a recomendation to uninstall older versions of Acro -- I hesitate to do this untill at least the... -
Can you run 2 different versions of Acrobat Reader at once?
Is it possible - by some setting or tweak in Windows XP settings - to view a PDF document in Acrobat Approval 5 Reader, and view another PDF document... -
Older Versions Flash
I am interested in learning Flash, I have messed about with a few demos but want to be able to publish my files properly. The thing is I don't wont... -
Older Mac OS versions and older Macs
Is there any advantage to using older versions of Mac OS with older Macs? Obviously you can't use OSX with an old 8500/120, but (for example) would...



Reply With Quote

