mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
commit
ce0fa97585
2
TODO
2
TODO
@ -45,7 +45,7 @@ Not enough motivation/Lazy
|
|||||||
- multiple charcode mapped to a same glyph
|
- multiple charcode mapped to a same glyph
|
||||||
- minimum line width of css drawing
|
- minimum line width of css drawing
|
||||||
- separate classes for annotations (such that we don't have to hide all css drawings for printing)
|
- separate classes for annotations (such that we don't have to hide all css drawings for printing)
|
||||||
- Widget Annoataion
|
- Widget Annotation
|
||||||
- handle large negative letter space
|
- handle large negative letter space
|
||||||
- optimization levels
|
- optimization levels
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ Print debug information.
|
|||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-\-proof <0|1|2> (Default: 0)
|
.B \-\-proof <0|1|2> (Default: 0)
|
||||||
Output a proof version. If a positive value is specified, texts are drawn on both text layer and background image for comparision.
|
Output a proof version. If a positive value is specified, texts are drawn on both text layer and background image for comparison.
|
||||||
If 2 is specified, texts on background are in different colors. If png/jpg background format is used,
|
If 2 is specified, texts on background are in different colors. If png/jpg background format is used,
|
||||||
a higher hdpi/vdpi (e.g. 288) is recommended for legibility.
|
a higher hdpi/vdpi (e.g. 288) is recommended for legibility.
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ Viewer.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param{string} detail_str may come from user provided hashtag, need sanitzing
|
* @param{string} detail_str may come from user provided hashtag, need sanitizing
|
||||||
* @param{Page=} src_page page containing the source event (e.g. link)
|
* @param{Page=} src_page page containing the source event (e.g. link)
|
||||||
*/
|
*/
|
||||||
navigate_to_dest : function(detail_str, src_page) {
|
navigate_to_dest : function(detail_str, src_page) {
|
||||||
@ -901,7 +901,7 @@ Viewer.prototype = {
|
|||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
/**
|
/**
|
||||||
* page should of type Page
|
* page should have type Page
|
||||||
* @param{Page} page
|
* @param{Page} page
|
||||||
*/
|
*/
|
||||||
var transform_and_scroll = function(page) {
|
var transform_and_scroll = function(page) {
|
||||||
|
@ -445,7 +445,7 @@ void HTMLRenderer::embed_font(const string & filepath, GfxFont * font, FontInfo
|
|||||||
* re-encoding the font by glyph names
|
* re-encoding the font by glyph names
|
||||||
*
|
*
|
||||||
* for 8bit + TrueType
|
* for 8bit + TrueType
|
||||||
* sort the glpyhs as the original order, and load the code2GID table
|
* sort the glyphs as the original order, and load the code2GID table
|
||||||
* later we will map GID (instead of char code) to Unicode
|
* later we will map GID (instead of char code) to Unicode
|
||||||
*
|
*
|
||||||
* for CID + nonTrueType
|
* for CID + nonTrueType
|
||||||
@ -884,7 +884,7 @@ const FontInfo * HTMLRenderer::install_font(GfxFont * font)
|
|||||||
/*
|
/*
|
||||||
* The 2nd parameter of locateFont should be true only for PS
|
* The 2nd parameter of locateFont should be true only for PS
|
||||||
* which does not make much sense in our case
|
* which does not make much sense in our case
|
||||||
* If we specify gFalse here, font_loc->locaType cannot be gfxFontLocResident
|
* If we specify gFalse here, font_loc->locType cannot be gfxFontLocResident
|
||||||
*/
|
*/
|
||||||
if(auto * font_loc = font->locateFont(xref, nullptr))
|
if(auto * font_loc = font->locateFont(xref, nullptr))
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ namespace pdf2htmlEX {
|
|||||||
* Check whether a unicode character is illegal for the output HTML.
|
* Check whether a unicode character is illegal for the output HTML.
|
||||||
* Unlike PDF readers, browsers has special treatments for such characters (normally treated as
|
* Unlike PDF readers, browsers has special treatments for such characters (normally treated as
|
||||||
* zero-width space), regardless of metrics and glyphs provided by fonts. So these characters
|
* zero-width space), regardless of metrics and glyphs provided by fonts. So these characters
|
||||||
* should be mapped to unicode private area to "cheat" browsers, at the cost of loosing actual
|
* should be mapped to unicode private area to "cheat" browsers, at the cost of losing actual
|
||||||
* unicode values in the HTML.
|
* unicode values in the HTML.
|
||||||
*
|
*
|
||||||
* The following chart shows illegal characters in HTML by webkit, mozilla, and pdf2htmlEX (p2h).
|
* The following chart shows illegal characters in HTML by webkit, mozilla, and pdf2htmlEX (p2h).
|
||||||
|
Loading…
Reference in New Issue
Block a user