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
Description
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
Labels
No labels