Le 24/07/2013 09:50, Gmail a écrit :
Hi,
ok fine,
This code does not work anymore :
ODPackage outputDocument = new ODPackage(new File("styles.odt"));
contentDom = outputDocument.toSingle();
final Paragraph paragraph = new Paragraph();
contentDom.add(paragraph);
What is the correct way to do it in version 1.3 ?
The add() method is now in TextDocument. So your second line should be
TextDocument contentDom = outputDocument.getTextDocument();
HTH,
Sylvain
--
---
You received this message because you are subscribed to the Google Groups "jOpenDocument" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jopendocument+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.