Thanks a lot! After some thoughts, I have a question about images. When I encounter a paint which is not a Color, the subsequent shapes are filled in a bufferedImage, then a Fill is created with the resulting stream, and added to the SlideShow. However, if I open the resulting PPT file, there is effectively a Picture, but this Picture is broken.
However, If I create Pictures with the same kind of streams, and add them to the SlideShow, it's working OK. Is my way of doing legit? I don't want to create Picture Objects in this case, because I want to fill only the Shape with the paint data, not just the overall bounding rectangle. Herve Sent from my iPhone On 15 avr. 2011, at 19:53, Yegor Kozlov <[email protected]> wrote: >> - Is it possible to embed Fonts in a PowerPoint file by using the API? It's >> possible to do it by using an existing PowerPoint file master, but I would >> like to do it when I encounter a Font which does not exist in the >> FontCollection. For example is it possible to create a new PPFont "from >> > > HSLF does not support embedding of fonts, you can only reference external > fonts by name. > > >> scratch" using an existing TTF file, and add it to the collection? >> - Is it possible to group Shapes? I tried to use ShapeGroups, but the >> resulting PPT file still did not have groups of Shapes >> > > Yes, you can do that. > > There are many examples in the HSLF unit tests, for example, > https://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestShapes.java# > testShapeGroup() > > > Regards, > Yegor --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
