pdfpatch

package
v0.0.0-...-11aa943 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPatch

func ApplyPatch(inputPDFFilePath string, patchFilePath string) (newText string, err error)

func GeneratePatch

func GeneratePatch(inputPDFFile string, markdownFiles []string) (patch string, err error)

func PatchBundle

func PatchBundle(bundlePath string, inputPDFsDir string, styleSheet string, outputPDFPath string) (err error)

PatchBundle extracts a bundle file and uses its contents along with source PDFs to genderate a patched PDF

func PatchPDF

func PatchPDF(inputPDFs []string, inputPDFsDir string, patchFilesDir string, cssFile string, outputPDFPath string) (err error)

Types

type PDFMarkdowns

type PDFMarkdowns struct {
	PDFFileName       string
	MarkdownFileNames []string
}

type PDFPatch

type PDFPatch struct {
	PDFFileName string
	Patch       string
}

func GeneratePatches

func GeneratePatches(pdfMarkdownsList []PDFMarkdowns, pdfsDir string, markdownsDir string) (patches []PDFPatch, err error)

Jump to

Keyboard shortcuts

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