Skip to main content
March 11, 2007
Question

CFdocument

  • March 11, 2007
  • 22 replies
  • 4923 views
hello,

I have a problem with the creation of pdf. My acpplication functioned very well and generated pdf without problem with cfdocument. And for 2 days, the pdf have not been any more to create. When I call my page plus nothing this master key. My navigator functions, but nothing. I does not include/understand! No change was to realize. It is very bizzard…

Somebody with a track?

Thank you in advance for your answers and sorry for my bad English
This topic has been closed for replies.

22 replies

March 23, 2007
I did not understand well, to do one tests not putting a file CSS, but by adding styles CSS in code HTML of CFDocument, it is well that?
BKBK
Community Expert
Community Expert
March 22, 2007
Is it possible that it is my includes external files which pose a problem (CSS)?

Yes, even simple, often negligible, html errors and errors in included files may cause the cfdocument tag to falter. An example in your code is that you do not put the link tag within HTML head tags. What happens when you comment out the lines involving included files?

March 22, 2007
Yes the code that you provided me functions well. But I do not understand why my scripts which functioned very quite front does not function now any more.

Is it possible that it is my includes external files which pose a problem (CSS)?
Participant
March 21, 2007
Could you find a solution? We are facing exactly the same problem
BKBK
Community Expert
Community Expert
March 14, 2007
Any changes when you remove all links to external files, for example, <link...>? Can you create this simple Macromedia example:

<cfdocument format="pdf">
<p>This is a document rendered by the cfdocument tag.</p>
<table width="50%" border="2" cellspacing="2" cellpadding="2">
<tr>
<td><strong>Name</strong></td>
<td><strong>Role</strong></td>
</tr>
<tr>
<td>Bill</td>
<td>Lead</td>
</tr>
<tr>
<td>Susan</td>
<td>Principal Writer</td>
</tr>
<tr>
<td>Adelaide</td>
<td>Part Time Senior Writer</td>
</tr>
<tr>
<td>Thomas</td>
<td>Full Time for 6 months</td>
</tr>
<tr>
<td>Michael</td>
<td>Full Time for 4 months</td>
</tr>
</table>
</cfdocument>
March 14, 2007
I put outsite all query of the cfdocument tag. no change.
I have some difference between my machine of the production and the development, at the level of the Java version:

Production :
Java Version 1.4.2_09
Java VM Version 1.4.2_09-b05
Java Specification Version 1.4

Development :
Java Version 1.4.2_05
Java VM Version 1.4.2_05-b04
Java Specification Version 1.4

But the production is more up to date than the Dev !!!
BKBK
Community Expert
Community Expert
March 14, 2007
I don't think it's good to have a query inside the cfdocument tag. Place the query qFournisseur above the cfdocument tag.

March 14, 2007
This is my example :
----------------------------
<cfdocument format="pdf" orientation="portrait" pagetype="A4" marginbottom="1.5" marginleft="0.5" marginright="0.5" margintop="0.5" unit="cm">
<HTML>
<LINK type="text/css" rel="StyleSheet" href="/_css/printCS.css" />
<cfdocumentitem type="footer">
<cfoutput>
<CENTER>
<font face="MS Sans Serif, Geneva, sans-serif">
#cfdocument.currentpagenumber# / #cfdocument.totalpagecount#<BR>
</font>
</CENTER>
</cfoutput>
</cfdocumentitem>
<cfquery name="qFournisseur" datasource="cad_transfert">
SELECT distinct T_ADRESSE.* FROM T_ADRESSE, t_adr_liens
where adli_noadr = ( select distinct four_id_adre from t_fournisseur where four_actif = 1 and four_id = #vCofc_id_four# )
and adli_type = 3
and adli_noadr_fille = adre_id
order by adre_raison_soc
</cfquery>
<div class="Logo"> </div>
<CFOUTPUT query="qFournisseur">
<div class="adresse#qFournisseur.currentrow#">
<div class="raisonsoc">
<strong>
#ADRE_RAISON_SOC#<BR>
<CFIF trim(ADRE_ADRE1) NEQ "">#ADRE_ADRE1#<BR></CFIF>
</strong>
</div>
...
</HTML>
</cfdocument>
BKBK
Community Expert
Community Expert
March 14, 2007
Could we see the code you use to create the PDF

March 14, 2007
Yes, I have installed the latest update for MX7.0.2. I installed on another server with the same configuration and same files CFM CFC. My pdf functions very well… In more I lately did not install anything on the production machine tool!!! I does not understand!?