{"action":"closed","number":349,"pull_request":{"url":"https://api.github.com/repos/geoext/geoext2/pulls/349","id":33259584,"html_url":"https://github.com/geoext/geoext2/pull/349","diff_url":"https://github.com/geoext/geoext2/pull/349.diff","patch_url":"https://github.com/geoext/geoext2/pull/349.patch","issue_url":"https://api.github.com/repos/geoext/geoext2/issues/349","number":349,"state":"closed","locked":false,"title":"Add outputFormat as a none-custom param of MapfishPrintProvider","user":{"login":"bentrm","id":1186959,"avatar_url":"https://avatars.githubusercontent.com/u/1186959?v=3","gravatar_id":"","url":"https://api.github.com/users/bentrm","html_url":"https://github.com/bentrm","followers_url":"https://api.github.com/users/bentrm/followers","following_url":"https://api.github.com/users/bentrm/following{/other_user}","gists_url":"https://api.github.com/users/bentrm/gists{/gist_id}","starred_url":"https://api.github.com/users/bentrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bentrm/subscriptions","organizations_url":"https://api.github.com/users/bentrm/orgs","repos_url":"https://api.github.com/users/bentrm/repos","events_url":"https://api.github.com/users/bentrm/events{/privacy}","received_events_url":"https://api.github.com/users/bentrm/received_events","type":"User","site_admin":false},"body":"I have the requirement to \"print\" other formats than pdf via Geoserver printing and thought this may be interesting for upstream as well.\r\nRight now I have problems to configure Geoserver printing to work with other formats than PDF so this has not been tested \"live\" but only via programmatic tests. I also changed the print-form example to include the outputFormat option but the hosted printing service also fails on delivering the supported formats (as of info.json it should deal with PNG for example).\r\n\r\n````\r\nError while generating PDF:\r\njava.lang.RuntimeException: java.io.IOException: Cannot run program \"/usr/bin/convert\": error=2, Datei oder Verzeichnis nicht gefunden\r\n\tat org.mapfish.print.output.NativeProcessOutputFactory$ImageOutput.print(NativeProcessOutputFactory.java:202)\r\n\tat org.mapfish.print.MapPrinter.print(MapPrinter.java:184)\r\n\tat org.mapfish.print.servlet.MapPrinterServlet.doCreatePDFFile(MapPrinterServlet.java:336)\r\n\tat org.mapfish.print.servlet.MapPrinterServlet.createAndGetPDF(MapPrinterServlet.java:155)\r\n\tat org.mapfish.print.servlet.MapPrinterServlet.doGet(MapPrinterServlet.java:86)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:621)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:722)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)\r\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.io.IOException: Cannot run program \"/usr/bin/convert\": error=2, Datei oder Verzeichnis nicht gefunden\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)\r\n\tat org.mapfish.print.output.NativeProcessOutputFactory$ImageOutput.createImage(NativeProcessOutputFactory.java:277)\r\n\tat org.mapfish.print.output.NativeProcessOutputFactory$ImageOutput.print(NativeProcessOutputFactory.java:193)\r\n\t... 22 more\r\nCaused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden\r\n\tat java.lang.UNIXProcess.forkAndExec(Native Method)\r\n\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:186)\r\n\tat java.lang.ProcessImpl.start(ProcessImpl.java:130)\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)\r\n\t... 24 more\r\n`````\r\n\r\nIf I understand this correctly the printing plugin is trying to convert the generated PDF via ImageMagick command into the desired outputFormat as requested via POST to create.json (described [here](http://www.mapfish.org/doc/print/installation.html#with-image-output-line)).","created_at":"2015-04-14T13:58:42Z","updated_at":"2015-07-01T06:56:26Z","closed_at":"2015-07-01T06:56:26Z","merged_at":"2015-07-01T06:56:26Z","merge_commit_sha":"9bf5d9183a0e89a50b6212511ba522ebb438ec0a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geoext/geoext2/pulls/349/commits","review_comments_url":"https://api.github.com/repos/geoext/geoext2/pulls/349/comments","review_comment_url":"https://api.github.com/repos/geoext/geoext2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geoext/geoext2/issues/349/comments","statuses_url":"https://api.github.com/repos/geoext/geoext2/statuses/080498af3fbf49e9aa0435b9a93fb763747dab9d","head":{"label":"bentrm:printformat","ref":"printformat","sha":"080498af3fbf49e9aa0435b9a93fb763747dab9d","user":{"login":"bentrm","id":1186959,"avatar_url":"https://avatars.githubusercontent.com/u/1186959?v=3","gravatar_id":"","url":"https://api.github.com/users/bentrm","html_url":"https://github.com/bentrm","followers_url":"https://api.github.com/users/bentrm/followers","following_url":"https://api.github.com/users/bentrm/following{/other_user}","gists_url":"https://api.github.com/users/bentrm/gists{/gist_id}","starred_url":"https://api.github.com/users/bentrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bentrm/subscriptions","organizations_url":"https://api.github.com/users/bentrm/orgs","repos_url":"https://api.github.com/users/bentrm/repos","events_url":"https://api.github.com/users/bentrm/events{/privacy}","received_events_url":"https://api.github.com/users/bentrm/received_events","type":"User","site_admin":false},"repo":{"id":23426788,"name":"geoext2","full_name":"bentrm/geoext2","owner":{"login":"bentrm","id":1186959,"avatar_url":"https://avatars.githubusercontent.com/u/1186959?v=3","gravatar_id":"","url":"https://api.github.com/users/bentrm","html_url":"https://github.com/bentrm","followers_url":"https://api.github.com/users/bentrm/followers","following_url":"https://api.github.com/users/bentrm/following{/other_user}","gists_url":"https://api.github.com/users/bentrm/gists{/gist_id}","starred_url":"https://api.github.com/users/bentrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bentrm/subscriptions","organizations_url":"https://api.github.com/users/bentrm/orgs","repos_url":"https://api.github.com/users/bentrm/repos","events_url":"https://api.github.com/users/bentrm/events{/privacy}","received_events_url":"https://api.github.com/users/bentrm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bentrm/geoext2","description":"GeoExt 2 — JavaScript Toolkit for Rich Web Mapping Applications","fork":true,"url":"https://api.github.com/repos/bentrm/geoext2","forks_url":"https://api.github.com/repos/bentrm/geoext2/forks","keys_url":"https://api.github.com/repos/bentrm/geoext2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bentrm/geoext2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bentrm/geoext2/teams","hooks_url":"https://api.github.com/repos/bentrm/geoext2/hooks","issue_events_url":"https://api.github.com/repos/bentrm/geoext2/issues/events{/number}","events_url":"https://api.github.com/repos/bentrm/geoext2/events","assignees_url":"https://api.github.com/repos/bentrm/geoext2/assignees{/user}","branches_url":"https://api.github.com/repos/bentrm/geoext2/branches{/branch}","tags_url":"https://api.github.com/repos/bentrm/geoext2/tags","blobs_url":"https://api.github.com/repos/bentrm/geoext2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bentrm/geoext2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bentrm/geoext2/git/refs{/sha}","trees_url":"https://api.github.com/repos/bentrm/geoext2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bentrm/geoext2/statuses/{sha}","languages_url":"https://api.github.com/repos/bentrm/geoext2/languages","stargazers_url":"https://api.github.com/repos/bentrm/geoext2/stargazers","contributors_url":"https://api.github.com/repos/bentrm/geoext2/contributors","subscribers_url":"https://api.github.com/repos/bentrm/geoext2/subscribers","subscription_url":"https://api.github.com/repos/bentrm/geoext2/subscription","commits_url":"https://api.github.com/repos/bentrm/geoext2/commits{/sha}","git_commits_url":"https://api.github.com/repos/bentrm/geoext2/git/commits{/sha}","comments_url":"https://api.github.com/repos/bentrm/geoext2/comments{/number}","issue_comment_url":"https://api.github.com/repos/bentrm/geoext2/issues/comments{/number}","contents_url":"https://api.github.com/repos/bentrm/geoext2/contents/{+path}","compare_url":"https://api.github.com/repos/bentrm/geoext2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bentrm/geoext2/merges","archive_url":"https://api.github.com/repos/bentrm/geoext2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bentrm/geoext2/downloads","issues_url":"https://api.github.com/repos/bentrm/geoext2/issues{/number}","pulls_url":"https://api.github.com/repos/bentrm/geoext2/pulls{/number}","milestones_url":"https://api.github.com/repos/bentrm/geoext2/milestones{/number}","notifications_url":"https://api.github.com/repos/bentrm/geoext2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bentrm/geoext2/labels{/name}","releases_url":"https://api.github.com/repos/bentrm/geoext2/releases{/id}","created_at":"2014-08-28T12:22:57Z","updated_at":"2015-04-14T14:24:25Z","pushed_at":"2015-06-11T12:57:21Z","git_url":"git://github.com/bentrm/geoext2.git","ssh_url":"git@github.com:bentrm/geoext2.git","clone_url":"https://github.com/bentrm/geoext2.git","svn_url":"https://github.com/bentrm/geoext2","homepage":"http://geoext.github.io/geoext2/","size":36041,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"geoext:master","ref":"master","sha":"cf670259d8b3503f191cafca3de5e6cf55d63556","user":{"login":"geoext","id":507290,"avatar_url":"https://avatars.githubusercontent.com/u/507290?v=3","gravatar_id":"","url":"https://api.github.com/users/geoext","html_url":"https://github.com/geoext","followers_url":"https://api.github.com/users/geoext/followers","following_url":"https://api.github.com/users/geoext/following{/other_user}","gists_url":"https://api.github.com/users/geoext/gists{/gist_id}","starred_url":"https://api.github.com/users/geoext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoext/subscriptions","organizations_url":"https://api.github.com/users/geoext/orgs","repos_url":"https://api.github.com/users/geoext/repos","events_url":"https://api.github.com/users/geoext/events{/privacy}","received_events_url":"https://api.github.com/users/geoext/received_events","type":"Organization","site_admin":false},"repo":{"id":4224061,"name":"geoext2","full_name":"geoext/geoext2","owner":{"login":"geoext","id":507290,"avatar_url":"https://avatars.githubusercontent.com/u/507290?v=3","gravatar_id":"","url":"https://api.github.com/users/geoext","html_url":"https://github.com/geoext","followers_url":"https://api.github.com/users/geoext/followers","following_url":"https://api.github.com/users/geoext/following{/other_user}","gists_url":"https://api.github.com/users/geoext/gists{/gist_id}","starred_url":"https://api.github.com/users/geoext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoext/subscriptions","organizations_url":"https://api.github.com/users/geoext/orgs","repos_url":"https://api.github.com/users/geoext/repos","events_url":"https://api.github.com/users/geoext/events{/privacy}","received_events_url":"https://api.github.com/users/geoext/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geoext/geoext2","description":"GeoExt 2 — JavaScript Toolkit for Rich Web Mapping Applications","fork":false,"url":"https://api.github.com/repos/geoext/geoext2","forks_url":"https://api.github.com/repos/geoext/geoext2/forks","keys_url":"https://api.github.com/repos/geoext/geoext2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geoext/geoext2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geoext/geoext2/teams","hooks_url":"https://api.github.com/repos/geoext/geoext2/hooks","issue_events_url":"https://api.github.com/repos/geoext/geoext2/issues/events{/number}","events_url":"https://api.github.com/repos/geoext/geoext2/events","assignees_url":"https://api.github.com/repos/geoext/geoext2/assignees{/user}","branches_url":"https://api.github.com/repos/geoext/geoext2/branches{/branch}","tags_url":"https://api.github.com/repos/geoext/geoext2/tags","blobs_url":"https://api.github.com/repos/geoext/geoext2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geoext/geoext2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geoext/geoext2/git/refs{/sha}","trees_url":"https://api.github.com/repos/geoext/geoext2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geoext/geoext2/statuses/{sha}","languages_url":"https://api.github.com/repos/geoext/geoext2/languages","stargazers_url":"https://api.github.com/repos/geoext/geoext2/stargazers","contributors_url":"https://api.github.com/repos/geoext/geoext2/contributors","subscribers_url":"https://api.github.com/repos/geoext/geoext2/subscribers","subscription_url":"https://api.github.com/repos/geoext/geoext2/subscription","commits_url":"https://api.github.com/repos/geoext/geoext2/commits{/sha}","git_commits_url":"https://api.github.com/repos/geoext/geoext2/git/commits{/sha}","comments_url":"https://api.github.com/repos/geoext/geoext2/comments{/number}","issue_comment_url":"https://api.github.com/repos/geoext/geoext2/issues/comments{/number}","contents_url":"https://api.github.com/repos/geoext/geoext2/contents/{+path}","compare_url":"https://api.github.com/repos/geoext/geoext2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geoext/geoext2/merges","archive_url":"https://api.github.com/repos/geoext/geoext2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geoext/geoext2/downloads","issues_url":"https://api.github.com/repos/geoext/geoext2/issues{/number}","pulls_url":"https://api.github.com/repos/geoext/geoext2/pulls{/number}","milestones_url":"https://api.github.com/repos/geoext/geoext2/milestones{/number}","notifications_url":"https://api.github.com/repos/geoext/geoext2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geoext/geoext2/labels{/name}","releases_url":"https://api.github.com/repos/geoext/geoext2/releases{/id}","created_at":"2012-05-04T11:22:35Z","updated_at":"2015-06-26T13:14:34Z","pushed_at":"2015-07-01T06:56:26Z","git_url":"git://github.com/geoext/geoext2.git","ssh_url":"git@github.com:geoext/geoext2.git","clone_url":"https://github.com/geoext/geoext2.git","svn_url":"https://github.com/geoext/geoext2","homepage":"http://geoext.github.io/geoext2/","size":60325,"stargazers_count":127,"watchers_count":127,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":114,"mirror_url":null,"open_issues_count":29,"forks":114,"open_issues":29,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geoext/geoext2/pulls/349"},"html":{"href":"https://github.com/geoext/geoext2/pull/349"},"issue":{"href":"https://api.github.com/repos/geoext/geoext2/issues/349"},"comments":{"href":"https://api.github.com/repos/geoext/geoext2/issues/349/comments"},"review_comments":{"href":"https://api.github.com/repos/geoext/geoext2/pulls/349/comments"},"review_comment":{"href":"https://api.github.com/repos/geoext/geoext2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geoext/geoext2/pulls/349/commits"},"statuses":{"href":"https://api.github.com/repos/geoext/geoext2/statuses/080498af3fbf49e9aa0435b9a93fb763747dab9d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"weskamm","id":1381363,"avatar_url":"https://avatars.githubusercontent.com/u/1381363?v=3","gravatar_id":"","url":"https://api.github.com/users/weskamm","html_url":"https://github.com/weskamm","followers_url":"https://api.github.com/users/weskamm/followers","following_url":"https://api.github.com/users/weskamm/following{/other_user}","gists_url":"https://api.github.com/users/weskamm/gists{/gist_id}","starred_url":"https://api.github.com/users/weskamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weskamm/subscriptions","organizations_url":"https://api.github.com/users/weskamm/orgs","repos_url":"https://api.github.com/users/weskamm/repos","events_url":"https://api.github.com/users/weskamm/events{/privacy}","received_events_url":"https://api.github.com/users/weskamm/received_events","type":"User","site_admin":false},"comments":9,"review_comments":1,"commits":3,"additions":96,"deletions":3,"changed_files":4}}