• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ColdFusion 2016 and ABCpdf.net

New Here ,
May 26, 2018 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

348

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
community guidelines
New Here ,
Feb 10, 2020 Feb 10, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
Resources
Documentation