Simple PDF stamping tool built with Go
It's so simple, it makes you want to stamp!
Ambatustamp is a so-called "simple" PDF stamping tool built with Go. It claims to make document stamping easy, but don't get your hopes up.
stampConfig := ambatustamp.StampConfig{
Size: 80, // in pixels
LogoPath: "/path/to/logo.png", // or any other path
Content: uuid.New().String(), // or any other string
Position: "bl", // bl (bottom left), br (bottom right), tl (top left), tr (top right)
Xoffset: 0, // -25 for padded stamp
Yoffset: 0, // 25 for padded stamp
}
metadataConfig := ambatustamp.MetadataConfig{
Title: "Test PDF", // or any other string
Author: "Ambatustamp", // or any other string
Subject: "Testing Ambatustamp", // or any other string
}
amb := ambatustamp.NewAmbatustamp()
err := amb.Load("/path/to/your/file.pdf")
err := amb.Decrypt("YOUR_PASSWORD")
err := amb.Stamp(&stampConfig)
err := amb.Metadata(&metadataConfig)
err := amb.Save("/path/to/your/file.pdf")
Ambatustamp is nothing more than a lazy wrapper around another open-source project (pdfcpu). It's like putting a tuxedo on a couch potato.