1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

Merge pull request #384 from duanyao/xhtml_output

Change output format to xhtml, and enable --output-filename option.
This commit is contained in:
Lu Wang 2014-07-13 17:20:41 -07:00
commit b45f141f5f
3 changed files with 7 additions and 7 deletions

View File

@ -17,11 +17,11 @@
""" """
<!DOCTYPE html> <!DOCTYPE html>
<!-- Created by pdf2htmlEX (https://github.com/coolwanglu/pdf2htmlex) --> <!-- Created by pdf2htmlEX (https://github.com/coolwanglu/pdf2htmlex) -->
<html> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8"/>
<meta name="generator" content="pdf2htmlEX"> <meta name="generator" content="pdf2htmlEX"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
""" """
############# #############

View File

@ -273,7 +273,7 @@ Viewer.prototype = {
var nodes = this.outline.childNodes; var nodes = this.outline.childNodes;
for (var i = 0, l = nodes.length; i < l; ++i) { for (var i = 0, l = nodes.length; i < l; ++i) {
var cur_node = nodes[i]; var cur_node = nodes[i];
if (cur_node.nodeName === 'UL') { if (cur_node.nodeName.toLowerCase() === 'ul') {
empty = false; empty = false;
break; break;
} }

View File

@ -35,9 +35,9 @@ const std::map<std::string, EmbedStringEntry> EMBED_STRING_MAP({
"\"></script>" }}, "\"></script>" }},
{".png", {&Param::embed_image, {".png", {&Param::embed_image,
"<img alt=\"\" src=\"data:image/png;base64,", "<img alt=\"\" src=\"data:image/png;base64,",
"\">", true, "\"/>", true,
"<img alt=\"\" src=\"", "<img alt=\"\" src=\"",
"\">" }} "\"/>" }}
}); });
const std::map<std::string, std::string> FORMAT_MIME_TYPE_MAP({ const std::map<std::string, std::string> FORMAT_MIME_TYPE_MAP({