- 기술 문서 용 다이어그램 그리기가 싫습니까? 초안을 완성하자마자 새로운 수정 사항이 적용되어 텍스트뿐만 아니라 그림도 변경해야합니다. 기존 그리기 도구를 사용하는 경우 지루할 수 있습니다. UML UML은 범용 모델링 언어 (Universal Modeling Language)의 약어로서 25 년 전에 처음 등장한 소프트웨어 디자인의 아이콘을.
- Convert your HTML to PDF with Java with easy PDF SDK. Sample Java code, Java app and Java project provided to create PDF from HTML.
Monday, 29 February, 2016
Markdown is a popular text formatting syntax among developers these days. Popular Sites like Github or Bitbucket use Markdown for project documentation and various other types of user generated content. These sites automatically convert markdown syntax to HTML, so it can be displayed in a browser.
However, maybe you want to use Markdown as document format without using a platform that does the conversion for you. Or you are in need of an output format other than HTML. In this case you need a tool that can convert markdown to the desired target format. Pandoc is is a document conversion tool that can be used for exactly this (and a lot of other things). With Pandoc you can convert Markdown documents to PDF, HTML, Words DOCX or many other formats.
Use XEP XSL-FO processor inside an Oracle database as a Java stored procedure to create PDF documents and send them over the intranet without storing them.
After installing Pandoc, you can simply run it from command line.
Markdown Export To Pdf
Note: By default, Pandoc uses LaTeX to generate PDF documents. So, if you want to generate PDF documents, you need to install a LaTex processor first (list of required LaTeX packages).
Java Markdown 转 Pdf
To convert a doc.md Markdown file into a PDF document, the following command can be used:
Pandoc is able to merge multiple Markdown files into a single PDF document. To generate a single PDF document out of two Markdown files you can use:
By default the page margins in the resulting PDF document are quite large. You can change this by passing a margin parameter:
To create HTML or DOCX documents you simply have to change the file extension of the target file:
The resulting documents are well formatted. The following two screenshot show a DOCX and a PDF document created out of two small example markdown files:
Resulting DOCX document:
Resulting PDF document:
Comments
'By default, Pandoc uses LaTeX to generate PDF documents.' can CSS be used to style pdfs?
Hi, Michael! If you need to convert Markdown file to DOCX, you can use Writage plugin for MS Word. It allows to open, edit and save your MD files as DOCX (or DOCX as MD files) from the MS Word.
Leave a reply
Markdown Implementations
Either direct or other lists
- stackoverflow Question 11 lists some and references
Specific implementations
In Python universe, some packages. There are more.
- Markdown with its features
In Perl, there is a package:
Wikipedia has a list that is reproduced here, so that we can add/remove columns and Markdown processors.
Java Markdown To Pdf
Name | Language | Type | Description | Official site |
---|---|---|---|---|
mmd2pdf | Autoit | - | MultiMarkdown to PDF converter | google code |
md2html.awk | Awk | Converter | Markdown to Html | bitbucket |
apache-mod-sundown | C | Apache HTTPd module | Using Sundown C library | github |
Discount | C | Library and HTML converter | - | site |
libpandoc | C | Multiconverter | - | github |
peg-multimarkdown | C | - | Using parsing expressing grammar (PEG) | github, github fork |
peg-markdown | C | - | Using parsing expressing grammar (PEG) | github |
PEG Markdown Highlight | C | Syntax highlighter | Using parsing expressing grammar (PEG) | site |
Sundown | C | - | - | github |
libupskirt | C | Parser | Fork of libsoldout | github |
libsoldout | C | Parser | Simple parser only | site |
Doxygen | C++ | Sourcecode documentation generator | Doxygen supports Markdown with extra features | site |
Cpp-Markdown | C++ | Generator | Markdown to HTML | sourceforge |
RStudio | C++ | IDE for R (programming language) | C++ wrapper for sundown | site |
Qarkdown | C++ | Editor (Qt) | Simple crossplatform Markdown editor using Qt | site |
MarkdownSharp | C# | - | - | google code |
MoonShine | C# | - | - | github |
Sundown.net | C# | - | - | github |
markdown-clj | Clojure | Converter | Generates HTML from Markdown, compiles to both Clojure and ClojureScript | github |
Blackfriday | Go | - | - | github |
Goskirt | Go | - | - | github |
MaTeS | Go | Converter to HTML5 | Creates web pages or presentation slides. Supports citation, tables, math and charts. | site |
Upskirt.go | Go | - | - | github |
Pandoc | Haskell | Converter (Multiformat) | - | site |
Sundown HS | Haskell | - | - | github |
MarkdownJ | Java | - | - | google code |
pegdown | Java | - | - | github |
MarkdownPapers | Java | - | Implementation based on a JavaCC parser | site |
Txtmark | Java | - | - | github |
Markdown4j | Java | - | Extensible markdown java implementation | google code |
Dillinger | JavaScript | Editor | 'WYSIWYM' editor | site, github |
uedit | JavaScript | Editor | 'WYSIWYM' editor | github |
node-discount | JavaScript | - | node.js binding for Discount | github |
markdown-js | JavaScript | - | Parser for JavaScript/node.js | github |
marked | JavaScript | - | A fast markdown parser | github |
PageDown | JavaScript | Webeditor and viewer | Used by Stack Exchange sites | google code and github |
PageDown-Bootstrap | JavaScript | Webeditor and viewer | Fork of PageDown which uses the Twitter Bootstrap template framework | github |
Showdown | JavaScript | Webeditor and viewer | - | site/github |
markdown.pioul.fr | JavaScript | Webeditor and viewer | Minimalist Online Markdown Editor | site |
TextDown | JavaScript | Editor plugin for Chrome | - | chrome store/github |
texts.js | JavaScript | Node.js module | PEG-based grammar, intermediate format in JSON | github |
markdown.lua | Lua | - | - | luaforge |
Lunamark | Lua | Converter | HTML and LaTeX converter | github |
lua-discount | Lua | Binding | - | site |
node-multimarkdown | Node.js | Parser | Native MultiMarkdown extension for Node.js | github |
RobotSkirt | Node.js | - | - | github |
node-markdown | Node.js | - | Parse Markdown syntax with node.js | github |
gfm | Node.js | - | The port of Showdown used on github.com | github |
Markdown | Perl 6 | Parser | Markdown parser in Perl 6 | github |
Markdown.pl | Perl | Converter to (X)HTML | Official author perl markdown implementation | site |
MultiMarkdown | Perl | Converter | Markdowns originals MultiMarkdown superset | site, github |
text-markdown | Perl | Converter to (X)HTML | - | github |
markdown-oo-php | PHP | Converter to (X)HTML | Object-oriented implementation of Markdown | github |
markdown-handler | PHP | Converter to (X)HTML | github | |
PHP Markdown | PHP | Converter to HTML | - | site |
PHP Markdown Extra | PHP | Converter to HTML | Markdown with extra options | site |
PHP Markdown Extended | PHP | Converter to various formats (HTML, MAN, extensible) | Markdown extended syntax | github |
PHP Markdown Viewer | PHP | Viewer | Wrapper for PHP Markdown | site |
secondcrack | PHP | Blog | A static-file Markdown blogging engine | github, site |
qlmarkdown | Objective C | - | A Mac OS X Quicklook extension that uses Discount. | github |
Python-Markdown | Python | - | A implementation with various extensions such as tables and ignoring internal bold/italic markings. | site |
Misaka | Python | Binding | Python binding for Sundown | site |
BlueCloth | Ruby | - | - | site |
BlueFeather | Ruby | - | - | site |
ffi-sundown | Ruby | - | - | github |
gimli | Ruby | Markdown to PDF | - | gimli |
kramdown | Ruby | Library | - | rubyforge |
md2man | Ruby | Converter | Markdown to manpage | github |
markdownr.com | Ruby | Webviewer and Editor | A nifty markdown notepad | site/github |
Maruku | Ruby | Interpreter | - | github |
RDiscount | Ruby | Binding | Ruby binding for Discount | github |
Redcarpet | Ruby | Binding | Ruby binding for Sundown | github |
Knockoff | Scala | - | - | site |
Actuarius | Scala | - | - | site |
Lowdown | Chicken Scheme | Parser library (egg) | Can emit SXML | chicken wiki, Bitbucket |
markdown.bash | Bash | Converter | Markdown to Html | Github |