Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robertopatino1/pdf2go
https://github.com/robertopatino1/pdf2go
Last synced: about 11 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertopatino1/pdf2go
- Owner: RobertoPatino1
- License: mit
- Created: 2024-07-08T03:39:02.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T22:53:39.000Z (3 months ago)
- Last Synced: 2024-08-23T00:12:24.651Z (3 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).