Extension talk:Mpdf/Archive

Images and TOC
Extension seems to be working great so far except for just a few issues...

The first is that no images appear in the exported pdf. They show up as little white boxes with a red x. Is there anything I need to tweak to get these to display properly? When I hover over the x icons it displays a URL in the format http://servernamehere/mediawiki/index.php?title=File:filenamehere.jpg ..could this be the problem since its not pointing to the actual file location?

The second issue is that the TOC doesn't seem to render properly and often breaks the formatting. Is there any way around this? And is it possible to have the TOC links point to the proper section of the actual exported pdf document itself when clicked? This type of extension is exactly what I've been looking for since I need to be able to export PDF but don't have root access so can't use any of the alternate htmldoc extensions, so appreciate any help you can provide! Thanks in advance


 * Hi. When I hover over the x icons it displays a URL - this is normal. By default, picture in the wiki have a link to the page file. This can be corrected by setting link=. Sample: myfile.jpg


 * TOC links point to the proper section of the actual exported pdf document - mPDF has its own means of ToC Index Bookmarks. Please, read mPDF manual


 * TOC doesn't seem to render properly - I'm working on improving render


 * They show up as little white boxes with a red x - This is true for all images or only some of them?


 * in the near future I will make a few examples showing work of this extension --Pastakhov (talk) 04:23, 7 August 2012 (UTC)


 * Thanks for your response, Pastakhov. The little white boxes with a red x show up for all images. I set showImageErrors to true in order to determine what the problem is and after doing so, I receive the msg "mPDF error: IMAGE Error (http://*serveriphere*/mediawiki/images/2/23/Flag-USA.png): Could not find image file" when attempting to export a page to PDF. Any idea what the fix could be?


 * Mpdf required also gd php module for works with images png, svg and etc... thanks for report problem --Pastakhov (talk) 05:26, 10 August 2012 (UTC)


 * Yeah I already have gd enabled, and have checked to make sure I followed the other requirements exactly as you had written. It's not just png files that don't show up, the other image files (i.e. jpg, gif, etc) are not working at all either. Everything else seems to render in the exported pdf without any issues, it's just the images that show up as red x..and if I click the link that the missing image (red x) refer to, the pictures load in the browser fine they just don't appear in the pdf file...any other ideas how to fix this issue?