Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line Markdown To PDF

Scroll Prev Top Next More

MD To PDF Command Line Format Win2PDF Pro Only Feature

 

win2pdfd.exe markdown2pdf "source.md" "dest.pdf"

win2pdfd.exe markdown2pdf "source.md" "dest.pdf" landscape

win2pdfd.exe markdown2pdf "source.md" "dest.pdf" papersize

win2pdfd.exe markdown2pdf "source.md" "dest.pdf" papersize textsize marginleft margintop marginright marginbottom

 

 

Convert the markdown file specified by "source.md" to a PDF file named "dest.pdf". The "md2pdf" command creates a PDF using the letter size paper, a variable width font, and 1" margins.

 

If the "papersize" is specified, it can be one of:

letter

letter-landscape

legal

legal-landscape

tabloid

tabloid-landscape

A2

A2-landscape

A3

A3-landscape

A4

A4-landscape

A5

A5-landscape

CSheet

CSheet-landscape

DSheet

DSheet-landscape

ESheet

ESheet-landscape

 

The "-landscape" papersize variations change the orientation to landscape. If no papersize is specified, "letter" is used.

 

The optional "textsize", "marginleft", "margintop", "marginright", and "marginbottom" parameters are specified in points (1/72 inch).  If no margin is specified, 1" margins are used.

 

Any file names that contain spaces must be enclosed with quotation marks. The "source.md" can be a local file path, or an web address (URL) to an existing text file.

 

This feature requires a licensed version of Win2PDF Pro. Contact us for a time limited evaluation license.

 

Returns 0 on success, and a Windows system error code on failure.