Limitations - sathishks/pdf2htmlEX GitHub Wiki
This page lists known issues to which I have no (elegant) solutions.
Reflowable Text
Stroked Text
In PDF, different colors (or transparent) can be specified for outline and inside of text.
- WebKit supports text-stroke-color & text-fill-color. No problem.
- For Firefox, text-stroke-color may be simulated by drop shadows in 4 different directions
- But how about when fill-color is transparent?
- No need to mention IE...
Text with clipping path
In PDF, a path may be used to limit the visible region. Currently only rectanglar clipping regions are supported by pdf2htmlEX, for other paths, the bounding box will be used.
- The CSS property
clip-pathmay be useful
Text behind images
If you put an opaque image over some text in PDF, the text should not be visible at all. But in current design of pdf2htmlEX, all text are 'elevated' to the top level such that all such text will be visible.
See Issue 64 for more info.
Writing mode fonts
Text go top-bottom, right-left
- HTML supports such fonts?
- How to position them in HTML?
- CSS rule
writing-modeis not yet well supported.
- CSS rule
Font size rounded by browsers
10.3pt text are usually rendered as 10pt text in web browsers, which often causes inaccuracy in the layout.
Possible solutions:
- Find the nearest fraction number (i.e different multiplier for different font sizes).
- See if the
text-renderingCSS properties is useful.
Relative links: