You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Felix Kalka <in...@felix-kalka.de> on 2008/07/31 01:03:13 UTC

HSLF: using master slides from source ppt in another ppt

Hi,
is it possible to use the MainMasters from one ppt in another?

regards,
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: HSLF: using master slides from source ppt in another ppt

Posted by Yegor Kozlov <ye...@dinom.ru>.
Yes, in theory it should be possible.

The tricky part is to make sure that all shared resources (Fonts and Pictures) are properly defined in the Document record.
Suppose you assemble a ppt from Document, MainMaster and Slide records, all from different slide shows.

Basically you need to do the following:

  - All sheets in ppt must be defined in a corresponding Document.SlideListWithText.
  - All fonts must be registered in Document.Environment.FontCollection.
  - All picture data must be in the Pictures data stream and the pictures must be described in Document.PPDrawingGroup
  - Construct PersistPtr and UserEditAtom records.
  - Write all records to a binary stream in the correct order


Yegor
> Hi,
> is it possible to use the MainMasters from one ppt in another?
> 
> regards,
> Felix
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org