mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-08 19:00:33 +00:00
generate 'none' for id_matrix
This commit is contained in:
parent
d1a5f8a3fe
commit
ead9f06281
|
@ -1,5 +1,8 @@
|
||||||
/* Base CSS */
|
/* Base CSS */
|
||||||
/* by Wang Lu */
|
/* by Wang Lu */
|
||||||
|
body {
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
#pdf-main {
|
#pdf-main {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0;
|
top:0;
|
||||||
|
|
|
@ -97,6 +97,14 @@ void HTMLRenderer::export_transform_matrix (long long tm_id, const double * tm)
|
||||||
// we have already shifted the origin
|
// we have already shifted the origin
|
||||||
|
|
||||||
// TODO: recognize common matices
|
// TODO: recognize common matices
|
||||||
|
if(_tm_euqal(tm, id_matrix, 4))
|
||||||
|
{
|
||||||
|
auto prefixes = {"", "-ms-", "-moz-", "-webkit-", "-o-"};
|
||||||
|
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
||||||
|
css_fout << prefix << "transform:none;";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
auto prefixes = {"", "-ms-", "-moz-", "-webkit-", "-o-"};
|
auto prefixes = {"", "-ms-", "-moz-", "-webkit-", "-o-"};
|
||||||
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
for(auto iter = prefixes.begin(); iter != prefixes.end(); ++iter)
|
||||||
{
|
{
|
||||||
|
@ -110,6 +118,7 @@ void HTMLRenderer::export_transform_matrix (long long tm_id, const double * tm)
|
||||||
|
|
||||||
css_fout << "0,0);";
|
css_fout << "0,0);";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
css_fout << "}" << endl;
|
css_fout << "}" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user