All Projects → thecodingmachine → Gotenberg Go Client

thecodingmachine / Gotenberg Go Client

Licence: mit
Go client for the Gotenberg API

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Gotenberg Go Client

Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (+128.57%)
Mutual labels:  api, excel, powerpoint, markdown, word, pdf, pdf-converter
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+9248.57%)
Mutual labels:  api, markdown, pdf, excel, word
Office Ribbonx Editor
An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
Stars: ✭ 205 (+485.71%)
Mutual labels:  excel, powerpoint, word
Androiddocumentviewer
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs
Stars: ✭ 235 (+571.43%)
Mutual labels:  excel, word, pdf
Docconv
Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text
Stars: ✭ 735 (+2000%)
Mutual labels:  word, pdf, pdf-converter
Mdpdf
Markdown to PDF command line app with support for stylesheets
Stars: ✭ 512 (+1362.86%)
Mutual labels:  markdown, pdf, pdf-converter
Vbasync
Cross-platform tool to synchronize macros from an Office VBA-enabled file with a version-controlled folder
Stars: ✭ 98 (+180%)
Mutual labels:  excel, powerpoint, word
Remarks
Extract highlights, scribbles, and annotations from PDFs marked with the reMarkable tablet. Export to Markdown, PDF, PNG, and SVG
Stars: ✭ 94 (+168.57%)
Mutual labels:  markdown, pdf, pdf-converter
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (+91.43%)
Mutual labels:  excel, word, powerpoint
Rage
Rage allows you to execute any file in a Microsoft Office document.
Stars: ✭ 68 (+94.29%)
Mutual labels:  excel, word, powerpoint
Docs2Pdf
Bulk convert word/powerpoint/excel file to pdf.
Stars: ✭ 27 (-22.86%)
Mutual labels:  excel, word, powerpoint
Magicodes.ie
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
Stars: ✭ 1,198 (+3322.86%)
Mutual labels:  excel, word, pdf
Superfileview
基于腾讯浏览服务Tbs,使用X5Webkit内核,实现文件的展示功能,支持多种文件格式
Stars: ✭ 1,115 (+3085.71%)
Mutual labels:  excel, word, pdf
Docxtemplater
Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
Stars: ✭ 1,990 (+5585.71%)
Mutual labels:  excel, powerpoint, word
Pandiff
Prose diffs for any document format supported by Pandoc
Stars: ✭ 110 (+214.29%)
Mutual labels:  markdown, word, pdf
rgpipe
lesspipe for ripgrep for common new filetypes using few dependencies
Stars: ✭ 21 (-40%)
Mutual labels:  excel, word, powerpoint
Net Core Docx Html To Pdf Converter
.NET Core library to create custom reports based on Word docx or HTML documents and convert to PDF
Stars: ✭ 133 (+280%)
Mutual labels:  word, pdf, pdf-converter
Office365FiddlerExtension
This Fiddler Extension is an Office 365 centric parser to efficiently troubleshoot Office 365 client application connectivity and functionality.
Stars: ✭ 23 (-34.29%)
Mutual labels:  excel, word, powerpoint
craXcel-cli
Command line application to unlock Microsoft Office password protected files.
Stars: ✭ 44 (+25.71%)
Mutual labels:  excel, word, powerpoint
Unioffice
Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
Stars: ✭ 3,111 (+8788.57%)
Mutual labels:  excel, powerpoint, word

Gotenberg Go client

A simple Go client for interacting with a Gotenberg API.

Install

$ go get -u github.com/thecodingmachine/gotenberg-go-client/v7

Usage

import (
    "time"
    "net/http"

    "github.com/thecodingmachine/gotenberg-go-client/v7"
)

// create the client.
client := &gotenberg.Client{Hostname: "http://localhost:3000"}
// ... or use your own *http.Client.
httpClient := &http.Client{
    Timeout: time.Duration(5) * time.Second,
}
client := &gotenberg.Client{Hostname: "http://localhost:3000", HTTPClient: httpClient}

// prepare the files required for your conversion.

// from a path.
index, _ := gotenberg.NewDocumentFromPath("index.html", "/path/to/file")
// ... or from a string.
index, _ := gotenberg.NewDocumentFromString("index.html", "<html>Foo</html>")
// ... or from bytes.
index, _ := gotenberg.NewDocumentFromBytes("index.html", []byte("<html>Foo</html>"))

header, _ := gotenberg.NewDocumentFromPath("header.html", "/path/to/file")
footer, _ := gotenberg.NewDocumentFromPath("footer.html", "/path/to/file")
style, _ := gotenberg.NewDocumentFromPath("style.css", "/path/to/file")
img, _ := gotenberg.NewDocumentFromPath("img.png", "/path/to/file")

req := gotenberg.NewHTMLRequest(index)
req.Header(header)
req.Footer(footer)
req.Assets(style, img)
req.PaperSize(gotenberg.A4)
req.Margins(gotenberg.NoMargins)
req.Scale(0.75)

// store method allows you to... store the resulting PDF in a particular destination.
client.Store(req, "path/you/want/the/pdf/to/be/stored.pdf")

// if you wish to redirect the response directly to the browser, you may also use:
resp, _ := client.Post(req)

For more complete usages, head to the documentation.

Badges

Travis CI GoDoc Go Report Card

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].