{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/872","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/872/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/872/events","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/872","id":277752648,"number":872,"title":"Having Prawn option compress to be an optional parameter (to deal with file sizes of generated PDFs)","user":{"login":"prasadus92","id":6492594,"avatar_url":"https://avatars3.githubusercontent.com/u/6492594?v=4","gravatar_id":"","url":"https://api.github.com/users/prasadus92","html_url":"https://github.com/prasadus92","followers_url":"https://api.github.com/users/prasadus92/followers","following_url":"https://api.github.com/users/prasadus92/following{/other_user}","gists_url":"https://api.github.com/users/prasadus92/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadus92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadus92/subscriptions","organizations_url":"https://api.github.com/users/prasadus92/orgs","repos_url":"https://api.github.com/users/prasadus92/repos","events_url":"https://api.github.com/users/prasadus92/events{/privacy}","received_events_url":"https://api.github.com/users/prasadus92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-29T13:23:12Z","updated_at":"2017-11-30T10:18:39Z","closed_at":null,"author_association":"NONE","body":"Currently, the Prawn options - `compress` and `optimize-objects` are disabled by default. Can we have these as optional parameters? \r\nI agree that there is an alternative way of using Ghostscript to optimize the file size but it's a burden to have it as a dependency.\r\n\r\nhttps://github.com/asciidoctor/asciidoctor-pdf/blob/bb4727203fca94a24defd3aa36696e8fedcafd6d/lib/asciidoctor-pdf/converter.rb#L282"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/comments/348144612","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/872#issuecomment-348144612","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/872","id":348144612,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars2.githubusercontent.com/u/79351?v=4","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2017-11-30T10:18:39Z","updated_at":"2017-11-30T10:18:39Z","author_association":"OWNER","body":"The reason these flags are not enabled is because they corrupt the output document. The author of Prawn even recommends against using them, as far as I remember. ghostscript handles compressing and optimizing without errors and does a much better job at it.\r\n\r\nThere is a good alternative solution. [hexapdf](https://github.com/gettalong/hexapdf) can read in a PDF file and optimize and compress it probably even better than ghostscript. What we could do is document the steps that show how to do this. We just can't integrate it directly into Asciidoctor PDF because of license incompatibility. \r\n\r\nSee https://github.com/gettalong/hexapdf/blob/master/examples/optimizing.rb"}}
{"actor":{"display_login":"mojavelinux"}}