Copy link to clipboard
Copied
Hi,
In my application i had to create a link called Save as PDF and when i click that i need to create the report on the pdf document.
I need to know how can i make that Save as PDF link to work hen i click on it.
we had option for making excel document but i need same logic for pdf. Can anyone help me in this.
Thanks.
Copy link to clipboard
Copied
You can use cfdocument to make pdf files. If you follow the logic from your other program, at what point do you get stuck?
Copy link to clipboard
Copied
for excel form making they use logic like this
i need to know what i have to use for making pdf link.
<cfif NOT StructKeyExists(attributes, "make_excel")>
<cfoutput>
<a href="test.cfm?zone_no=#attributes.fname#&period=#attributes.period#&make_excel=y" class="displayOnly">Save as an Excel Spreadsheet</a>
</cfoutput>
</cfif>
Copy link to clipboard
Copied
Assuming test.cfm is the file that produces excel, did you read it? What does it do?
Copy link to clipboard
Copied
What version of CF are you using?
If it is a recent version, look up the CFDOCUMENT tag. One of the output options is PDF. That should get you going in the right direction.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more