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.

Thu Feb 23, 2023 10:52 am

While converting a PDF to PDFA1, I have an error message concerning some elements.
The implementation is rather basic:


Code: Select all
public class PdfToPdfA {
    public static void main(String[] args) {
        LicenseProvider.setLicenseFile("src/main/resources/license.elic.xml");
        String sourceFile = "src/main/resources/source/NOTA1.pdf";
        String outputDir = "src/main/resources/output/";

        createPdfA1A(sourceFile, outputDir);
        createPdfA1B(sourceFile, outputDir);
        createPdfA2A(sourceFile, outputDir);
        createPdfA2B(sourceFile, outputDir);
        createPdfA3A(sourceFile, outputDir);
        createPdfA3B(sourceFile, outputDir);

    }

    private static void createPdfA1A(String sourceFile, String outputDir) {
        PdfStandardsConverter converter = new PdfStandardsConverter(sourceFile);
        converter.toPdfA1A(outputDir + "createPdfA1A.pdf");
    }
    private static void createPdfA1B(String sourceFile, String outputDir) {
        PdfStandardsConverter converter = new PdfStandardsConverter(sourceFile);
        converter.toPdfA1B(outputDir + "createPdfA1B.pdf");
    }
   ...
}


Files are correctly generated, but for A1A i have an error while running validation with VERAPdf.

dreamweaver
 
Posts: 2
Joined: Tue Feb 22, 2022 5:04 pm

Fri Feb 24, 2023 8:36 am

Hi,

Thanks for your feedback.
Could you please provide us with your test document to help us do a further investigation? you can send them to us via email (support@e-iceblue.com), attach them here or upload it to OneDrive and share the download link with us. Thanks for your assistance.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Thu Mar 30, 2023 10:09 am

Hi,

Thank you for your patience.
I am pleased to inform you that the issue SPIREPDF-5828 has been resolved. Please update to the latest version, Spire.PDF for Java Version:9.3.11 and here is the download link.
Our website link: https://www.e-iceblue.com/Download/pdf-for-java.html
Install from Maven Repository
Code: Select all
<repositories>
    <repository>
        <id>com.e-iceblue</id>
        <name>e-iceblue</name>
        <url>https://repo.e-iceblue.com/nexus/content/groups/public/</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.pdf</artifactId>
        <version>9.3.11</version>
    </dependency>
</dependencies>


Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF