mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
fix for IE: ttf permission, clickable div
This commit is contained in:
parent
8978e15dc0
commit
24e0195e98
@ -230,6 +230,7 @@ void HTMLRenderer::endPage() {
|
||||
|
||||
/*
|
||||
* Based on pdftohtml from poppler
|
||||
* TODO: CSS for link rectangles
|
||||
*/
|
||||
void HTMLRenderer::processLink(AnnotLink * al)
|
||||
{
|
||||
@ -358,6 +359,9 @@ void HTMLRenderer::processLink(AnnotLink * al)
|
||||
html_fout << "border-style:none;";
|
||||
}
|
||||
|
||||
// fix for IE
|
||||
html_fout << "background-color:rgba(255,255,255,0.000001);";
|
||||
|
||||
double x1,x2,y1,y2;
|
||||
al->getRect(&x1, &y1, &x2, &y2);
|
||||
|
||||
|
@ -385,6 +385,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
||||
}
|
||||
}
|
||||
|
||||
if(0)
|
||||
{
|
||||
/*
|
||||
* [Win|Typo|HHead][Ascent|Descent]
|
||||
|
@ -107,6 +107,10 @@ void ffw_load_font(const char * filename)
|
||||
assert(font->fv);
|
||||
|
||||
cur_fv = font->fv;
|
||||
|
||||
SFDefaultOS2Info(&font->pfminfo, font, font->fontname);
|
||||
font->pfminfo.pfmset = 1;
|
||||
font->changed = 1;
|
||||
}
|
||||
|
||||
static void ffw_do_reencode(Encoding * encoding, int force)
|
||||
@ -273,8 +277,6 @@ void ffw_metric(double * ascent, double * descent, int * em_size)
|
||||
info->os2_typolinegap = 0;
|
||||
info->linegap = 0;
|
||||
|
||||
info->pfmset = 1;
|
||||
sf->changed = true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user