Good morning, After switching from ACF2018 to ACF2...
# adobe
d
Good morning, After switching from ACF2018 to ACF2023 I have a problem with cfdocument. The scaling has changed and some content has been cut off at the left site (see screenshot). The problem only exists on the productive system at HOSTEK. I cannot reproduce this issue with commandbox server on my development system. Both systems (prod/dev) working with ACF2023.0.10 To rule out further environmental differences, I have created a test file for this purpose, which contain only the cfdocument tag and the HTML content. Any suggestions?
The first question is actually: Why can't I reproduce this locally?
m
First thing I'd check (out of the blue) are the installed fonts. Afaik the pdf processor is using the installed fonts on the server. If there's a difference in the spacing this may have effects on the scaling.
d
Hm, I think I cannot check the installed fonts on a shared hosting server
m
Beside this, the units you use in the CSS for sizes and spacings are important. Units like em, rem, etc. have maybe side effects. Make sure you use mm or cm.
d
The font size is set in 'pt' for the pdf
All table etc. are set in percent
m
if you use
pt
as units, this is based on the dpi you've set in the document. If there's a - for whatever reason - different dpi is set (maybe internally) this results in a scale.
d
I do not know, that I can set the dpi anywhere
m
Have you tried doing something like a rectangle with
pt
and another one with
mm
? Just to see if it behave different?
d
I will try this tomorrow. But if there a difference. How/where is this setting?
m
good question. there's a resolution parameter for
cfpdf
. But this shouldn't have any effect on the text (because fonts are vectors)..
d
But I use cfdocument, not cfpdf
m
yes, and there's no param
1
t
pt
shouldn't depend on dpi... it's supposed to be 1/72 of an inch.
px
should depend on the dpi settings. And I think in cfdocument, 1px = 1pt. But admittedly, the last time i played with that was CF8...
d
solved quick'n'dirty: Now I use the scale attribute of cfdocument to reduce the content size similar to previous version
But I did not found the key difference between my delevelopment and the production system what made this adjustment necessary