Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/robertopatino1/pdf2go


https://github.com/robertopatino1/pdf2go

Last synced: about 11 hours ago
JSON representation

Awesome Lists containing this project

README

        

# PDF2Go

This project allows you to convert Markdown files to PDF using a backend server written in Go. The backend processes the Markdown content and returns a PDF file.

## Requirements

- Go >= 1.16
- Git
- Curl

## Initial Setup

**1. Clone the Repository**

```bash
git clone https://github.com/RobertoPatino1/md_pdf_2_Go.git
cd md_pdf_2_Go
```

**2. Install Dependencies**

```bash
go mod tidy
```

## How to use

Once the previous steps have been followed, make sure to follow these steps in order to use the tool.

**1. Run the server**

```bash
go run main.go
```

**2. Send POST request**

```bash
curl -X POST --data-binary @.md -H "Content-Type: text/plain" http://localhost:8080/convert -o .pdf
```

**Note:** The Markdown file *example.md* was taken from this [source](https://gist.github.com/allysonsilva/85fff14a22bbdf55485be947566cc09e).