-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Description
Hi,
I am kind of stuck determining the styling of an element. My code looks like this:
if (childNode.getNodeName().equals("text:p")) {
OdfElement odfElement = (OdfElement) childNode;
TextPElement pElement = (TextPElement) odfElement;
Paragraph newP = targetDoc.addParagraph(pElement.getTextContent());
}
Basically I am browsing a source document and selectively add its content to a target document. I would like to preserve styling - in the example above, I am copying a paragrahs text, and then want to apply the same styling.
However, I have no idea how to determine e.g.
- font
- font size
- bold/italic/underline styles
Could you help pointing in the right direction?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels