Solved

Coldfusion - converting Excel files to PDF

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

20 Experts available now in Live!

Get 1:1 Help Now