-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Internet Explorer 8 compability layer #136
Comments
I really don't want to put too much efforts into supporting legacy browsers, there are even people asking about IE6 and Firefox 2... But there is |
--fallback is what I meant. But there still are problems with size and position of overlying text. |
Still about 'fallback', the size and position should be actually the same as in the normal mode, this parameter was originally designed for text that are covered by images, which should be hidden, but pdf2htmlEX would reveal them by design. Therefore if normal mode does not work, fallback mode won't either. There are probably two problems, font and size. About font perhaps #83 would help, with woff or eot. It would be implemented in the future, probably when woff becomes popular. But My problem is that I don't have a Windows that I can install softwares... I am not against patches though, as long as they don't bring in too many ugly workarounds. About size, I remember that IE 8 does not support CSS transform? In that case, you may want to try setting 'font-size-multiplier' to 1, which might work (maybe even for normal mode). Sorry that I don't have the environment to verify my guesses. |
WOW! Exactly, CSS transforms not supported and --font-size-multiplier 1 make a great change! Thank you, results seems acceptable, I will test it deeper on older browsers. |
@micred can you elaborate a bit on how you were able to get this working for IE8? For me its just text with no formatting. If possible I would like to get this passable for those users as well. |
Well, it's a bit complex and results are not great. Than you should convert fonts to EOT. Anyway try with --fallback 1 and you get raster image of the pdf with transparant text overlied (be careful: position of the transparent text is the same as with --fallback 0). |
Still I think the compatibility to IE8 is not a worthy job. There are quite a few essential things that have to be compromised. So I'm closing this issue. Thanks for reporting. |
Sadly enough IE8 has still 8.10% of Internet users.
There are situations where IE8 is needed :-( how can we make pdf2htmlex compatible with legacy browsers?
Do you have suggestions? What are the pitfalls? Crocodoc works with IE8 (not yet the 'preview' version).
I see that EOT font conversion is needed, since TTF is not supported but it's not a big deal.
I think that there are also problems with absolute units (like the "pt").
There are problems with scaling, since using of transform CSS.
If making all the stuff IE8-proof is too complicated (or make the code full of dirty workarounds) I was thinking about a legacy version that render the document to image (pdf2image) and put transparent text over it (just to make it searchable and selectable).
The text was updated successfully, but these errors were encountered: