Unsupported format opening PDF to Document object

Using Java SDK 17 and Aspose.Words 24.6 in IntelliJ, when I try to pass a PDF file into the com.aspose.words.Document constructor as either a File or InputStream object, I get “com.aspose.words.UnsupportedFileFormatException: Pdf format is not supported on this platform. Use .NET Standard or .NET 4.6.1 or greater version of Aspose.Words for loading Pdf documents.” Why is this API used as an example in Aspose.Words for Java documentation if it fails?

@roydonnelly Aspose.Words for Java does not support opening pdf files, and we do not provide any information about opening pdf files using java library. If you find such information, please share it with us so that we can fix it on our end. We apologize for any inconvenience caused.

We have a request in our system WORDSJAVA-2511 for such support. As soon as it is ready, you will be notified via the forum.