converter

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package converter implements a solution for converting one or more files to PDF.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter handles conversion into PDF of files coming from a request.

func NewConverter

func NewConverter(r *http.Request) (*Converter, error)

NewConverter instantiates a converter by parsing a request.

func (*Converter) Clear

func (c *Converter) Clear() error

Clear removes all file inside its working directory.

func (*Converter) Convert

func (c *Converter) Convert() (string, error)

Convert converts its associated files to PDF. If more than one file, it will merge all of them into one unique PDF file. Returns the new file path or an error if something bad happened.

type NoFileToConvertError

type NoFileToConvertError struct{}

NoFileToConvertError is raided when a request has not file attached to it.

func (*NoFileToConvertError) Error

func (e *NoFileToConvertError) Error() string

Directories

Path Synopsis
Package file implements a solution for handling files coming from a request.
Package file implements a solution for handling files coming from a request.
Package process handles all commands executions.
Package process handles all commands executions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL