{"action":"opened","issue":{"url":"https://api.github.com/repos/sarahgoldman/cordova-print-pdf-plugin/issues/9","labels_url":"https://api.github.com/repos/sarahgoldman/cordova-print-pdf-plugin/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sarahgoldman/cordova-print-pdf-plugin/issues/9/comments","events_url":"https://api.github.com/repos/sarahgoldman/cordova-print-pdf-plugin/issues/9/events","html_url":"https://github.com/sarahgoldman/cordova-print-pdf-plugin/issues/9","id":127780499,"number":9,"title":"Can Not Print Malformed PDF","user":{"login":"ericcumbee","id":734209,"avatar_url":"https://avatars.githubusercontent.com/u/734209?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcumbee","html_url":"https://github.com/ericcumbee","followers_url":"https://api.github.com/users/ericcumbee/followers","following_url":"https://api.github.com/users/ericcumbee/following{/other_user}","gists_url":"https://api.github.com/users/ericcumbee/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcumbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcumbee/subscriptions","organizations_url":"https://api.github.com/users/ericcumbee/orgs","repos_url":"https://api.github.com/users/ericcumbee/repos","events_url":"https://api.github.com/users/ericcumbee/events{/privacy}","received_events_url":"https://api.github.com/users/ericcumbee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-20T20:48:30Z","updated_at":"2016-01-20T20:48:30Z","closed_at":null,"body":"I am trying to take a pdf created using jsPDF and print it. So far I've tested it on a Nexus 6 with Android 6, and an ASUS K10 tablet running 4.4.\r\n```\r\nvar print = function(){\r\n      window.plugins.PrintPDF.isPrintingAvailable(function(dataPDF){\r\n        window.plugins.PrintPDF.print({\r\n          data: dataPDF,\r\n          type: 'data',\r\n          title: 'Voter Registration Application',\r\n          dialogX: -1,\r\n          DialogY: -1,\r\n          success:function(result){\r\n            console.log(result);\r\n          },\r\n          error:function(result){\r\n            console.log(result);\r\n          }\r\n        });\r\n      });\r\n    };\r\n    setTimeout(print(pdf),2000);\r\n    \r\n```\r\nBoth cases I am running into the following error. I thought it was something wrong with my pdf that was being generated so I Base64 encoded a pdf i downloaded from the internet and am getting the same result. \r\n\r\nOn Device I am getting an error that the Print Spooler Service has stopped. \r\n```\r\n01-20 15:33:05.215: E/PdfManipulationService(16834): \tat com.android.printspooler.renderer.PdfManipulationService$PdfRendererImpl.openDocument(PdfManipulationService.java:90)\r\n01-20 15:33:05.215: E/PdfManipulationService(16834): \tat com.android.printspooler.renderer.IPdfRenderer$Stub.onTransact(IPdfRenderer.java:58)\r\n01-20 15:33:05.240: E/AndroidRuntime(16312): java.lang.RuntimeException: Cannot print a malformed PDF file\r\n01-20 15:33:05.240: E/AndroidRuntime(16312): \tat android.print.PrintManager$PrintDocumentAdapterDelegate$MyHandler.handleMessage(PrintManager.java:815)\r\n```\r\n"}}