{"action":"created","issue":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/302","repository_url":"https://api.github.com/repos/bytedeco/javacpp-presets","labels_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/302/comments","events_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/302/events","html_url":"https://github.com/bytedeco/javacpp-presets/issues/302","id":183096539,"number":302,"title":"Tesseract PDF output corrupted","user":{"login":"myanonymousname","id":22842096,"avatar_url":"https://avatars.githubusercontent.com/u/22842096?v=3","gravatar_id":"","url":"https://api.github.com/users/myanonymousname","html_url":"https://github.com/myanonymousname","followers_url":"https://api.github.com/users/myanonymousname/followers","following_url":"https://api.github.com/users/myanonymousname/following{/other_user}","gists_url":"https://api.github.com/users/myanonymousname/gists{/gist_id}","starred_url":"https://api.github.com/users/myanonymousname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myanonymousname/subscriptions","organizations_url":"https://api.github.com/users/myanonymousname/orgs","repos_url":"https://api.github.com/users/myanonymousname/repos","events_url":"https://api.github.com/users/myanonymousname/events{/privacy}","received_events_url":"https://api.github.com/users/myanonymousname/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-14T16:40:48Z","updated_at":"2016-10-16T11:15:40Z","closed_at":null,"body":"When using JavaCPP Presets for Tesseract (on 64-bit Ubuntu Linux) the pdf output is corrupted and not readable at all for most document viewers.  I'm not getting any \"formal\" exceptions or errors.\r\n\r\nUsed code:\r\n\r\n        tesseract.TessBaseAPI api = new tesseract.TessBaseAPI();\r\n        if (api.Init(tessdataFolder, tesseractLanguageCode) != 0) {\r\n            throw new IOException(\"tessdata error\");\r\n        }\r\n        \r\n        lept.PIX image = pixRead(inputFile);\r\n        api.SetImage(image);\r\n\r\n        tesseract.TessBaseAPISetOutputName(api, fileFolder + \"/FinalPDF\");\r\n        tesseract.TessBaseAPISetVariable(api, \"tessedit_create_pdf\", \"T\");\r\n\r\n        tesseract.TessResultRenderer renderer;\r\n        renderer = tesseract.TessPDFRendererCreate(fileFolder + \"/FinalPDF\", tessdataFolder);\r\n        tesseract.TessResultRendererBeginDocument(renderer, tessdataFolder);\r\n        tesseract.TessBaseAPIProcessPage(api, image, 0, inputFile, null, 0, renderer);\r\n        tesseract.TessResultRendererEndDocument(renderer);\r\n\r\n        pixDestroy(image);\r\n        tesseract.TessDeleteResultRenderer(renderer);\r\n        \r\n        api.End();"},"comment":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/comments/254040815","html_url":"https://github.com/bytedeco/javacpp-presets/issues/302#issuecomment-254040815","issue_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/302","id":254040815,"user":{"login":"myanonymousname","id":22842096,"avatar_url":"https://avatars.githubusercontent.com/u/22842096?v=3","gravatar_id":"","url":"https://api.github.com/users/myanonymousname","html_url":"https://github.com/myanonymousname","followers_url":"https://api.github.com/users/myanonymousname/followers","following_url":"https://api.github.com/users/myanonymousname/following{/other_user}","gists_url":"https://api.github.com/users/myanonymousname/gists{/gist_id}","starred_url":"https://api.github.com/users/myanonymousname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myanonymousname/subscriptions","organizations_url":"https://api.github.com/users/myanonymousname/orgs","repos_url":"https://api.github.com/users/myanonymousname/repos","events_url":"https://api.github.com/users/myanonymousname/events{/privacy}","received_events_url":"https://api.github.com/users/myanonymousname/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T11:15:40Z","updated_at":"2016-10-16T11:15:40Z","body":"Yes, still the same result."}}
{"actor":{"display_login":"myanonymousname"}}