Documentation ¶
Index ¶
- func MergeFiles(fileNames []string, uuids []string, outFileName string)
- func RunContent(contentStr string, actions []Action) string
- func RunFile(uuidOriginal, fileNameOriginal, fileNameProcessed string, acts []Action)
- func RunLines(files []string, actions []Action) map[string]PageReplacement
- func RunPagedata(pagedata string, actions []Action) string
- func RunPdf(pdf io.ReadSeeker, outW io.Writer, actions []Action)
- func Sort(actions []Action)
- type Action
- type Delete
- type Insert
- type PageReplacement
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeFiles ¶
MergeFiles merges the documents stored in fileNames and writes the merged document to outFileName. TODO: Decide if this belongs in a different package
func RunContent ¶
RunContent takes a content JSON string and returns the content JSON string after applying actions.
func RunLines ¶
func RunLines(files []string, actions []Action) map[string]PageReplacement
RunLines takes a slice of all filenames in the uuid/ directory and computes their respective new index and whether they get deleted or not.
func RunPagedata ¶
RunPagedata takes pagedata and returns the pagedata after applying actions.
Types ¶
type PageReplacement ¶
Click to show internal directories.
Click to hide internal directories.