{"action":"created","issue":{"url":"https://api.github.com/repos/reingart/pyfpdf/issues/26","labels_url":"https://api.github.com/repos/reingart/pyfpdf/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/reingart/pyfpdf/issues/26/comments","events_url":"https://api.github.com/repos/reingart/pyfpdf/issues/26/events","html_url":"https://github.com/reingart/pyfpdf/pull/26","id":66581214,"number":26,"title":"Update fpdf.py","user":{"login":"vyscond","id":1111387,"avatar_url":"https://avatars.githubusercontent.com/u/1111387?v=3","gravatar_id":"","url":"https://api.github.com/users/vyscond","html_url":"https://github.com/vyscond","followers_url":"https://api.github.com/users/vyscond/followers","following_url":"https://api.github.com/users/vyscond/following{/other_user}","gists_url":"https://api.github.com/users/vyscond/gists{/gist_id}","starred_url":"https://api.github.com/users/vyscond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyscond/subscriptions","organizations_url":"https://api.github.com/users/vyscond/orgs","repos_url":"https://api.github.com/users/vyscond/repos","events_url":"https://api.github.com/users/vyscond/events{/privacy}","received_events_url":"https://api.github.com/users/vyscond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-06T10:58:01Z","updated_at":"2015-04-06T12:43:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reingart/pyfpdf/pulls/26","html_url":"https://github.com/reingart/pyfpdf/pull/26","diff_url":"https://github.com/reingart/pyfpdf/pull/26.diff","patch_url":"https://github.com/reingart/pyfpdf/pull/26.patch"},"body":"for some reason the ```del info['data']``` was raising an __KeyError__, so i think it's better check before deleting?"},"comment":{"url":"https://api.github.com/repos/reingart/pyfpdf/issues/comments/90046145","html_url":"https://github.com/reingart/pyfpdf/pull/26#issuecomment-90046145","issue_url":"https://api.github.com/repos/reingart/pyfpdf/issues/26","id":90046145,"user":{"login":"vyscond","id":1111387,"avatar_url":"https://avatars.githubusercontent.com/u/1111387?v=3","gravatar_id":"","url":"https://api.github.com/users/vyscond","html_url":"https://github.com/vyscond","followers_url":"https://api.github.com/users/vyscond/followers","following_url":"https://api.github.com/users/vyscond/following{/other_user}","gists_url":"https://api.github.com/users/vyscond/gists{/gist_id}","starred_url":"https://api.github.com/users/vyscond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vyscond/subscriptions","organizations_url":"https://api.github.com/users/vyscond/orgs","repos_url":"https://api.github.com/users/vyscond/repos","events_url":"https://api.github.com/users/vyscond/events{/privacy}","received_events_url":"https://api.github.com/users/vyscond/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T12:43:16Z","updated_at":"2015-04-06T12:43:16Z","body":"This my custom class\r\n\r\n```python\r\nclass MyPDF(FPDF):\r\n\r\n    def header(this):\r\n        # Logo\r\n        this.image('app_folder/logo1.jpg',10,10,12,12)\r\n        this.image('app_folder/logo2.jpg',190,10,12,12)\r\n        # Arial bold 15\r\n        this.set_font('Arial','',9)\r\n        # Move to the right\r\n        this.cell(80)\r\n        # Title\r\n        this.cell(30,4,'Document Title',0,0,'C')\r\n        # Line break\r\n        this.ln(20)\r\n\r\n    # Page footer\r\n    def footer(this):\r\n        # Position at 1.5 cm from bottom\r\n        this.set_y(-15)\r\n        # Arial italic 8\r\n        this.set_font('Arial','I',8)\r\n        # Page number\r\n        this.cell(0,10,'Página '+str(this.page_no())+'/{nb}',0,0,'C')\r\n        this.alias_nb_pages()\r\n```\r\n\r\nand here is how i use it.\r\n\r\n```python\r\npdf = MyPDF()\r\npdf.add_page()\r\npdf.set_font('Arial','B',16)\r\npdf.cell(40,10,'Section Title')\r\npdf.ln()\r\npdf.set_font('Arial','',12)\r\npdf.multi_cell(0,mclh, big_text )\r\n```\r\n\r\nwhats is strange is that i checked the logs from yesterday and the __image__ function just worked fine with the same __.jpg__ files. The error popup today! .-."}}