Skip to main content
Known Participant
September 4, 2009
Question

need pdf document making tips

  • September 4, 2009
  • 4 replies
  • 1037 views

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

September 8, 2009

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.

Inspiring
September 4, 2009

You can use cfdocument to make pdf files.  If you follow the logic from your other program, at what point do you get stuck?

cfnewAuthor
Known Participant
September 4, 2009

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>

Inspiring
September 4, 2009

Assuming test.cfm is the file that produces excel, did you read it?  What does it do?