Highlighted

ColdFusion 2016 and ABCpdf.net

New Here ,
May 26, 2018

Copy link to clipboard

Copied

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.

image.png

And I get the following error:

unnamed.png

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.

Views

191

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

ColdFusion 2016 and ABCpdf.net

New Here ,
May 26, 2018

Copy link to clipboard

Copied

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.

image.png

And I get the following error:

unnamed.png

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.

Views

192

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 26, 2018 0
New Here ,
Feb 10, 2020

Copy link to clipboard

Copied

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"))>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 10, 2020 0