Some test text!
Go / Guides
Welcome to Apryse. Go for the Apryse SDK is supported on Windows and Linux. To get started, choose your preferred platform from the tabs below.
This guide will help you run Apryse samples and integrate the Apryse SDK into Go applications on macOS. Your free trial includes unlimited trial usage and support from solution engineers.
main.go
file within. Add the following code to your main.go
.package main
import (
. "github.com/pdftron/pdftron-go/v2"
)
func main() {
PDFNetInitialize("myLicenseKey");
doc := NewPDFDoc()
page := doc.PageCreate() // Start a new page
doc.PagePushBack(page) // Add the page to document
doc.Save("output.pdf", uint(SDFDocE_linearized)); // Save the document as a linearized PDF
doc.Close()
}
go.mod
go mod init
go get
go run main.go
$GOPATH/pkg/mod/github.com/pdftron/pdtron-go/v2@version
Navigate to the ./samples
directory and modify the runall_go.sh
and set your LICENSE_KEY
. If using Apryse modules such as CAD, MODULE_PATH
to the directory where your modules are stored.
Run the runall_go.sh
. All sample tests will be run.
a. If you wish to run a specific test, this can be done by specifying the test ./runall_go.sh AddImageTest
Output files will be created in ./TestFiles/Output
This can be done by modifying your go.mod
via this command in your project directory.
go mod edit -require github.com/pdftron/pdftron-go/v2@v2.0.0`
go get
Get the answers you need: Chat with us