diff --git a/src/HTMLRenderer/HTMLRenderer.h b/src/HTMLRenderer/HTMLRenderer.h
index 6335d6e..cc40089 100644
--- a/src/HTMLRenderer/HTMLRenderer.h
+++ b/src/HTMLRenderer/HTMLRenderer.h
@@ -170,7 +170,8 @@ protected:
void process_outline_items(GooList * items);
void process_form(std::ostream & out);
-
+ void dump_form_css(std::ostream & out);
+
void set_stream_flags (std::ostream & out);
void dump_css(void);
diff --git a/src/HTMLRenderer/form.cc b/src/HTMLRenderer/form.cc
index d2870a9..7e55ba8 100644
--- a/src/HTMLRenderer/form.cc
+++ b/src/HTMLRenderer/form.cc
@@ -24,7 +24,6 @@ void HTMLRenderer::process_form(ostream & out)
{
FormPageWidgets * widgets = cur_catalog->getPage(pageNum)->getFormWidgets();
int num = widgets->getNumWidgets();
- std::ostringstream derp;
for(int i = 0; i < num; i++)
{
@@ -61,25 +60,14 @@ void HTMLRenderer::process_form(ostream & out)
<< " style=\"opacity:0.0; position: absolute; left: " << std::to_string(x1) <<
"px; bottom: " << std::to_string(y1) << "px;" <<
"width: " << std::to_string(width) << "px; height: " << std::to_string(height) <<
- "px; font-size: 20px; \" class=\"checkbox-" <<
+ "px; font-size: 20px; \" class=\"checkbox checkbox-" <<
std::to_string(pageNum) << "\">X" << endl;
}
}
- //output, at the end, the necessary css
+ //output, at the end, the necessary js
if(num > 0) {
- //this is usable by the whole document and as such should be in dump_css
- out << "" << endl;
-
//this is currently page specific
out << "" << endl;
-
}
}
+void HTMLRenderer::dump_form_css(ostream & out)
+{
+ out << ".text_input {" <<
+ "border: none; " <<
+ "background-color: rgba(255, 255, 255, 0.0);" <<
+ "}" << endl <<
+ ".checkbox:hover {" <<
+ "cursor: pointer;" <<
+ "}" << endl;
+}
+
}
diff --git a/src/HTMLRenderer/general.cc b/src/HTMLRenderer/general.cc
index b614a38..6aac48c 100644
--- a/src/HTMLRenderer/general.cc
+++ b/src/HTMLRenderer/general.cc
@@ -395,6 +395,12 @@ void HTMLRenderer::pre_process(PDFDoc * doc)
void HTMLRenderer::post_process(void)
{
dump_css();
+
+ if (param.include_forms)
+ {
+ dump_form_css(f_css.fs);
+ }
+
// close files if they opened
// it's better to brace single liner LLVM complains
if (param.process_outline)