Unable to save odt format to pdf

23 views
Skip to first unread message

Ranjan

unread,
Feb 24, 2017, 3:58:15 PM2/24/17
to jOpenDocument
Think it works only for "*.ods" files.

OpenDocument doc = new OpenDocument(new File("invoice_template.odt"));

throws an exception
Exception in thread "main" java.lang.IllegalArgumentException: This class is only for ODS files

How do I go about fixing the issue?

Regards

Guillaume Maillard

unread,
Feb 24, 2017, 4:00:39 PM2/24/17
to jopend...@googlegroups.com
Hi,

Isn't this sentence clear enough ?

This class is only for ODS files

Regards,
Guillaume

--

---
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages