SOURCES: pdftohtml-nobodycolors_opt.patch (NEW) - added `-nobodyco...
twittner
twittner at pld-linux.org
Thu Jul 7 20:29:10 CEST 2005
Author: twittner Date: Thu Jul 7 18:29:10 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- added `-nobodycolors' option - don't set bgcolor="#A0A0A0", (v)link in
<BODY> - it happens when pdftohtml is invoked with certain options,
`-noframes' i.e.)
---- Files affected:
SOURCES:
pdftohtml-nobodycolors_opt.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/pdftohtml-nobodycolors_opt.patch
diff -u /dev/null SOURCES/pdftohtml-nobodycolors_opt.patch:1.1
--- /dev/null Thu Jul 7 20:29:10 2005
+++ SOURCES/pdftohtml-nobodycolors_opt.patch Thu Jul 7 20:29:05 2005
@@ -0,0 +1,57 @@
+diff -Nur pdftohtml-0.36.b/src/HtmlOutputDev.cc pdftohtml-0.36.n/src/HtmlOutputDev.cc
+--- pdftohtml-0.36.b/src/HtmlOutputDev.cc 2003-06-25 00:41:27.000000000 +0200
++++ pdftohtml-0.36.n/src/HtmlOutputDev.cc 2005-07-06 19:26:28.523990936 +0200
+@@ -45,6 +45,7 @@
+ extern GBool xml;
+ extern GBool showHidden;
+ extern GBool noMerge;
++extern GBool noBodyColors;
+
+ static GString* basename(GString* str){
+
+@@ -645,8 +646,11 @@
+ fputs("-->\n</STYLE>\n",pageFile);
+
+ if( !noframes )
+- {
+- fputs("</HEAD>\n<BODY bgcolor=\"#A0A0A0\" vlink=\"blue\" link=\"blue\">\n",pageFile);
++ {
++ if( !noBodyColors )
++ fputs("</HEAD>\n<BODY bgcolor=\"#A0A0A0\" vlink=\"blue\" link=\"blue\">\n",pageFile);
++ else
++ fputs("</HEAD>\n<BODY>\n",pageFile);
+ }
+
+ if( !ignore )
+@@ -949,7 +953,11 @@
+
+ dumpMetaVars(page);
+ fprintf(page,"</HEAD>\n");
+- fprintf(page,"<BODY bgcolor=\"#A0A0A0\" vlink=\"blue\" link=\"blue\">\n");
++
++ if( !noBodyColors )
++ fprintf(page, "</HEAD>\n<BODY bgcolor=\"#A0A0A0\" vlink=\"blue\" link=\"blue\">\n");
++ else
++ fprintf(page, "</HEAD>\n<BODY>\n");
+ }
+ }
+ ok = gTrue;
+diff -Nur pdftohtml-0.36.b/src/pdftohtml.cc pdftohtml-0.36.n/src/pdftohtml.cc
+--- pdftohtml-0.36.b/src/pdftohtml.cc 2003-06-25 00:41:27.000000000 +0200
++++ pdftohtml-0.36.n/src/pdftohtml.cc 2005-07-06 19:13:32.367984584 +0200
+@@ -56,6 +56,7 @@
+ static GString* getInfoDate(Dict *infoDict, char *key);
+
+ static char textEncName[128] = "";
++GBool noBodyColors = gFalse;
+
+ static ArgDesc argDesc[] = {
+ {"-f", argInt, &firstPage, 0,
+@@ -98,6 +99,7 @@
+ "owner password (for encrypted files)"},
+ {"-upw", argString, userPassword, sizeof(userPassword),
+ "user password (for encrypted files)"},
++ {"-nobodycolors", argFlag, &noBodyColors, 0, "don\'t set colors in <BODY>"},
+ {NULL}
+ };
+
================================================================
More information about the pld-cvs-commit
mailing list