Skip to main content
Participant
May 26, 2018
Question

ColdFusion 2016 and ABCpdf.net

  • May 26, 2018
  • 1 reply
  • 447 views

Does somebody know how to solve the following problem?


Question to ABCpdf.net:

I try to generate a PDF from ColdFusion via the

ABCpdf.dll

It's all 64 bit.

And I get the following error:

Is it a bug in ABCpdf? I do not use the Get_Units function directly.


Answer from ABCpdf.net

In the past other clients have reported something similar. Something occurred on the transition between CF11 and 2016. It used to work, and then somewhere between the two releases, something went wrong in CF.

The UnitType code in the V11 namespace is character-for-character identical to the one in the V10 namespace. Indeed it is also identical all the way back to the V8 namespace.

I wonder if there might be a UnitType class or enum in Java. If so I wonder if perhaps Java is getting confused about which one is which. A difference might occur if you had one namespace selected but not the other. Similarly there are UnitType enums in both V10 and V11 so perhaps it is confusing those.

But... all very speculative. Might I suggest that you run this question past your CF support? They are well placed to explain what is going wrong in a way we are not.


Any ideas? Thanks for help.

    This topic has been closed for replies.

    1 reply

    Participant
    February 10, 2020

    We faced the same issue. Found that the get_unit became case sensitive.

    The following code works for us.

    <cfset doc.set_units(doc.get_units().valueOf("Mm"))>