{"action":"created","issue":{"url":"https://api.github.com/repos/zippy1978/ghost4j/issues/61","repository_url":"https://api.github.com/repos/zippy1978/ghost4j","labels_url":"https://api.github.com/repos/zippy1978/ghost4j/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/zippy1978/ghost4j/issues/61/comments","events_url":"https://api.github.com/repos/zippy1978/ghost4j/issues/61/events","html_url":"https://github.com/zippy1978/ghost4j/issues/61","id":277111107,"node_id":"MDU6SXNzdWUyNzcxMTExMDc=","number":61,"title":"Error converting PDF to PDF","user":{"login":"alexTheSwEngineer","id":19691178,"node_id":"MDQ6VXNlcjE5NjkxMTc4","avatar_url":"https://avatars1.githubusercontent.com/u/19691178?v=4","gravatar_id":"","url":"https://api.github.com/users/alexTheSwEngineer","html_url":"https://github.com/alexTheSwEngineer","followers_url":"https://api.github.com/users/alexTheSwEngineer/followers","following_url":"https://api.github.com/users/alexTheSwEngineer/following{/other_user}","gists_url":"https://api.github.com/users/alexTheSwEngineer/gists{/gist_id}","starred_url":"https://api.github.com/users/alexTheSwEngineer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexTheSwEngineer/subscriptions","organizations_url":"https://api.github.com/users/alexTheSwEngineer/orgs","repos_url":"https://api.github.com/users/alexTheSwEngineer/repos","events_url":"https://api.github.com/users/alexTheSwEngineer/events{/privacy}","received_events_url":"https://api.github.com/users/alexTheSwEngineer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-27T17:54:54Z","updated_at":"2018-10-09T14:53:20Z","closed_at":null,"author_association":"NONE","body":"I am having an error trying to convert a PDF to a prepress ready PDF.\r\n\r\nThis code:\r\n```\r\nprivate void correctPDF(OutputStream result, PDFDocument pdfDocument){\r\n            PDFConverter converter = new PDFConverter();\r\n            converter.setMaxProcessCount(16);\r\n            converter.setPDFSettings(OPTION_PDFSETTINGS_PREPRESS);\r\n            converter.convert(pdfDocument, result);\r\n}\r\n```\r\nproduces this error:\r\nERROR: org.ghost4j.converter.ConverterException: org.ghost4j.document.DocumentException: Documents of class org.ghost4j.document.PDFDocument are not supported by the component``\r\n\r\nConverting the pdf file to a ps file and then back to pdf seems to be working though.\r\n\r\nI have this in my pom\r\n```    <dependency>\r\n            <groupId>net.java.dev.jna</groupId>\r\n            <artifactId>jna</artifactId>\r\n            <version>4.1.0</version>\r\n        </dependency>\r\n\r\n        <dependency>\r\n            <groupId>org.ghost4j</groupId>\r\n            <artifactId>ghost4j</artifactId>\r\n            <version>1.0.1</version>\r\n        </dependency>\r\n```\r\nand I have instaled ghost* and libgs-dev via apt-get on my system."},"comment":{"url":"https://api.github.com/repos/zippy1978/ghost4j/issues/comments/428224254","html_url":"https://github.com/zippy1978/ghost4j/issues/61#issuecomment-428224254","issue_url":"https://api.github.com/repos/zippy1978/ghost4j/issues/61","id":428224254,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODIyNDI1NA==","user":{"login":"4F2E4A2E","id":64590,"node_id":"MDQ6VXNlcjY0NTkw","avatar_url":"https://avatars1.githubusercontent.com/u/64590?v=4","gravatar_id":"","url":"https://api.github.com/users/4F2E4A2E","html_url":"https://github.com/4F2E4A2E","followers_url":"https://api.github.com/users/4F2E4A2E/followers","following_url":"https://api.github.com/users/4F2E4A2E/following{/other_user}","gists_url":"https://api.github.com/users/4F2E4A2E/gists{/gist_id}","starred_url":"https://api.github.com/users/4F2E4A2E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4F2E4A2E/subscriptions","organizations_url":"https://api.github.com/users/4F2E4A2E/orgs","repos_url":"https://api.github.com/users/4F2E4A2E/repos","events_url":"https://api.github.com/users/4F2E4A2E/events{/privacy}","received_events_url":"https://api.github.com/users/4F2E4A2E/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T14:53:20Z","updated_at":"2018-10-09T14:53:20Z","author_association":"COLLABORATOR","body":"Did you try to set the right pdfx flag on?\r\nhttps://github.com/zippy1978/ghost4j/blob/master/src/main/java/org/ghost4j/converter/PDFConverter.java#L76"}}
{"actor":{"display_login":"4F2E4A2E"}}