{"action":"created","issue":{"url":"https://api.github.com/repos/rk700/PyMuPDF/issues/235","repository_url":"https://api.github.com/repos/rk700/PyMuPDF","labels_url":"https://api.github.com/repos/rk700/PyMuPDF/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/rk700/PyMuPDF/issues/235/comments","events_url":"https://api.github.com/repos/rk700/PyMuPDF/issues/235/events","html_url":"https://github.com/rk700/PyMuPDF/issues/235","id":389647695,"node_id":"MDU6SXNzdWUzODk2NDc2OTU=","number":235,"title":"Get page as image for a pdf","user":{"login":"satyaaditya","id":22171232,"node_id":"MDQ6VXNlcjIyMTcxMjMy","avatar_url":"https://avatars0.githubusercontent.com/u/22171232?v=4","gravatar_id":"","url":"https://api.github.com/users/satyaaditya","html_url":"https://github.com/satyaaditya","followers_url":"https://api.github.com/users/satyaaditya/followers","following_url":"https://api.github.com/users/satyaaditya/following{/other_user}","gists_url":"https://api.github.com/users/satyaaditya/gists{/gist_id}","starred_url":"https://api.github.com/users/satyaaditya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyaaditya/subscriptions","organizations_url":"https://api.github.com/users/satyaaditya/orgs","repos_url":"https://api.github.com/users/satyaaditya/repos","events_url":"https://api.github.com/users/satyaaditya/events{/privacy}","received_events_url":"https://api.github.com/users/satyaaditya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-11T08:32:35Z","updated_at":"2018-12-11T11:34:05Z","closed_at":"2018-12-11T10:41:53Z","author_association":"NONE","body":"i tried with following code\r\n`\r\n page = self.pdf.loadPage(page_no)`\r\n` pix = page.getPixmap(matrix=fitz.Identity, colorspace='RGB')`\r\n` pix = fitz.Pixmap(self.pdf, pix)`\r\n` pix.writePNG('satya.png')\r\n`\r\n\r\ni am getting this error \r\n\r\n` line 29, in get_page_as_image\r\n    pix = fitz.Pixmap(self.pdf, pix)\r\n  File \"/home/satyaadityabaratam/venv/local/lib/python2.7/site-packages/fitz/fitz.py\", line 2659, in __init__\r\n    this = _fitz.new_Pixmap(*args)\r\nNotImplementedError: Wrong number or type of arguments for overloaded function 'new_Pixmap'.\r\n  Possible C/C++ prototypes are:\r\n    fz_pixmap_s::fz_pixmap_s(struct fz_colorspace_s *,struct fz_irect_s const *,int)\r\n    fz_pixmap_s::fz_pixmap_s(struct fz_colorspace_s *,struct fz_pixmap_s *)\r\n    fz_pixmap_s::fz_pixmap_s(struct fz_pixmap_s *,float,float,struct fz_irect_s *)\r\n    fz_pixmap_s::fz_pixmap_s(struct fz_pixmap_s *,int)\r\n    fz_pixmap_s::fz_pixmap_s(struct fz_colorspace_s *,int,int,PyObject *,int)\r\n    fz_pixmap_s::fz_pixmap_s(char *)\r\n    fz_pixmap_s::fz_pixmap_s(PyObject *)\r\n    fz_pixmap_s::fz_pixmap_s(struct fz_document_s *,int)\r\n\r\nException TypeError: \"in method 'delete_Pixmap', argument 1 of type 'struct fz_pixmap_s *'\" in <object repr() failed> ignored`\r\n\r\nwhat is wrong in the above code?"},"comment":{"url":"https://api.github.com/repos/rk700/PyMuPDF/issues/comments/446171220","html_url":"https://github.com/rk700/PyMuPDF/issues/235#issuecomment-446171220","issue_url":"https://api.github.com/repos/rk700/PyMuPDF/issues/235","id":446171220,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjE3MTIyMA==","user":{"login":"satyaaditya","id":22171232,"node_id":"MDQ6VXNlcjIyMTcxMjMy","avatar_url":"https://avatars0.githubusercontent.com/u/22171232?v=4","gravatar_id":"","url":"https://api.github.com/users/satyaaditya","html_url":"https://github.com/satyaaditya","followers_url":"https://api.github.com/users/satyaaditya/followers","following_url":"https://api.github.com/users/satyaaditya/following{/other_user}","gists_url":"https://api.github.com/users/satyaaditya/gists{/gist_id}","starred_url":"https://api.github.com/users/satyaaditya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyaaditya/subscriptions","organizations_url":"https://api.github.com/users/satyaaditya/orgs","repos_url":"https://api.github.com/users/satyaaditya/repos","events_url":"https://api.github.com/users/satyaaditya/events{/privacy}","received_events_url":"https://api.github.com/users/satyaaditya/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T11:34:05Z","updated_at":"2018-12-11T11:34:05Z","author_association":"NONE","body":"going through this https://github.com/rk700/PyMuPDF/issues/54"}}
{"actor":{"display_login":"satyaaditya"}}