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

Set theme jekyll-theme-tactile and migrate Page Generator content

This commit is contained in:
Trent Petersen 2018-01-22 09:41:53 -06:00
parent 7e1ca18f48
commit 83af4e3568
4 changed files with 117 additions and 206 deletions

8
_config.yml Normal file
View File

@ -0,0 +1,8 @@
title: pdf2htmlEX
description: A PDF to HTML converter
google_analytics:
show_downloads: true
theme: jekyll-theme-tactile
gems:
- jekyll-mentions

View File

@ -1,205 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css' />
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>pdf2htmlEX by coolwanglu</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35082434-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<!-- Facebook -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header>
<div class="inner">
<h1><img src="images/pdf2htmlEX.svg" class="logo">pdf2htmlEX</h1>
<h2>Publishing PDF Online</h2>
<a href="https://github.com/coolwanglu/pdf2htmlEX" class="button"><small>View project on</small>GitHub</a>
</div>
</header>
<div id="content-wrapper">
<div class="inner clearfix">
<section id="main-content">
<p>A beautiful demo is worth a thousand words:</p>
<ul>
<li><a href="http://coolwanglu.github.com/pdf2htmlEX/demo/geneve.html"><strong>Typography</strong></a></li>
<li><a href="http://coolwanglu.github.com/pdf2htmlEX/demo/cheat.html"><strong>Formulas</strong></a></li>
<li><a href="http://coolwanglu.github.com/pdf2htmlEX/demo/issue65_en.html"><strong>Magazine</strong></a></li>
</ul>
<h2>What is pdf2htmlEX?</h2>
<p>pdf2htmlEX renders PDF files in HTML, utilizing modern Web technologies, aims to provide an accuracy rendering, while keeping optimized for Web display.
Text, fonts and formats are natively preserved in HTML, math formulas, figures and images are also supported.</p>
<p>pdf2htmlEX is also a publishing tool, almost 50 options make it flexible for many different use cases: PDF preview, book/magazine publishing, personal resume...</p>
<h2>Why HTML?</h2>
<p>
This is an era of Web. HTML, together with CSS and JavaScript, provides the flexibility allowing you to embed documents with beautiful themes,
consistent bahivours and useful features. User experience will also be significantly improved,
documents will be plugin-free and interactive, users can read while downloading.</p>
<p><a href="https://github.com/coolwanglu/pdf2htmlEX/wiki/Introduction">Learn more...</a></p>
<h2>Contact</h2>
<ul>
<li><a href="https://twitter.com/pdf2htmlEX">@pdf2htmlEX</a></li>
<li><a href="http://pdf2htmlex.blogspot.com/">pdf2htmlEX Blog</a></li>
<li><a href="mailto:pdf2htmlex@googlegroups.com">Mailing List</a></li>
</ul>
<p>More info at <a href="http://github.com/coolwanglu/pdf2htmlEX">coolwanglu/pdf2htmlEX@github</a>.<p>
</section>
<aside id="sidebar">
<!--
<a href="https://github.com/coolwanglu/pdf2htmlEX/zipball/master" class="button">
<small>Download</small>
.zip file
</a>
<a href="https://github.com/coolwanglu/pdf2htmlEX/tarball/master" class="button">
<small>Download</small>
.tar.gz file
</a>
-->
<p class="repo-owner">Project maintained by <a href="https://github.com/coolwanglu">coolwanglu</a>.</p>
<hr />
<div id="socialbuttons">
<div>
<!-- Facebook -->
<div class="fb-like" data-href="http://coolwanglu.github.com/pdf2htmlEX/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>
</div><div>
<!-- Twitter -->
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://coolwanglu.github.com/pdf2htmlEX/" data-text="pdf2htmlEX: Precise PDF to HTML Converter" data-via="coolwanglu" data-hashtags="pdf2htmlEX">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div><div>
<!-- Google+ -->
<div class="g-plusone" data-size="medium" data-href="http://coolwanglu.github.com/pdf2htmlEX/"></div>
<script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>
</div><div>
<script type="text/javascript" charset="utf-8">
(function(){
var _w = 72 , _h = 16;
var param = {
url:location.href,
type:'3',
count:'1', /**是否显示分享数1显示(可选)*/
appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
title:'pdf2htmlEX: PDF至HTML精确转换器', /**分享的文字内容(可选默认为所在页面的title)*/
pic:'', /**分享图片的路径(可选)*/
ralateUid:'1461145964', /**关联用户的UID分享微博会@该用户(可选)*/
language:'zh_cn', /**设置语言zh_cn|zh_tw(可选)*/
rnd:new Date().valueOf()
}
var temp = [];
for( var p in param ){
temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
}
document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>
<!--
</div><div>
<a name="xn_share" type="button_count_right" href="http://coolwanglu.github.com/pdf2htmlEX">分享</a><script src="http://static.connect.renren.com/js/share.js" type="text/javascript"></script>
</div><div>
<script type="text/javascript" charset="utf-8">
(function(){
var p = [], w=130, h=24,
lk = {
url:'http://coolwanglu.github.com/pdf2htmlEX/'||location.href, /*喜欢的URL(不含如分页等无关参数)*/
title:'pdf2htmlEX: PDF至HTML精确转换器'||document.title, /*喜欢标题(可选)*/
description:'', /*喜欢简介(可选)*/
image:'' /*喜欢相关图片的路径(可选)*/
};
for(var i in lk){
p.push(i + '=' + encodeURIComponent(lk[i]||''));
}
document.write('<iframe scrolling="no" frameborder="0" allowtransparency="true" src="http://www.connect.renren.com/like/v2?'+p.join('&')+'" style="width:'+w+'px;height:'+h+'px;"></iframe>');
})();
</script>
-->
</div>
</div>
<hr />
<h2>Consider supporting the author if you like pdf2htmlEX</h2>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="background-color:transparent;">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="DMPH5HEXYUP32">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
<h3>Donators - Thank you!</h3>
<ul>
<li>Markus Doppelbauer</li>
<li>Deepak Thukral</li>
<li>Jørn Skifter Andersen</li>
<li>telkoth</li>
<li>Timothy Peterson</li>
<li>Nick Sergeant</li>
<li>Vineet Markan</li>
<li>William Bagayoko</li>
<li>John Detwiler</li>
<li>NEUVOO INC.</li>
<li>Walter Lehn</li>
<li>Curt Coffee</li>
<li>Fagbokforlaget</li>
<li>Recruiterbox</li>
<li>郑勰</li>
<li>Robin Pain</li>
<li>François Boulogne</li>
<li>Roberto Go</li>
<li>Peter Levai</li>
<li>THUAN Vo</li>
</ul>
<!-- pdf2htmlEx mentioned in twitter -->
<div style="width:200px;">
<a class="twitter-timeline" href="https://twitter.com/search?q=pdf2htmlEX" data-widget-id="308131096871178244">Tweets about "pdf2htmlEX"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<hr />
<p>This page was generated by <a href="http://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.</p>
</aside>
</div>
</div>
</body>
</html>

109
index.md Normal file
View File

@ -0,0 +1,109 @@
# pdf2html**EX**
A beautiful demo is worth a thousand words:
[**Typography**](http://coolwanglu.github.com/pdf2htmlEX/demo/geneve.html) [Original](https://github.com/raphink/geneve_1564/raw/master/geneve_1564.pdf)
[**Formulas**](http://coolwanglu.github.com/pdf2htmlEX/demo/cheat.html) [Original](http://www.tug.org/texshowcase/cheat.pdf)
[**Scientific Paper**](http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html) [Original](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.148.349&rep=rep1&type=pdf)
[**Chinese**](http://coolwanglu.github.com/pdf2htmlEX/demo/chn.html) [Original](http://files.cnblogs.com/phphuaibei/git%E6%90%AD%E5%BB%BA.pdf)
**WINDOWS XP USERS: Please make sure ClearType is turned on**
(Control Panel -> Display -> Appearance -> Effects -> "Use the following method to smooth edges of screen fonts" -> ClearType)
## Introduction
pdf2htmlEX renders PDF files in HTML, utilizing modern Web technologies, aims to provide an accuracy rendering, while keeping optimized for Web display.
It is optimized for modern web browsers such as Mozilla Firefox & Google Chrome.
This program is designed for scientific papers with complicate formulas and figures, so a precise rendering is also the #1 concern. But of course general PDF files are also supported.
## Features
* Single HTML file output
* Precise rendering
* Text Selection
* Font embedding & reencoding for Web
* Proper styling (Color, Transformation...)
* Links
* Optimization for Web
### Not supported yet
* Type 3 fonts
* Non-text object (Don't worry, they will be rendered as images)
## Get started
### Ubuntu
There is a Ubuntu PPA set up at [here](https://launchpad.net/~coolwanglu/+archive/pdf2htmlex).
### ArchLinux
Special thanks to Arthur Titeica for the [AUR Package](https://aur.archlinux.org/packages.php?ID=62426).
### Build from source
#### Dependency
* CMake, pkg-config
* compilers support C++11, for example
* GCC >= 4.4.6
* I heard about successful build with Clang
* libpoppler with xpdf header >= 0.20.0 (compile with --enable-xpdf-headers)
* Install libpng (and headers) BEFORE you compile libpoppler if you want background images generated
* Install poppler-data if your want CJK support
* fontforge (with header files)
**Build On Windows**
I've tested with CYGWIN without any problem, and I believe it also works on MinGW without many modifications.
#### Compiling
cmake . && make && sudo make install
## Usage
pdf2htmlEX /path/to/foobar.pdf
pdf2htmlEX --help
## LICENSE
GPLv2 & GPLv3 Dual licensed
**pdf2htmlEX is totally free, please credit pdf2htmlEX if you use it**
**Please consider sponsoring it if you use it for commercial purpose**
**Font extraction, conversion or redistribution may be illegal, please check your local laws**
## Credits
pdf2htmlEX is inspired by the following projects:
* pdftops & pdftohtml from poppler
* MuPDF
* PDF.js
* Crocodoc
* Google Doc
## Contact
Suggestions and questions are welcome.
Please read [FAQ](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ) before sending an email to me. Or your message might be ignored.
* Lu Wang <coolwanglu@gmail.com>
### Special Thanks
* Hongliang Tian <tatetian@gmail.com>

View File

@ -1 +0,0 @@
{"name":"pdf2htmlEX","body":"# pdf2html**EX**\r\n\r\nA beautiful demo is worth a thousand words:\r\n\r\n[**Typography**](http://coolwanglu.github.com/pdf2htmlEX/demo/geneve.html) [Original](https://github.com/raphink/geneve_1564/raw/master/geneve_1564.pdf)\r\n\r\n[**Formulas**](http://coolwanglu.github.com/pdf2htmlEX/demo/cheat.html) [Original](http://www.tug.org/texshowcase/cheat.pdf)\r\n\r\n[**Scientific Paper**](http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html) [Original](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.148.349&rep=rep1&type=pdf)\r\n\r\n[**Chinese**](http://coolwanglu.github.com/pdf2htmlEX/demo/chn.html) [Original](http://files.cnblogs.com/phphuaibei/git%E6%90%AD%E5%BB%BA.pdf)\r\n\r\n\r\n**WINDOWS XP USERS: Please make sure ClearType is turned on** \r\n\r\n(Control Panel -> Display -> Appearance -> Effects -> \"Use the following method to smooth edges of screen fonts\" -> ClearType)\r\n\r\n## Introduction\r\n\r\npdf2htmlEX renders PDF files in HTML, utilizing modern Web technologies, aims to provide an accuracy rendering, while keeping optimized for Web display.\r\n\r\nIt is optimized for modern web browsers such as Mozilla Firefox & Google Chrome.\r\n\r\nThis program is designed for scientific papers with complicate formulas and figures, so a precise rendering is also the #1 concern. But of course general PDF files are also supported.\r\n\r\n## Features\r\n\r\n* Single HTML file output \r\n* Precise rendering \r\n* Text Selection\r\n* Font embedding & reencoding for Web\r\n* Proper styling (Color, Transformation...)\r\n* Links\r\n* Optimization for Web \r\n\r\n### Not supported yet\r\n\r\n* Type 3 fonts\r\n* Non-text object (Don't worry, they will be rendered as images)\r\n\r\n## Get started\r\n\r\n### Ubuntu \r\n\r\nThere is a Ubuntu PPA set up at [here](https://launchpad.net/~coolwanglu/+archive/pdf2htmlex).\r\n\r\n### ArchLinux\r\n\r\nSpecial thanks to Arthur Titeica for the [AUR Package](https://aur.archlinux.org/packages.php?ID=62426).\r\n\r\n### Build from source\r\n\r\n#### Dependency\r\n\r\n* CMake, pkg-config\r\n* compilers support C++11, for example\r\n * GCC >= 4.4.6\r\n * I heard about successful build with Clang \r\n* libpoppler with xpdf header >= 0.20.0 (compile with --enable-xpdf-headers)\r\n * Install libpng (and headers) BEFORE you compile libpoppler if you want background images generated\r\n * Install poppler-data if your want CJK support\r\n* fontforge (with header files)\r\n\r\n**Build On Windows**\r\n\r\nI've tested with CYGWIN without any problem, and I believe it also works on MinGW without many modifications.\r\n\r\n#### Compiling\r\n\r\n cmake . && make && sudo make install\r\n\r\n## Usage\r\n\r\n pdf2htmlEX /path/to/foobar.pdf\r\n\r\n pdf2htmlEX --help\r\n\r\n## LICENSE\r\n\r\nGPLv2 & GPLv3 Dual licensed\r\n\r\n**pdf2htmlEX is totally free, please credit pdf2htmlEX if you use it**\r\n\r\n**Please consider sponsoring it if you use it for commercial purpose**\r\n\r\n**Font extraction, conversion or redistribution may be illegal, please check your local laws**\r\n\r\n## Credits\r\n\r\npdf2htmlEX is inspired by the following projects:\r\n\r\n* pdftops & pdftohtml from poppler \r\n* MuPDF\r\n* PDF.js\r\n* Crocodoc\r\n* Google Doc\r\n\r\n## Contact\r\n\r\nSuggestions and questions are welcome. \r\n\r\nPlease read [FAQ](https://github.com/coolwanglu/pdf2htmlEX/wiki/FAQ) before sending an email to me. Or your message might be ignored.\r\n\r\n* Lu Wang <coolwanglu@gmail.com>\r\n\r\n### Special Thanks\r\n\r\n* Hongliang Tian <tatetian@gmail.com>\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration.","tagline":"A PDF to HTML converter"}