tags:

views:

534

answers:

7
A: 

I don't know too much about Cold Fusion, but it must be a CF's bug or problem. The HTML although it looks ugly (because it uses Tables), is "correct". You have a and then a and two 's. There are some CF custom tags there which I do not recognize, but everything seems correct.

The problem has to be elsewhere.

CAn you change the "PDF" for something else? (just to try) ?

Martín Marconcini
A: 

I know that tables and font tags are not the appropriate tools to use, if this were a web page, but the CFDocument tag doesn't implement CSS, so it's all we've got.

Adam Tuttle
A: 

A pity, anyway, is it possible for you to output something other than a PDF?

Martín Marconcini
+2  A: 

A PDF is what I'm after, so I'm not sure how outputting another format would help.

As it turns out, the footer space just wasn't enough to fit all of this text; verified by the fact that changing the font size to 4pt would fit it all in without a problem.

I spent some time attempting to rewrite the footer code using DDX as outlined here and the CFPDF tag to implement it; but even after several hours of hacking away and finally getting a valid DDX as reported by the new isDDX function, the CFPDF tag reported that it was invalid DDX for some reason.

At this point I decided I had wasted enough of the client's time/money and just reformatted the footer to be 2 lines of centered text, which was good enough.

Adam Tuttle
A: 

Well, I'm glad you made it :) At least with a casual hack ;)

As long as the customer doesn't complain. Good luck!

Martín Marconcini
A: 

Did you think this might have had anything to do with page margins?

kooshmoose
+1  A: 

Usually when PDF shows blank text, it's because the font metrics are embedded in the document, but the glyphs are not. I know nothing about ColdFusion, but you might try the following:

  • Try a font other than Tahoma as a test. All PDF readers must support 14 basic fonts, including 4 Helvetica variants, 4 Times variants, 4 Courier variants, Symbol and ZapfDingbats, so those are always safe choices
  • See if ColdFusion offers any control over font embedding
  • Try a list of alternatives in your font declaration, like "Tahoma,Helvetica,sans-serif"
Chris Dolan