Skip to content

Instantly share code, notes, and snippets.

@dpfranklin
Created May 5, 2013 13:20
Show Gist options
  • Save dpfranklin/5520818 to your computer and use it in GitHub Desktop.
Save dpfranklin/5520818 to your computer and use it in GitHub Desktop.
pdf2htmlEX manifest file
# pdf2htmlEX manifest
# by WangLu
# 2012.09.12
#
# Syntax
# The first char of each line is the command
# Empty lines are ignored
#
# # - comment
# @ - include a file from data dir
# $ - special use for pdf2htmlEX
#
# Special
# If a line contains """ only, all text until next """ will be included
"""
<!DOCTYPE html>
<!-- Created by pdf2htmlEX (http://github.com/coolwanglu/pdf2htmlEX) -->
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX"/>
"""
# base CSS styles
@base.css
# PDF specific CSS styles
$css
# necessary Javascript codes
@jquery.js
@pdf2htmlEX.js
# entry point of pdf2htmlEX
"""
<script type="text/javascript">
new pdf2htmlEX.Viewer('pdf-main', 'pdf-outline');
</script>
"""
"""
<title></title>
</head>
<body>
"""
# The container of outline
# By default this is hidden, pdf2htmlEX.js will add the 'opened' class if it is not empty
# You can add a class 'opened' here if you want it always opened or you don't use pdf2htmlEX.js
# e.g.
# <div id="pdf-outline" class="opened">
"""
<div id="pdf-outline">
"""
$outline
"""
</div>
"""
# The container of PDF pages
# check base.css for an example and requirements of its CSS styles
"""
<div id="pdf-main">
"""
$pages
"""
</div>
"""
"""
</body>
</html>
"""
# MANIFEST END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment