cfdocument invalid token format pdf

New Here ,
Nov 22, 2014 Nov 22, 2014

Copy link to clipboard

Copied

I keep getting this error:

CFdocument.jpg

Here is the whole tag:

<cfdocument

    format = "PDF"

    backgroundVisible = "no"

    filename = "test.pdf"

    localUrl = "yes"

    marginBottom = "1"

    marginLeft = "1"

    marginRight = "1"

    marginTop = "1"

    mimeType = "text/plain"

    name = "Test"

    orientation = "portrait"

    overwrite = "yes"

    pageType = "letter"

    permissions = "AllowPrinting,AllowCopy"

    permissionspassword = "password to access restricted permissions"

    saveAsName = "Test2"

    unit = "in">

Any advice is very welcome.

Karolus

Views

236

Likes

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
Adobe Community Professional ,
Nov 23, 2014 Nov 23, 2014

Copy link to clipboard

Copied

LATEST

A first guess is that it has to be something other than the attribute, format = "PDF", as that is frequently trodden ground. To debug this, start with the following, simpler code:

<cfdocument

    format = "PDF"

    backgroundVisible = "no"

    filename = "test.pdf"> Some text </cfdocument>

If it fails, then the likely cause is that Coldfusion is unable to access the directory /CFIDE/scripts/. If works, then continue adding attributes, one by one, and testing.

Likes

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