1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
This commit is contained in:
Lu Wang 2012-09-24 16:43:24 +08:00
parent 30aeef0615
commit 8ab03df921
3 changed files with 12 additions and 6 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
pdf2htmlex (0.4-1~git201209241628r30aee-0ubuntu1) precise; urgency=low
* Regularly re-packing.
-- WANG Lu <coolwanglu@gmail.com> Mon, 24 Sep 2012 16:28:18 +0800
pdf2htmlex (0.4-1~git201209170124r8b4ec-0ubuntu1) precise; urgency=low
* Regularly re-packing.

View File

@ -97,7 +97,7 @@ For some versions of Firefox, however, there will be a problem when the font siz
.B --auto-hint <0|1> (Default: 0)
If set to 1, hints will be generated for the fonts using fontforge.
This may be overrided by --external-hint-tool.
This may be preceded by --external-hint-tool.
.TP
.B --tounicode <-1|0|1> (Default: 0)
A ToUnicode map may be provided for each font in PDF which indicates the 'meaning' of the characters. However often there is better "ToUnicode" info in Type 0/1 fonts, and sometimes the ToUnicode map provided is wrong.
@ -122,7 +122,7 @@ If it's empty, the file name will be determined automatically.
Specify the suffix and format of fonts extracted from the PDF file. They should be consistent.
.TP
.B --external-hint-tool <tool> (Default: "")
If specified, the tool will be called in order to enhanced hinting for fonts, this will override --auto-hint.
If specified, the tool will be called in order to enhanced hinting for fonts, this will precede --auto-hint.
The tool will be called as '<tool> <in.suffix> <out.suffix>', where suffix will be the same as specified for --font-suffix.
.TP

View File

@ -76,8 +76,8 @@ var pdf2htmlEX = (function(){
this.container = $("#pdf-main");
var new_pages = new Array();
var pl= $(".p");
var pbl = $(".b");
var pl= $(".p", this.container);
var pbl = $(".b", this.container);
for(var i = 0, l = pl.length; i < l; ++i) {
new_pages.push(new Page($(pl[i]), $(pbl[i]), false));
}
@ -129,7 +129,7 @@ var pdf2htmlEX = (function(){
for(i = 0; i < l; ++i) {
var p = pl[i];
if(p.p.offset().top + p.p.height() >= 0) break;
if(p.p.position().top + p.p.height() >= 0) break;
if(i > 0) pl[i-1].hide();
}
@ -139,7 +139,7 @@ var pdf2htmlEX = (function(){
var p = pl[i];
p.show();
if(p.p.offset().top > ch) break;
if(p.p.position().top > ch) break;
}
for(++i; i < l; ++i) {