You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Yegor Kozlov <ye...@dinom.ru> on 2008/08/01 09:02:41 UTC

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

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