Solved

Coldfusion - converting Excel files to PDF

Posted on 2014-01-30
2
858 Views
Last Modified: 2014-01-30
Hello,

Does anyone know if it's possible to convert Excel files to PDF. I was looking into cfspearsheet but it seems like it's not what I'm looking for. I also looked into OpenOffice but it looks like it can only convert the files to CVS or HTML.

Thank you!
0
Comment
Question by:HumanScaleDev
2 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 39821538
If you're using CF9+ with OpenOffice, try using <cfdocument>. Though the CF docs don't mention Excel => PDF specifically, the conversion is powered by OpenOffice. So whatever conversions OpenOffice supports, cfdocument should support too. Try something like this:

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS692D73AF-6338-495d-9E47-C2ECD8BF9307.html

<cfdocument
    format="pdf"
    srcfile="C:\documents\MyDocument.xls"
    filename="C:\documents\MyDocument.pdf">
</cfdocument>
0
 

Author Closing Comment

by:HumanScaleDev
ID: 39821570
Awesome! thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now