Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java PPT Writer?



Hello Joshua!

> Anybody know where I can find a Java implementation of a Powerpoint
> (.ppt) format writer?

> I'm downloading the source to OpenOffice.org to get an idea of what's
> involved, but if someone's already been through the pain of doing this
> in Java, I'd love to leverage that...

There has been a discussion on this topic (see message attached) last
year on the POI mailing list. Would probably be worth checking whether
something went through:

http://jakarta.apache.org/poi/

At least, POIFS will let you painlessly access the PPT file...

Cheers

Luc

--
Luc Girardin Macrofocus GmbH, Wasserwerkstr. 10, CH-8006 Zurich
email: email@hidden
phone: +41 1 350 52 18
fax: +41 1 350 52 19
web: http://www.macrofocus.com/

Where in the world should you travel - or perhaps even relocate - to
pay less, earn more, and improve your living conditions? Find it out
with City'O'Scope, available at http://www.macrofocus.com/cityoscope/
X-Envelope-From: poi-dev-return-3885-luc.girardin=macrofocus.com@jakarta
.apache.org
X-Envelope-To: <email@hidden>
Return-Path: <poi-dev-return-3885-luc.girardin=email@hidden
ache.org>
Received: from nagoya.betaversion.org (host-131-49-18-192.iplanet.com
[192.18.49.131] (may be forged)) by bp6.macrofocus.net (8.11.6/8.11.6)
with SMTP id g99KSDX21883 for <email@hidden>; Wed, 9
Oct 2002 22:28:13 +0200
Received: (qmail 14362 invoked by uid 97); 9 Oct 2002 20:28:43 -0000
Mailing-List: contact email@hidden; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:email@hidden>
List-Subscribe: <mailto:email@hidden>
List-Help: <mailto:email@hidden>
List-Post: <mailto:email@hidden>
List-Id: "POI Developers List" <poi-dev.jakarta.apache.org>
Reply-To: "POI Developers List" <email@hidden>
Delivered-To: mailing list email@hidden
Received: (qmail 14350 invoked by uid 98); 9 Oct 2002 20:28:42 -0000
X-Antivirus: nagoya (v4218 created Aug 14 2002)
To: email@hidden
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: "Andrew C. Oliver" <email@hidden>
Subject: Re: Processing powerpoint documents...
Date: Wed, 09 Oct 2002 16:25:35 -0400
Lines: 40
Message-ID: <ao23f4$n11$email@hidden>
References: <email@hidden
rox.com>
Reply-To: email@hidden
NNTP-Posting-Host: rdu88-247-190.nc.rr.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: main.gmane.org 1034195236 23585 24.88.247.190 (9 Oct 2002
20:27:16 GMT)
X-Complaints-To: email@hidden
NNTP-Posting-Date: Wed, 9 Oct 2002 20:27:16 +0000 (UTC)
User-Agent: Pan/0.11.3 (Unix)
X-Comment-To: "Addy, Jonathan" <email@hidden>
Sender: news <email@hidden>
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

On Wed, 09 Oct 2002 07:23:53 -0400, Addy, Jonathan wrote:

> I'd like to extract the text out of powerpoint documents from Java but
> having read the overview of POIFS I still cannot gauge whether it is
> worthwhile trying to use this technology or not. Before I investigate
> much further can anybody tell me if i'm barking up the right or wrong
> tree?
>
> Thanks,
> Jon.

Okay... So lets start with a basic understanding of what POIFS is and
what it is not. POIFS lets you read and write OLE 2 Compound Document
format. All Office documents are written in OLE 2 Compound Document
format. However OLE 2 Compound Document format is in essence a "zip"
file or archive of sorts that somewhat loosely resembles the old DOS FAT
filesystem. So a PPT is in OLE 2 Compound document format for sure, but
the relationship is much like a bunch of "zipped" html files. So yes you
can unzip them with winzip (POIFS in this analogy) but that still doesn't
let you parse the HTML files.

So eventually I plan to create an API for manipulating PPT (much like
HSSF manipulates Excel files) however it will be after we've basically
finished HSSF and have taken a big hunk out of HDF. This is not to say
it can't start before then, it just will require contributers with the
drive and skill necessary to do it.

The good thing about PPT format is that it is newer and more modern than
Excel and Word format, so it makes use of property sets as opposed to
being written as one huge blob in an OLE 2 CDF file which one has to
write tools to parse the big fat blob. With PPT persumably you'd just
have to interperate the propertyset entries. The bad news is information
on the file format has been heavily guarded from day 1 (so far as I can
tell), so we'll have to be pretty dern methodical about it.

So if you need to read/write PPT in Java, you'd definitely need POIFS,
but you'd also have some additional work to do! And we'd be happy to
have your contributions as part of POI!

-Andy



--
To unsubscribe, e-mail: <mailto:email@hidden>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Java PPT Writer? (From: Joshua Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.