Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Error converting PDF to PDF #61

Open
@alexTheSwEngineer

Description

@alexTheSwEngineer

I am having an error trying to convert a PDF to a prepress ready PDF.

This code:

private void correctPDF(OutputStream result, PDFDocument pdfDocument){
            PDFConverter converter = new PDFConverter();
            converter.setMaxProcessCount(16);
            converter.setPDFSettings(OPTION_PDFSETTINGS_PREPRESS);
            converter.convert(pdfDocument, result);
}

produces this error:
ERROR: org.ghost4j.converter.ConverterException: org.ghost4j.document.DocumentException: Documents of class org.ghost4j.document.PDFDocument are not supported by the component``

Converting the pdf file to a ps file and then back to pdf seems to be working though.

I have this in my pom

            <groupId>net.java.dev.jna</groupId>
            <artifactId>jna</artifactId>
            <version>4.1.0</version>
        </dependency>

        <dependency>
            <groupId>org.ghost4j</groupId>
            <artifactId>ghost4j</artifactId>
            <version>1.0.1</version>
        </dependency>

and I have instaled ghost* and libgs-dev via apt-get on my system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions