{"action":"created","issue":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1464","repository_url":"https://api.github.com/repos/bpampuch/pdfmake","labels_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1464/labels{/name}","comments_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1464/comments","events_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1464/events","html_url":"https://github.com/bpampuch/pdfmake/issues/1464","id":350286804,"node_id":"MDU6SXNzdWUzNTAyODY4MDQ=","number":1464,"title":"convert PDF object into HTML or String","user":{"login":"KishanIos007","id":18045135,"node_id":"MDQ6VXNlcjE4MDQ1MTM1","avatar_url":"https://avatars0.githubusercontent.com/u/18045135?v=4","gravatar_id":"","url":"https://api.github.com/users/KishanIos007","html_url":"https://github.com/KishanIos007","followers_url":"https://api.github.com/users/KishanIos007/followers","following_url":"https://api.github.com/users/KishanIos007/following{/other_user}","gists_url":"https://api.github.com/users/KishanIos007/gists{/gist_id}","starred_url":"https://api.github.com/users/KishanIos007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KishanIos007/subscriptions","organizations_url":"https://api.github.com/users/KishanIos007/orgs","repos_url":"https://api.github.com/users/KishanIos007/repos","events_url":"https://api.github.com/users/KishanIos007/events{/privacy}","received_events_url":"https://api.github.com/users/KishanIos007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-14T05:37:46Z","updated_at":"2018-08-20T08:52:23Z","closed_at":null,"author_association":"NONE","body":"I am using PDF make for making my pdf from predefined document definition. works fine but now i am trying to print the created PDF. I am using ionic framework and using native printer plugin (https://ionicframework.com/docs/native/printer/) for printing but now problem is the printer plugin only takes the HTML/String as an input. \r\n\r\nso do we have any kind of method that can convert PDF object into HTML/string. I have checked all the method that are written in PDFmake js file, but couldn't figure it out.\r\n\r\nHere is my code for reference.\r\n\r\n```\r\nlet printer_ = this.printer;\r\n    var dd = this.createDocumentDefinition();\r\n    var pdf = pdfMake.createPdf(dd);\r\n      printer_.print(_encodedString, options).then((msg)=>{\r\n        console.log(\"Success\",msg);\r\n      },(error)  => {\r\n        console.log(\"Error\", error);\r\n      });\r\n```"},"comment":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/comments/414244977","html_url":"https://github.com/bpampuch/pdfmake/issues/1464#issuecomment-414244977","issue_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1464","id":414244977,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDI0NDk3Nw==","user":{"login":"KishanIos007","id":18045135,"node_id":"MDQ6VXNlcjE4MDQ1MTM1","avatar_url":"https://avatars0.githubusercontent.com/u/18045135?v=4","gravatar_id":"","url":"https://api.github.com/users/KishanIos007","html_url":"https://github.com/KishanIos007","followers_url":"https://api.github.com/users/KishanIos007/followers","following_url":"https://api.github.com/users/KishanIos007/following{/other_user}","gists_url":"https://api.github.com/users/KishanIos007/gists{/gist_id}","starred_url":"https://api.github.com/users/KishanIos007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KishanIos007/subscriptions","organizations_url":"https://api.github.com/users/KishanIos007/orgs","repos_url":"https://api.github.com/users/KishanIos007/repos","events_url":"https://api.github.com/users/KishanIos007/events{/privacy}","received_events_url":"https://api.github.com/users/KishanIos007/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T08:52:23Z","updated_at":"2018-08-20T08:52:23Z","author_association":"NONE","body":"yaah but ionic official plugin printer ( https://ionicframework.com/docs/native/printer/ ) only takes String and HTML as an input so that's why i get stuck here."}}
{"actor":{"display_login":"KishanIos007"}}