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

cfpdf

Explorer ,
Feb 13, 2013 Feb 13, 2013

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

Views

616

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 13, 2013 Feb 13, 2013

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

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

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
New Here ,
Feb 14, 2013 Feb 14, 2013

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.

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
Explorer ,
Mar 26, 2013 Mar 26, 2013

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:

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
Explorer ,
Mar 26, 2013 Mar 26, 2013

Copy link to clipboard

Copied

LATEST

Bah...

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

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

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