Cannot pass SaveOptions to save method

Each time I wan to use pdfDocument.save(OutputStream, SaveOptions) method with SaveOptions object I get:

Caused by: class com.aspose.pdf.internal.p230.z6: Invalid attribute local name.
com.aspose.pdf.internal.p264.z295.(Unknown Source)
com.aspose.pdf.internal.p264.z318.m1(Unknown Source)
com.aspose.pdf.internal.p35.z132.m1(Unknown Source)
com.aspose.pdf.internal.p35.z132.m1(Unknown Source)
com.aspose.pdf.internal.p35.z132.m1(Unknown Source)
com.aspose.pdf.internal.p35.z132.m1(Unknown Source)
com.aspose.pdf.internal.p35.z18.m1(Unknown Source)
com.aspose.pdf.internal.p35.z18.m1(Unknown Source)
com.aspose.pdf.internal.p35.z1.m1(Unknown Source)
com.aspose.pdf.internal.p522.z11.m14(Unknown Source)
com.aspose.pdf.internal.p36.z3.m1(Unknown Source)
com.aspose.pdf.z44.m1(Unknown Source)
com.aspose.pdf.ADocument.m1(Unknown Source)
com.aspose.pdf.Document.m1(Unknown Source)
com.aspose.pdf.ADocument.save(Unknown Source)

com.aspose.pdf.Document.save(Unknown Source)


Version: 9.3.1

Can you let me know what may be wrong?


Best regards,

Wojtek

Hi Wojtek,


Thanks for your inquiry. Please also share your sample code here. We will test the scenario and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tital,

The code is:

com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(pdfInputStream);

DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.setFormat(com.aspose.pdf.SaveFormat.Doc);

pdfDocument.save(outputFileStream, saveOptions);


Invoked on the document attached earlier.


Best regards,

Wojtek

Hi Wojtek,


Thanks for sharing the resource file.

I
have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWJAVA-34425 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

The issues you have found earlier (filed as PDFNEWJAVA-34425) have been fixed in Aspose.Pdf for Java 10.0.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.