How are XSLFParagraphs divided into XSLFTextRuns?

2016-08-26 Thread jsaunders2...@gmail.com
I'm using Apache POI to read in a PowerPoint template with predefined variable 
placeholders( like #variable 1#) and replace the variable placeholders with a 
value. I'm iterating through the XSLFParagraphs on each slide and then 
iterating through the XSLFTextRuns associated with each XSLFParagraph. The 
problem I'm running into is some of the variable placeholders are being split 
into multiple XSLFTextRuns for some reason. So, if I have a placeholder such 
#variable 1#, the first text run might be '#vari' and the next might be 'able 
1#'. This makes doing a find/replace on the placeholder problematic. I'm 
curious as the how paragraph content is split into text runs and if there is 
anything I can do to prevent my variable placeholders from be split into 
multiple text runs.

- Josh S.

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



XSLFTextRun.getFontColor() returns wrong color

2016-09-10 Thread jsaunders2...@gmail.com
I'm seeing that XSLFTextRun.getFontColor() returns the wrong color in some 
instances. It will often return the color of a nearby element rather than the 
color of itself. Anybody know what would cause this and how to fix it?

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]