mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
Change output format to xhtml.
This commit is contained in:
parent
9c0b2a8a74
commit
5993548c1d
@ -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"/>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#############
|
#############
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user