Following the information in this thread:
http://www.dynamicdrive.com/forums/s...t-on-a-webpage
I now have a working PDF/HTML system so that I can display the same content in each, within the same space. It's working fairly well.
My new problem is getting browsers to display content identically. Is this doomed to failure?
The specific problem at the moment, although I wouldn't be surprised by more problems later, is fonts. I've set the fonts in mm, but they're still varying just slightly between browsers. In Safari vs Firefox, once in a while an extra word is cut off at the end of a line, and in the end this changes the length of the text by one or two lines-- changing the page breaks.
Is there anything I can do about this? Is it even remotely possible to guarantee the exact same dimensions in two browsers?
My goal is to develop an HTML preview of what will later be generated as PDFs.
For what it's worth, the PHP PDF extension (mpdf) is working fine, and it seems to be identical to Firefox. So for the moment I'm not worrying about it.



Reply With Quote


Bookmarks