🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/abdollahpour/micro-pdf-generator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/abdollahpour/micro-pdf-generator

v0.1.0
Source
Go
Version published
Created
Source

License Docker Image Size (latest by date) Coverage Status Build Status

micro-pdf-generator

Fast HTTP microservice written in Go for PDF generating. micro-pdf-generator can be used as a private or public HTTP service for massive HTML to pdf conversion. You can use query param, string, and URL as an input and go template engine to update input data as well. Ex

Here are some examples

# This is a serverless so you may have 5 secnods daly in your first call (could start)
# Also you PDF is gone after you get it once and you cannot use any external dependency in your HTML filesd (single HTML file format)
SERVER=http://micro-pdf-generator.demo.1.1.1.1.xio.io/pdf/sample.pdf

curl -F template="http://to-html-file" $SERVER
curl -F template=@local_html_file $SERVER
curl -F $SERVER?template=<html><body>Some_HTML</body></html>
curl -F template="http://raw.gitttttttttt -F data=@sample.json -F download=true -F waitFor=body $SERVER

More detils in here:

TODO

  • Add more test
  • Complete docs
  • Complete templates
  • Add system template for HTML errors
  • Add JSON schema support

FAQs

Package last updated on 24 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts