Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
annot.go 642 Bytes
Copy Edit Raw Blame History
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 助手
尝试更多
代码解读
代码找茬
代码优化