- Code: Select all
public static void main(String[] args) {
var doc = new Document();
doc.setQuiteMode(true);
doc.loadFromFile("path_to_template");
doc.replace("#invoiceID", "123", true, true);
doc.isUpdateFields(true);
doc.saveToFile("invoice.pdf", PDF);
}
As a result, I have:
- Code: Select all
Exception in thread "main" class com.spire.doc.packages.sprTtB: Culture Name: en-UA is not a supported culture
I was able to figure out what the problem is in the language or culture of the file, there is an API in C#, but unfortunately, I didn't find how to set it from the Java API.
Thanks a lot!