merge

package
v0.0.0-...-e5131f1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileToBook

func CompileToBook(m *pdfrender.Mod) (err error)

Types

type PDFMergeState

type PDFMergeState struct {
	// m.BaseDir set here
	BaseDir string
	// the path to put merged file at
	OutPath string
	// if set true, index in bookmark names will be there
	IndexedBookmarkNames bool
	// contains filtered or unexported fields
}

PDFMergeState shares data across the merged pdf generation process

func (*PDFMergeState) MergePdf

func (mState *PDFMergeState) MergePdf(filePath string, parentBookmark *pdfcpu.Bookmark) (bookmark *pdfcpu.Bookmark, err error)

MergePdf finally merges the pdf "file" in the final output file path and returns the bookmark for that file that can even be nil for skipped case

func (*PDFMergeState) TriggerEveryPDFMergeInOrder

func (mState *PDFMergeState) TriggerEveryPDFMergeInOrder(nTree *list.NestedPathTree, parentBookmark *pdfcpu.Bookmark) (bookmark *pdfcpu.Bookmark, err error)

Jump to

Keyboard shortcuts

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