如何为 Aspose.PDF 设置区域设置
Contents
[
Hide
]
Aspose.PDF for Java 库无法支持具有特定语言-国家组合的区域设置(例如 “en-KR”)。但是,API 中存在为 Aspose.PDF 设置经典区域设置的功能,可以通过调用 com.aspose.pdf.LocaleOptions.setLocale() 方法来使用。
以下代码片段展示了如何使用 Aspose.PDF for Java 设置区域设置:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.Pdf-for-Java | |
com.aspose.pdf.LocaleOptions.setLocale(java.util.Locale.FRANCE); |