mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
,
This commit is contained in:
parent
932e21cc0f
commit
292b2d4eed
1
TODO
1
TODO
@ -1,3 +1,4 @@
|
||||
built in support for ttfautohint
|
||||
beforeprint/afterprint
|
||||
|
||||
more information on demo page:
|
||||
|
@ -194,7 +194,7 @@ Page.prototype = {
|
||||
}
|
||||
|
||||
// scale the content box
|
||||
{
|
||||
if (this.loaded) {
|
||||
var cbs = this.content_box.style;
|
||||
cbs.msTransform = cbs.webkitTransform = cbs.transform = 'scale('+this.cur_scale.toFixed(3)+')';
|
||||
}
|
||||
@ -597,13 +597,12 @@ Viewer.prototype = {
|
||||
*/
|
||||
rescale : function (ratio, is_relative, offsetX, offsetY) {
|
||||
var old_scale = this.scale;
|
||||
var new_scale = 1.0;
|
||||
var new_scale = old_scale;
|
||||
// set new scale
|
||||
if (ratio == 0) {
|
||||
new_scale = 1;
|
||||
is_relative = false;
|
||||
}
|
||||
else if (is_relative)
|
||||
} else if (is_relative)
|
||||
new_scale *= ratio;
|
||||
else
|
||||
new_scale = ratio;
|
||||
@ -619,7 +618,7 @@ Viewer.prototype = {
|
||||
var active_page = this.pages[this.cur_page_idx];
|
||||
if (!active_page) return;
|
||||
|
||||
var active_page_ele = active_page.p;
|
||||
var active_page_ele = active_page.page;
|
||||
var prev_offset = [ active_page_ele.offsetLeft, active_page_ele.offsetTop ];
|
||||
|
||||
// Rescale pages
|
||||
|
Loading…
Reference in New Issue
Block a user