Chapter 11: Office File Interoperability; Using Cfdocument - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

Chapter 11: Office file interoperability

Adobe ColdFusion provides interfaces to work with PDF, Adobe Flash, and Adobe Connect. ColdFusion 9 now
extends the integration support to OpenOffice and Microsoft Office application formats such as Excel, PowerPoint,
and SharePoint.
Office interoperability supports both OpenOffice and Apache POI libraries (see
on Apache POI). OpenOffice libraries support conversion of all Office file formats, including Word documents to
PDF. When you use the
cfdocument
search for an OpenOffice installation.
If an OpenOffice installation is not found, POI libraries are used. POI libraries support conversion of all office files
except Word documents.
See
"Supported Office conversion

Using cfdocument

In addition to the existing functionality, the
presentations to PDF. All versions of Microsoft Word and Microsoft PowerPoint from 97 to 2003 are supported.
Working with documents using OpenOffice
OpenOffice is an open-source office software that supports word processing, spreadsheets, presentations, and more.
OpenOffice stores data in an international open standard format. See
ColdFusion 9 supports OpenOffice, which uses the
When you use
cfdocument
OpenOffice installation is found, the tag processes the rich text conversion through the OpenOffice libraries.
The
attributes,
cfdocument
complete information about the
Reference.
To install OpenOffice, see
http://download.openoffice.org/index.html
information about installing and configuring OpenOffice.
Example
The following example converts a document, MyDocument.doc, to a PDF file. The PDF conversion occurs only when
you specify the
attribute as
format
Note: When you convert, specify only the absolute path, for example, "c:\documents\MyDocument.doc"
<cfdocument
format="pdf"
srcfile="C:\documents\MyDocument.doc"
filename="C:\documents\MyDocument.pdf">
</cfdocument>
Note: If you do not specify the filename attribute, the converted PDF opens in a browser.
,
, or
cfpresentation
formats" on page 893 for the complete list of supported Office conversion formats.
cfdocument
cfdocument
to convert a document file, the tag first checks for an OpenOffice installation. When the
and
userPassword
permissions
attributes that support OpenOffice document conversion, see the CFML
cfdocument
.
"pdf"
Last updated 1/20/2012
http://poi.apache.org/
tags to convert Office files, the tags first
cfspreadsheet
tag lets you convert Word documents and PowerPoint
http://www.openoffice.org/
tag to convert a Word document (.doc format) to PDF.
are used to open the converted PDF documents. For
. See the ColdFusion 9 Installation Guide for
889
for information
for details.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents