Solved

Coldfusion - converting Excel files to PDF

Posted on 2014-01-30
2
868 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

789 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