On Nov 24, 10:24 pm, EthraZa <
ethr...@gmail.com> wrote:
> I have updated the dompdf to 0.6alpha. It looks like a little better
> than 0.5.1. About the differences between browsers (Fx/IE) and dompdf,
> I just give up of get a equivalent output. I have just disabled the
> option to print from browser on my systems (letting it just as a
> preview) and let only the "export to pdf" button enabled. Now the
> documents and reports will be always the same and in all browsers.
> I had to take out the ms core fonts too, because dompdf generate the
> text with a big gap between the lines when using that fonts. Using
> Arial, for example, makes the gap between the lines at the same size
> of the font and that is too much. Using the fonts that came with
> dompdf, it don't happens, so it's ok.
Before you started using the MS fonts with DOMPDF did you successfully
install the fonts for DOMPDF using load_font.php? We'll run some tests
on those fonts to see if there's an issue that needs to be addressed.
To help in testing can you share the OS and PHP version you are using?
> Another problem I'm having is that dompdf is breaking the line (like
> a <br> does) when a span closes and that makes difficult to style the
> document.
>
> ex. <span style="font-weight: bold;"> Item A:</span> <span style="font-
> style: italic;">That text goes to the second line.</span>
I've seen the span problem reported before, but have yet to be able to
duplicate it. As you can see on the following sample:
http://eclecticgeek.com/dompdf/index.php?input_file=f6a0951ca1239c77.htm&paper=&orientation=&dompdf_ver=0.5.1&load_method=1&submit=submit
There does appear to be a slight misalignment of the text. Perhaps on
your system the misalignment is large enough to cause the text in
italics to be pushed down to a new line. Right now that's the only
lead we have, and we'll look into it. Unless we can duplicate the
issue, however, I'm not sure we'll be able to fully address the
problem.