diff --git a/README.md b/README.md index a981f00..fb26eb2 100644 --- a/README.md +++ b/README.md @@ -19,15 +19,15 @@ Features ---------------------------- * Text Selection * Font embedding -* Proper styling +* Proper styling (Color, Transformation...) * Optimization for Web -* Transformation Not supported yet ---------------------------- * Non-text object (Don't worry, they will be rendered as images) -* Color +* Blend Mode * CJK +* ... Dependency ---------------------------- diff --git a/src/HTMLRenderer.cc b/src/HTMLRenderer.cc index c053c47..67c53be 100644 --- a/src/HTMLRenderer.cc +++ b/src/HTMLRenderer.cc @@ -7,7 +7,6 @@ /* * TODO - * color * font base64 embedding */ @@ -246,7 +245,7 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state) html_fout << "\">"; if(param->readable) html_fout << endl; - cur_fn_id = cur_fs_id = cur_tm_id = 0; + cur_fn_id = cur_fs_id = cur_tm_id = cur_color_id = 0; cur_line_x_offset = 0; cur_line_y = 0; cur_font_size = 0; @@ -547,6 +546,11 @@ long long HTMLRenderer::install_font(GfxFont * font) return new_fn_id; } + //debug + { + std::cerr << "install font: " << new_fn_id << ' ' << font->getID()->num << std::endl; + } + string new_fn = (boost::format("f%|1$x|") % new_fn_id).str(); if(font->getType() == fontType3) {