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

need pdf document making tips

New Here ,
Sep 04, 2009 Sep 04, 2009

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.

TOPICS
Getting started
1.1K
Translate
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 ,
Sep 04, 2009 Sep 04, 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?

Translate
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
New Here ,
Sep 04, 2009 Sep 04, 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>

Translate
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 ,
Sep 04, 2009 Sep 04, 2009

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

Translate
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
Guest
Sep 08, 2009 Sep 08, 2009
LATEST

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.

Translate
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