Commit 6c7969f3 authored by Albert Astals Cid's avatar Albert Astals Cid

* utils/HtmlFonts.cc: Fix rendering of text colors on complex mode.

       * utils/pdftohtml.cc: Fix rendering of links.
parent add8515d
2007-04-15 Albert Astals Cid <aacid@kde.org>
* utils/HtmlFonts.cc: Fix rendering of text colors on complex mode.
* utils/pdftohtml.cc: Fix rendering of links.
2007-04-07 Jeff Muizelaar <jeff@infidigm.net>
* utils/pdftoabw.cc: Fixing passing the wrong type
......
......@@ -33,10 +33,10 @@ extern GBool xml;
GooString* HtmlFont::DefaultFont=new GooString("Times"); // Arial,Helvetica,sans-serif
HtmlFontColor::HtmlFontColor(GfxRGB rgb){
r=static_cast<int>(255*rgb.r);
g=static_cast<int>(255*rgb.g);
b=static_cast<int>(255*rgb.b);
if (!(Ok(r)&&Ok(b)&&Ok(g))) {printf("Error : Bad color \n");r=0;g=0;b=0;}
r=static_cast<int>(rgb.r/65535.0*255.0);
g=static_cast<int>(rgb.g/65535.0*255.0);
b=static_cast<int>(rgb.b/65535.0*255.0);
if (!(Ok(r)&&Ok(b)&&Ok(g))) {printf("Error : Bad color %d %d %d\n", r, g, b);r=0;g=0;b=0;}
}
GooString *HtmlFontColor::convtoX(unsigned int xcol) const{
......
......@@ -300,7 +300,7 @@ int main(int argc, char *argv[]) {
if (htmlOut->isOk())
{
doc->displayPages(htmlOut, firstPage, lastPage, 72, 72, 0,
gTrue, gFalse, gFalse);
gTrue, gFalse, gTrue);
if (!xml)
{
htmlOut->dumpDocOutline(doc->getCatalog());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment