Re: XSLFTextRun definition

2019-01-03 Thread paoim101084
Hi Andi, Thank for providing more details. Well, I am looking forward to getting new release on February. Thanks -- Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html - To unsubscribe, e-mail: user-unsu

Re: XSLFTextRun definition

2019-01-03 Thread kiwiwings
"-format", "null" ... means there wasn't any rendering of POI saved to disc. And you wrote you've opened the xslfTableDemo.pptx in PowerPoint and the description was out of bounds. The problem with text rendering is, ... * that POI doesn't know about hyphenation * the linebreak calculation of AWT

Re: XSLFTextRun definition

2019-01-03 Thread paoim101084
Hi Andi, I am so happy because we can render table into different slides. Thanks for your efforts. Here is what I have: 1. Java 1.8 2. Use system font - I did not change 3. Operating system: window 10 Sorry, I just make the code can run like this: import java.awt.Color; import java.awt.geom.Re

Re: XSLFTextRun definition

2019-01-03 Thread kiwiwings
Was the slide screenshot rendered by POI (with PPTX2PNG) or did you export the slide as Png from Powerpoint? I'm asking as I was of course testing/rendering the output and POIs pngs had the red box around the content. And I also noted, that the calculation is sub optimal and doesn't match the resu

Re: XSLFTextRun definition

2019-01-03 Thread paoim101084
Hi Andi, I have used a nightly [1] and run your program [2], I found description displays out of red bordered box. I think calculation of: XSLFSlide slide =... // a red bordered box in the background, to show/verify the table dimensions XSLFAutoShape as = slide.createAutoShape(); as.setShapeType(S

Re: XSLFTextRun definition

2018-12-22 Thread Andreas Beeker
HI, the modifications are in the trunk - so if you want it immediately, you could use a nightly [1]. The next release of POI (4.1.0) will be around end of February. Well, great if *XSLFTable* or *Slide* can know if /content/ fits with one *slide* and then /remaining content/ will display to *n

Re: XSLFTextRun definition

2018-12-21 Thread paoim101084
Hi Andi, When will be available for those updated? For 4.x.x version, I cannot find these methods: XSLFTable tab =... tab.removeRow(.) tab.updateCellAnchor() ... Anywhere, thank for those things. Well, great if *XSLFTable* or *Slide* can know if /content/ fits with one *slide* and then /remain

Re: XSLFTextRun definition

2018-12-18 Thread Andreas Beeker
I've applied a patch via #63017 [1] So have a look at [2] at method testResize(). This should be somehow what you want - add rows until a max size is reached and then continue on the next page. The dimensions are only approx. correct - hence I've added the rendering via PPTX2PNG - which you mi

Re: XSLFTextRun definition

2018-12-18 Thread paoim101084
Hi Andi, Thank for your detail information. Yes, I want to calculate the table height. Could you help to provide some idea about that? Here is what I did but it seems not work well: static void calculateTableHeight(XSLFTable tab, Rectangle2D anchor) {//FIXME - issue? double total

Re: XSLFTextRun definition

2018-12-18 Thread Andreas Beeker
On 18.12.18 20:47, paoim101084 wrote: Will support all available font family or just get the last one of Array? Although you could easily try that yourself, before posting in the mailing list - the answer is: "it depends", not all font families can be used in Powerpoint - I would only use True

Re: XSLFTextRun definition

2018-12-18 Thread paoim101084
1. Register Font Font font = Font.createFont(Font.TRUETYPE_FONT, new File("input/myfont.ttf")); GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); ge.registerFont(font); String[] names = ge.getAvailableFontFamilyNames(); 2. Set font name as font family: XSLFTextParagraph p

Re: XSLFTextRun definition

2018-12-18 Thread Andreas Beeker
- You need to register font first - just google for "GraphicsEnvironment registerFont" https://stackoverflow.com/search?q=%5Bjava%5D+GraphicsEnvironment+registerFont - then simply set the font name as font family - To unsubscr

Re: XSLFTextRun definition

2018-12-18 Thread paoim101084
Do you know to add custom font to XSLFTextRun? For example, I have font file with extension '.ttf'. Currently, I did like this: XSLFTextParagraph p =... XSLFTextRun r = p.addNewTextRun(); r.setFontFamily("input/myfont.ttf"); Please advise? -- Sent from: http://apache-poi.1045710.n5.nabble.co

Re: XSLFTextRun definition

2018-08-05 Thread Andreas Beeker
Hi Giacomo, > the text it contains is not the text I expect it to contain If you would provide your expected text + the file, that would lift the mysterious curtain ... :) > Is there an official definition of what a XSLFTextRun is? The official POI statement is in the code ... just look at the