Giter Site home page Giter Site logo

easypdf's Introduction

Easypdf

A simple CLI application to convert multiple markdown files to pdf using wkhtmltopdf.

Prerequisites

Installation

Clone the repository and build a binary.

git clone https://github.com/blackfly19/Easypdf
cd Easypdf
make cmd-first-build

Usage

You can either give specific files or mention the directory of files you want to convert.

easypdf convert -f testdoc1.md -f testdoc2.md -c cover.md -o test.pdf
easypdf convert -d basic_example -o test.pdf

Create table of contents with a single flag.

easypdf convert -d basic_example -o test.pdf --toc

Use watch mode to see changes in pdf without having to run the command again

easypdf convert -d basic_example -o test.pdf -w

Other options:

easypdf convert -h
Converts single or multiple markdown files to pdf

Usage:
  easypdf convert [flags]

Flags:
  -c, --cover string        Cover page of the document
      --css string          css file name
      --ddl                 Disable dotted lines in toc
  -d, --dir string          Directory name containing markdown files
      --dtl                 Disable toc links
  -f, --files stringArray   Single file or multiple files
  -h, --help                help for convert
  -o, --output string       Output file name (default "2c88f9cf-c24e-41b7-8e40-f7a5f725cb0b")
      --tht string          Toc header text (default "Table of Contents")
      --tli uint            Toc level indentation (default 1)
  -t, --toc                 Add table of contents
      --ttss float          Font scaling for each level of heading (default 0.8)
  -w, --watch               Enable watch mode to see changes in real time

Contributing

Pull requests and feature requests are welcome. Please give proper descriptions when making a PR or raising an issue.

License

MIT

easypdf's People

Contributors

blackfly19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.