Skip to main content
nikos101
Inspiring
July 13, 2011
Answered

Is it possilbe to save pdfs to a variable to be used later, rather than saving to a file?

  • July 13, 2011
  • 1 reply
  • 1582 views

I am contiuing from an unresolved thread I done ages ago@

http://forums.adobe.com/thread/574764?decorator=print&displayFullThread=true

The point of interest is this:

Folks, I don't see anyone suggesting one feature that may help here. You don't really need to create files with these CFPDF* tags if you don't want to.

For  instance, as seems Paule's issue, if one tag creates something that  then another would use (as his CFPDFFORM result then being flattened),  you can use the NAME attribute (instead of destination) to indicate a  variable to hold the output of an earlier step, and then use that  variable in the SOURCE of a later step.

This topic has been closed for replies.
Correct answer Dan_Bracuk

I tried but get this:

It does not allow the attribute(s) CFMAILPARAM. The valid attribute(s) are BCC,CC,CHARSET,DEBUG,FAILTO,FROM,GROUP,GROUPCASESENSITIVE,KEYALIAS,KEYPASSWORD,KEYSTORE,KEYSTOREPASSWORD,MAILERID,MAXROWS,MIMEATTACH,PASSWORD,PORT,PRIORITY,QUERY,REMOVE,REPLYTO,SERVER,SIGN,SPOOLENABLE,STARTROW,SUBJECT,TIMEOUT,TO,TYPE,USERNAME,USESSL,USETLS,WRAPTEXT.   T


It's a tag, not an attribute.

1 reply

nikos101
nikos101Author
Inspiring
July 13, 2011

Im trying to do something like this:

<cfpdfform source="#source#" name="test2" action="populate"  overwrite="yes" >
    <cfpdfformparam name="1" value="1">

  </cfpdfform>

  <cfmail type="html" to="nikos@test.com"
                from="wd"  subject="hi"
                        mimeattach="#test2#"

however I get the error:

The resource coldfusion.pdf.PDFDocWrapper@e9055b was not found.

any ideas cf experts???

nb if I do a dump of test2 I get this:

PDFDocument
ApplicationAdobe InDesign CS3 (5.0.4)
Author[empty string]
CenterWindowOnScreenno
ChangingDocumentAllowed
CommentingAllowed
ContentExtractionAllowed
CopyContentAllowed
CreatedD:20110620135354+01'00'
DocumentAssemblyAllowed
EncryptionNo Security
FilePath[empty string]
FillingFormAllowed
FitToWindowno
HideMenubarno
HideToolbarno
HideWindowUIno
Keywords[empty string]
Language[empty string]
ModifiedD:20110622160912+01'00'
PageLayoutSinglePage
PageRotations
PDFDocumentarray
10
20
30
PageSizes
PDFDocumentarray
1
PDFDocument - struct
height841.89
width595.276
2
PDFDocument - struct
height841.89
width595.276
3
PDFDocument - struct
height841.89
width595.276
Inspiring
July 13, 2011

What happens if you try cfmailparam instead of mimeattach?

nikos101
nikos101Author
Inspiring
July 14, 2011

I tried but get this:

It does not allow the attribute(s) CFMAILPARAM. The valid attribute(s) are BCC,CC,CHARSET,DEBUG,FAILTO,FROM,GROUP,GROUPCASESENSITIVE,KEYALIAS,KEYPASSWORD,KEYSTORE,KEYSTOREPASSWORD,MAILERID,MAXROWS,MIMEATTACH,PASSWORD,PORT,PRIORITY,QUERY,REMOVE,REPLYTO,SERVER,SIGN,SPOOLENABLE,STARTROW,SUBJECT,TIMEOUT,TO,TYPE,USERNAME,USESSL,USETLS,WRAPTEXT.   T