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.
It's a tag, not an attribute.
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:
any ideas cf experts???
nb if I do a dump of test2 I get this:
PDFDocument | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Application | Adobe InDesign CS3 (5.0.4) | ||||||||||||||||||||||||||
Author | [empty string] | ||||||||||||||||||||||||||
CenterWindowOnScreen | no | ||||||||||||||||||||||||||
ChangingDocument | Allowed | ||||||||||||||||||||||||||
Commenting | Allowed | ||||||||||||||||||||||||||
ContentExtraction | Allowed | ||||||||||||||||||||||||||
CopyContent | Allowed | ||||||||||||||||||||||||||
Created | D:20110620135354+01'00' | ||||||||||||||||||||||||||
DocumentAssembly | Allowed | ||||||||||||||||||||||||||
Encryption | No Security | ||||||||||||||||||||||||||
FilePath | [empty string] | ||||||||||||||||||||||||||
FillingForm | Allowed | ||||||||||||||||||||||||||
FitToWindow | no | ||||||||||||||||||||||||||
HideMenubar | no | ||||||||||||||||||||||||||
HideToolbar | no | ||||||||||||||||||||||||||
HideWindowUI | no | ||||||||||||||||||||||||||
Keywords | [empty string] | ||||||||||||||||||||||||||
Language | [empty string] | ||||||||||||||||||||||||||
Modified | D:20110622160912+01'00' | ||||||||||||||||||||||||||
PageLayout | SinglePage | ||||||||||||||||||||||||||
PageRotations |
| ||||||||||||||||||||||||||
PageSizes |
|
Copy link to clipboard
Copied
What happens if you try cfmailparam instead of mimeattach?
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
Copy link to clipboard
Copied
It's a tag, not an attribute.
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>
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
Copy link to clipboard
Copied
get this error:
Copy link to clipboard
Copied
How does the "source" variable get its value?
--
Adam
Copy link to clipboard
Copied
<cfset source = GetDirectoryFromPath(
GetCurrentTemplatePath()
) & "pdf/cont_Editable.pdf">
Copy link to clipboard
Copied
And what does this output:
<cfoutput>
GetCurrentTemplatePath(): [#GetCurrentTemplatePath()#]<br />
source: [#source#]<br />
fileExists(source): [#fileExists(source)#]<br />
</cfoutput>
--
Adam