Open alexTheSwEngineer opened 6 years ago
I have faced same issue while converting PDF->PDF
there are two possible options I've figured out:
PDF->PDF
http://www.ghost4j.org/coreapisamples.htmlPDF->PS->PDF
Did you try to set the right pdfx flag on? https://github.com/zippy1978/ghost4j/blob/master/src/main/java/org/ghost4j/converter/PDFConverter.java#L76
I am having an error trying to convert a PDF to a prepress ready PDF.
This code:
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
and I have instaled ghost* and libgs-dev via apt-get on my system.