72 Star 907 Fork 300

Kevin2li / PDF-Guru

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
annot.go 642 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
func (a *App) AnnotParser(inFile string, outFile string, method string, annotTypes []string, pages string) error {
logger.Printf("inFile: %s, outFile: %s, method: %s, annotTypes: %v, pages: %s\n", inFile, outFile, method, annotTypes, pages)
args := []string{"annot"}
args = append(args, inFile)
args = append(args, "--method", method)
if len(annotTypes) > 0 {
args = append(args, "--annot-types")
args = append(args, annotTypes...)
}
if pages != "" {
args = append(args, "--page_range", pages)
}
if outFile != "" {
args = append(args, "-o", outFile)
}
logger.Println(args)
return a.cmdRunner(args, "pdf")
}
Go
1
https://gitee.com/Kevin234/PDF-Guru.git
git@gitee.com:Kevin234/PDF-Guru.git
Kevin234
PDF-Guru
PDF-Guru
main

搜索帮助