Skip to main content
This topic has been closed for replies.

3 replies

Denard Springle
Participating Frequently
March 26, 2013

For those interested, PageSizes are given in points (792 points == 11 inches). Here's the the code for the conversion from points to inches:

Denard Springle
Participating Frequently
March 26, 2013

Bah...

<cfset pageHeight = (PDFInfo.PageSizes[1].height * 0.013888888888889) />

<cfset pageWidth = (PDFInfo.PageSizes[1].width * 0.013888888888889) />

Participant
February 14, 2013

There is a bug when you use merge and your merge list only has one file in it. In this instance you have to add the attribute "pages", which is documented above as only being required when package="true"

Perhaps this is just an undocumented feature though as it seems the accepted way to split a pdf into seperate documents is to use the merge action and specify the pages to output as a new pdf.

Participant
February 14, 2013

I can't believe how lazy this documentation is for action="getinfo": "For a complete list of information elements, use the cfdump tag, as the following code shows:" So here is a structure I got from this action:

struct

Application

[empty string]

Author

[empty string]

CenterWindowOnScreen

[empty string]

ChangingDocument

Allowed

Commenting

Allowed

ContentExtraction

Allowed

CopyContent

Allowed

Created

D:20130213162229-07'00'

DocumentAssembly

Allowed

Encryption

No Security

FilePath

servername\path\filename.pdf

FillingForm

Allowed

FitToWindow

[empty string]

HideMenubar

[empty string]

HideToolbar

[empty string]

HideWindowUI

[empty string]

Keywords

[empty string]

Language

[empty string]

Modified

D:20130213162229-07'00'

PageLayout

SinglePage

PageRotations

array

1

0

2

0

3

0

4

0

5

0

6

0

7

0

8

0

9

0

PageSizes

array

1

struct

height

792

width

612

2

struct

height

792

width

612

3

struct

height

792

width

612

4

struct

height

792

width

612

5

struct

height

792

width

612

6

struct

height

792

width

612

7

struct

height

792

width

612

8

struct

height

792

width

612

9

struct

height

792

width

612

Printing

Allowed

Producer

iText 2.1.0 (by lowagie.com)

Properties

[ ]

Secure

Allowed

ShowDocumentsOption

[empty string]

ShowWindowsOption

[empty string]

Signing

Allowed

Subject

[empty string]

Title

[empty string]

TotalPages

9

Trapped

[empty string]

Version

1.4