Am I trying to use cfdocument for a task it's fundamentally unsuited
for; have I overlooked something obvious, or is it just broken?

test code:

<cfdocument backgroundvisible = "no"
 encryption = "none"
 format = "PDF"
 filename = "testpdf1.pdf"
 fontembed = "no"
 marginbottom = "0"
 marginleft = "0"
 marginright = "0"
 margintop = "0"
 mimetype = "text/html"
 orientation = "portrait"
 overwrite = "yes"
 pagetype = "A4"
 unit = "cm">
<p style="font-family:Arial;font-size:1pt">1</p>
<p style="font-family:Arial;font-size:2pt">2</p>
<p style="font-family:Arial;font-size:3pt">3</p>
<p style="font-family:Arial;font-size:4pt">4</p>
..
..
..
<p style="font-family:Arial;font-size:130pt">130</p>
</cfdocument>

The PDF file has the correct font sizes for points sized 1-19.
Once it hits 20pt the font sizes are off by 1.
ie:
html: 20pt - pdf: 21pt
html: 21pt - pdf: 22pt
etc.

And if I try it with margins of 2cm, the fonts go very wrong, very
quickly.
ie:
html: 10pt - pdf: 13pt
html: 20pt - pdf: 27pt
html: 50pt - pdf: 66pt

I've checked the created PDF files with both plug-in tools for Acrobat
Pro as well as 3rd party PDF-specific font extraction tools and they're
all giving the same info.

Picking different fonts, both TrueType and Adobe Built-in, from
the CF Font Management screen, as well as setting fontembed="yes"
all yield errors. Only the starting point differs.

Environments:
W2003 - CFMX 7,0,1,116466
W2k - 7,0,2,142559 (coldfusion-70-updater2-win.exe)

Is cfdocument acting under HTML's "near enough's good enough"
philosophy,
or is it something I can fix?

Paul Haddon
Technical Services Manager
Formstar Print Technologies


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to