cfpdf action="getinfo" does not return PageRotations or PageSizes properties

Description

There is an incompatibility between Lucee and Adobe ColdFusion with cfpdf(action="getInfo");

In ACF, the returned struct includes the following properties:

  • PageRotations - an array of rototion values of 0, 90, 180, 270 for each page in the PDF

  • PageSizes - an array of structs with width and height values for each page in the PDF (taken from TrimBox)

In Lucee, the PageRotations and PageSizes properties are not returned at all.

Activity

Show:
Ben Reid
August 22, 2019, 4:20 PM

For the benefit of others stumbling upon this issue I will provide the work-around code to leverage the PDFBox 2.0.16 library.

Pothys - MitrahSoft
August 28, 2019, 4:05 PM

I've checked and added a features of Page Sizes and PageRotations for cfpdf if action="getinfo".

Pull Request: https://github.com/lucee/extension-pdf/pull/6/

Michael Offner
August 18, 2020, 12:52 AM

Michael Offner
August 18, 2020, 1:40 AM

Fixed

Assignee

Michael Offner

Reporter

Ben Reid

Labels

Fix versions

Affects versions

Priority

New