Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7995.html
Copy link to clipboard
Copied
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 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PageSizes |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
For those interested, PageSizes are given in points (792 points == 11 inches). Here's the the code for the conversion from points to inches:
Copy link to clipboard
Copied
Bah...
<cfset pageHeight = (PDFInfo.PageSizes[1].height * 0.013888888888889) />
<cfset pageWidth = (PDFInfo.PageSizes[1].width * 0.013888888888889) />