Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Dec 20, 2021 1:57 pm

How is it possible to set the conformance of a document in Java.
From the forum, in C# you can do something like
Code: Select all
document.Conformance = ...

but I can't find the equivalent in java.
I could find a getConformance, but not a corresponding SetConformance

Regards
Guillaume

GuiPATRY
 
Posts: 18
Joined: Wed Feb 17, 2021 10:18 am

Tue Dec 21, 2021 1:58 am

Hello,

Thanks for your inquiry!

Kindly note that even in C#, the PdfDocument.Conformance method is just a get method too.
GetMethod.png


If you want to change the conformance of a PDF in java, please refer to this article: Convert PDF to PDF/A in Java.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Tue Jan 04, 2022 6:06 am

Hello,

Hope you are doing well!

Has the issue been solved now? Could you please give us some feedback at your convenience?

Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Mon Jan 17, 2022 12:01 pm

Hello

The proposed solution is working.
I would have preferred a method to directly save as a /A pdf, instead of a 2 step approach with a converter, but this is working fine.

Regards
Guillaume PATRY

GuiPATRY
 
Posts: 18
Joined: Wed Feb 17, 2021 10:18 am

Tue Jan 18, 2022 1:21 am

Hello,

Thanks for your feedback!

Glad to hear that your issue has been solved.

If you encounter any issues related to our product in the future, just feel free to contact us.

Have a nice day!

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.PDF