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

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

Enthusiast ,
Jul 13, 2011 Jul 13, 2011

Copy link to clipboard

Copied

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.

TOPICS
Advanced techniques

Views

1.3K

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

correct answers 1 Correct answer

LEGEND , Jul 14, 2011 Jul 14, 2011

It's a tag, not an attribute.

Votes

Translate

Translate
Enthusiast ,
Jul 13, 2011 Jul 13, 2011

Copy link to clipboard

Copied

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

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
LEGEND ,
Jul 13, 2011 Jul 13, 2011

Copy link to clipboard

Copied

What happens if you try cfmailparam instead of mimeattach?

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
Enthusiast ,
Jul 14, 2011 Jul 14, 2011

Copy link to clipboard

Copied

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

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
LEGEND ,
Jul 14, 2011 Jul 14, 2011

Copy link to clipboard

Copied

It's a tag, not an attribute.

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
Enthusiast ,
Jul 16, 2011 Jul 16, 2011

Copy link to clipboard

Copied

thanks this produces the new pdf into a var:

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

but how do I flatten this?

I am not allowed to dot his:

<cfpdf action="write" flatten="yes" source="#test2#"
  name="test2" overwrite="yes"> </cfpdf>

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
LEGEND ,
Jul 16, 2011 Jul 16, 2011

Copy link to clipboard

Copied

I am not allowed to dot his:

<cfpdf action="write" flatten="yes" source="#test2#"
  name="test2" overwrite="yes"> </cfpdf>

"not allowed to"?  Why not?

--

Adam

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
Enthusiast ,
Jul 16, 2011 Jul 16, 2011

Copy link to clipboard

Copied

get this error:

The  file or directory  (C:\Inetpub\wwwroot\FLEX\bookingsystem\coldfusion.pdf.PDFDocWrapper@15be106)  specified in the source attribute in the CFPDF tag does not exist.

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
LEGEND ,
Aug 03, 2011 Aug 03, 2011

Copy link to clipboard

Copied

How does the "source" variable get its value?

--

Adam

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
Enthusiast ,
Aug 09, 2011 Aug 09, 2011

Copy link to clipboard

Copied

<cfset source =  GetDirectoryFromPath(
GetCurrentTemplatePath()
) & "pdf/cont_Editable.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
LEGEND ,
Aug 09, 2011 Aug 09, 2011

Copy link to clipboard

Copied

LATEST

And what does this output:

<cfoutput>

GetCurrentTemplatePath(): [#GetCurrentTemplatePath()#]<br />

source: [#source#]<br />

fileExists(source): [#fileExists(source)#]<br />

</cfoutput>

--
Adam

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