Summary: | When changing text content, formatting is lost. | ||
---|---|---|---|
Product: | POI | Reporter: | Mark <mark.horninger> |
Component: | HSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED INVALID | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 3.8-FINAL | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Mark
2012-06-04 17:26:17 UTC
I know that the trace log entries reference the wrong method name. I assure you that it is receiving a powerpoint file. The text handling has been changed a lot and now the formatting/styles will be kept for every paragraph and text run and in the end it's combined when the file is saved - the older method was to change the formatting in-place which might have lead to a formatting loss. Please have a look into the documentation of org.apache.poi.sl.usermodel.TextShape for the new handling, this describes when the formatting is lost now, e.g. when calling setText() If you have problems with the new handling, feel free to reopen this bug with a Short, Self Contained, Correct (Compilable), Example (see http://sscce.org), i.e. I'm not trying to figure out a problem based on some code ripped out of report generation source. |