Skip navigation
sakonnetweb
Currently Being Moderated

cfdocument format = PDF - does not format correctly

Dec 13, 2010 7:36 AM

Greetings

 

I am simply attempting to print invoices from a query that displays correctly on the cfm result page, but using cfdocument to render a PDF version (to mail out) does not format even remotely close to the cfm page.

 

I tried every conceivable method I know of, including:

 

Formating the cfm page (via CSS and hardcoded table width) to be 612 px X 792 px (8.5 X 11 in), and here is the cfdocument code:

 

<cfdocument
format="pdf" 
pageType="custom"
unit="in"
marginbottom="0.75"
marginleft="0.75"
marginright="0.75"
margintop="0.75"
pageHeight="11"
pageWidth="8.5"
mimeType="text/html"
fontembed="yes"
orientation="portrait">

 

<style type="text/css">
@import url(css/moorings.css);
</style>

 

<html> blah blah </html>
</cfdocument>

 

The rendered PDF file is 4.5 X 5 in- (both in IE and Firefox) What am I missing here?

 

CF 9

 

Thanks in advance, as always.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points