Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "github.com/hhrutter/pdfcpu"
- "github.com/hhrutter/pdfcpu/types"
- "fmt"
- )
- func main() {
- filenamesIn := []string{
- "./1.pdf",
- "./2.pdf",
- }
- cmd := pdfcpu.MergeCommand(filenamesIn, "out.pdf", types.NewDefaultConfiguration())
- err := pdfcpu.Process(&cmd)
- if err != nil {
- fmt.Println(err)
- }
- }
Add Comment
Please, Sign In to add comment