{"action":"created","issue":{"url":"https://api.github.com/repos/segy/Mpdf/issues/10","repository_url":"https://api.github.com/repos/segy/Mpdf","labels_url":"https://api.github.com/repos/segy/Mpdf/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/segy/Mpdf/issues/10/comments","events_url":"https://api.github.com/repos/segy/Mpdf/issues/10/events","html_url":"https://github.com/segy/Mpdf/issues/10","id":59354007,"number":10,"title":"image doesn't work fine, and external files too","user":{"login":"devnasser","id":11248380,"avatar_url":"https://avatars.githubusercontent.com/u/11248380?v=3","gravatar_id":"","url":"https://api.github.com/users/devnasser","html_url":"https://github.com/devnasser","followers_url":"https://api.github.com/users/devnasser/followers","following_url":"https://api.github.com/users/devnasser/following{/other_user}","gists_url":"https://api.github.com/users/devnasser/gists{/gist_id}","starred_url":"https://api.github.com/users/devnasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnasser/subscriptions","organizations_url":"https://api.github.com/users/devnasser/orgs","repos_url":"https://api.github.com/users/devnasser/repos","events_url":"https://api.github.com/users/devnasser/events{/privacy}","received_events_url":"https://api.github.com/users/devnasser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-02-28T19:20:20Z","updated_at":"2016-09-29T18:59:20Z","closed_at":null,"body":"hey segy,\r\nfirstly, thanks a lot for this beauty work :)\r\ni test it on my localhost (using xampp) and work great :)\r\nbut isnt in the webserver,\r\ni test the mpdf directly on my webspace and work fine, but your plugin (in cakephp) doesnt !\r\nthis is the issues:\r\n-css files doesnt work, until change the including methode from : <?php echo $this->Html->css('screen.css');?>  to <link rel=\"stylesheet\" href=\"css/screen.css\" type=\"text/css\" /> and i dont know why !!!!\r\n-images doesnt work too until change from the helper methode <?php $this->html->image('img/images/image.jpg') ?> to <img src=\"img/images/image.jpg\"/> !!  and doesnt work too when add \"/\" like: <img src=\"/img/images/image.jpg\"/>\r\nall those problems happen whene i use the plugin on the webserver,but in my local server (on my pc) all is work fine ! \r\nim trying many methodes and diffirents versions of mpdf (the recent version too 6) without any new !\r\n\r\nhope that you have any idea\r\nthanks :)"},"comment":{"url":"https://api.github.com/repos/segy/Mpdf/issues/comments/250559661","html_url":"https://github.com/segy/Mpdf/issues/10#issuecomment-250559661","issue_url":"https://api.github.com/repos/segy/Mpdf/issues/10","id":250559661,"user":{"login":"Juan09130424","id":12552081,"avatar_url":"https://avatars.githubusercontent.com/u/12552081?v=3","gravatar_id":"","url":"https://api.github.com/users/Juan09130424","html_url":"https://github.com/Juan09130424","followers_url":"https://api.github.com/users/Juan09130424/followers","following_url":"https://api.github.com/users/Juan09130424/following{/other_user}","gists_url":"https://api.github.com/users/Juan09130424/gists{/gist_id}","starred_url":"https://api.github.com/users/Juan09130424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juan09130424/subscriptions","organizations_url":"https://api.github.com/users/Juan09130424/orgs","repos_url":"https://api.github.com/users/Juan09130424/repos","events_url":"https://api.github.com/users/Juan09130424/events{/privacy}","received_events_url":"https://api.github.com/users/Juan09130424/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T18:59:19Z","updated_at":"2016-09-29T18:59:19Z","body":"El problema de los renderizadores de pdf es que no soportan la mayoria de\nlos estilos , por ejemplo no soportan bootstrap ni nada por el estilo , lo\nque e echo es un layout para los css y declarar todos los estilos en el\nhead del layout y hacer los estilos con instruciones basicas. background\nborder todo eso y poco a poco lo vas checando que renderize correctamente.\n\nLee esta documentacion\nhttps://mpdf.github.io/css-stylesheets/supported-css.html\n\n\nhttps://github.com/dompdf/dompdf/wiki/CSSCompatibility\n\n2016-09-29 13:52 GMT-05:00 HugoRojas <notifications@github.com>:\n\n> Genial yo tambien hablo espanol, bueno agradeceria mucho tu ayuda ya cambie\n> de motor ahora uso dompdf solo tengo una duda\n>\n>\n> 2016-09-29 13:46 GMT-05:00 Juan09130424 <notifications@github.com>:\n>\n> > i cant to speak english very well . I am mexican.\n> > but is because pdf no support some css that you use.\n> >\n> >\n> > 2016-09-29 12:55 GMT-05:00 HugoRojas <notifications@github.com>:\n> >\n> > > Thanks for the answer, i already using another plugin which uses dompdf\n> > and\n> > > its working but i just have a confussion about the css files located in\n> > > View/Layouts/pdf/default.ctp because i can't get to load the view as\n> the\n> > > original one.\n> > >\n> > > Could you please help me to find out my issue, it won't take more than\n> 10\n> > > minutes.\n> > >\n> > > We can use Skype and share my screen in you want.\n> > >\n> > > I really appreciate it man. Thank you so much\n> > >\n> > >\n> > > 2016-09-29 12:47 GMT-05:00 Juan09130424 <notifications@github.com>:\n> > >\n> > > > Hi\n> > > > The problem is because mpdf dont soport all css when display pdf.\n> > > > For example i think that you use navbar and i supouse that mpdf not\n> > > support\n> > > > this style.\n> > > >\n> > > > You can to use other mpdf plugin , like dompdf that support more\n> style\n> > .\n> > > >\n> > > > 2016-09-29 11:05 GMT-05:00 HugoRojas <notifications@github.com>:\n> > > >\n> > > > > Hey im using the Mpdf but i facing some problems, please can you\n> help\n> > > me\n> > > > > out. The view after creating the PDF its totally different that the\n> > > > > original... The menu for example is being displayed when its\n> suppose\n> > to\n> > > > > not... Here i put my example... Thaks and i really aprreciate your\n> > help\n> > > > > guys!!\n> > > > >\n> > > > > Controller -> Users\n> > > > >\n> > > > > public function add(){\n> > > > > // Code related to controller\n> > > > > $this->Mpdf->init();\n> > > > > $this->Mpdf->setFilename('Factura.pdf');\n> > > > > $this->Mpdf->setOutput('I');\n> > > > > }\n> > > > >\n> > > > > add.ctp\n> > > > > //Code related to he view\n> > > > > <?php $this->layout=\"PDF\"; ?>\n> > > > >\n> > > > > layouts/PDF.ctp\n> > > > > <?php echo $this->fetch('content'); ?>\n> > > > >\n> > > > > This is the original view\n> > > > >\n> > > > > [image: orignal]\n> > > > > <https://cloud.githubusercontent.com/assets/\n> > > 10120792/18961981/867cea74-\n> > > > 8634-11e6-953e-1ee138a3a8fe.PNG>\n> > > > >\n> > > > > This is the one after rendered to pdf\n> > > > >\n> > > > > [image: rendered]\n> > > > > <https://cloud.githubusercontent.com/assets/\n> > > 10120792/18961993/92d70002-\n> > > > 8634-11e6-9372-6ad81df73af0.PNG>\n> > > > >\n> > > > > Thanks guys!\n> > > > >\n> > > > > —\n> > > > > You are receiving this because you commented.\n> > > > > Reply to this email directly, view it on GitHub\n> > > > > <https://github.com/segy/Mpdf/issues/10#issuecomment-250511398>,\n> or\n> > > mute\n> > > > > the thread\n> > > > > <https://github.com/notifications/unsubscribe-auth/AL-HkaIBiDoPvF_\n> > > > Ilvj2MLeT6P4Mtjb7ks5qu-G8gaJpZM4DnfTS>\n> > > > > .\n> > > > >\n> > > >\n> > > > —\n> > > > You are receiving this because you commented.\n> > > > Reply to this email directly, view it on GitHub\n> > > > <https://github.com/segy/Mpdf/issues/10#issuecomment-250540174>, or\n> > mute\n> > > > the thread\n> > > > <https://github.com/notifications/unsubscribe-auth/\n> > > AJpuWNyCQAbekWqXSBYM3yswWPYMj2zQks5qu_mlgaJpZM4DnfTS>\n> > > > .\n> > >\n> > > >\n> > >\n> > > —\n> > > You are receiving this because you commented.\n> > > Reply to this email directly, view it on GitHub\n> > > <https://github.com/segy/Mpdf/issues/10#issuecomment-250542543>, or\n> mute\n> > > the thread\n> > > <https://github.com/notifications/unsubscribe-auth/AL-\n> > HkdKAJmyG71CCoBttkPdCy-uXSktMks5qu_uvgaJpZM4DnfTS>\n> >\n> > > .\n> > >\n> >\n> > —\n> > You are receiving this because you commented.\n> > Reply to this email directly, view it on GitHub\n> > <https://github.com/segy/Mpdf/issues/10#issuecomment-250556268>, or mute\n> > the thread\n> > <https://github.com/notifications/unsubscribe-auth/AJpuWDg8YAx8_\n> UUmPZf1XTqd44hILEa9ks5qvAeDgaJpZM4DnfTS>\n>\n> > .\n> >\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/segy/Mpdf/issues/10#issuecomment-250557949>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AL-HkfBPpcFk7_xyjJMMw7cQS5adBGCkks5qvAkEgaJpZM4DnfTS>\n> .\n>\n"}}
{"actor":{"display_login":"Juan09130424"}}