1 Star 0 Fork 354

magical-time-space/PDF-Guru

forked from 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")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mpbug/PDF-Guru.git
git@gitee.com:mpbug/PDF-Guru.git
mpbug
PDF-Guru
PDF-Guru
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385