Skip to content

Commit

Permalink
Merge pull request #241 from kellemNegasi/US-207-update-text-table-se…
Browse files Browse the repository at this point in the history
…paration-example

[US-207] Remove comment in init function
  • Loading branch information
3ace authored Feb 23, 2024
2 parents 9116d29 + 78703a6 commit 09cb060
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions table-info/partition_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ import (
"os"
"strconv"

"github.com/unidoc/unipdf/v3/common/license"
"github.com/unidoc/unipdf/v3/extractor"
"github.com/unidoc/unipdf/v3/model"
)

// func init() {
// // Make sure to load your metered License API key prior to using the library.
// // If you need a key, you can sign up and create a free one at https://cloud.unidoc.io
// err := license.SetMeteredKey(os.Getenv(`UNIDOC_LICENSE_API_KEY`))
// if err != nil {
// panic(err)
// }
// }
func main() {
func init() {
// Make sure to load your metered License API key prior to using the library.
// If you need a key, you can sign up and create a free one at https://cloud.unidoc.io
err := license.SetMeteredKey(os.Getenv(`UNIDOC_LICENSE_API_KEY`))
if err != nil {
panic(err)
}
}

func main() {
if len(os.Args) < 3 {
fmt.Printf("Usage: go run partition_text.go inputFile.pdf pageNum\n")
os.Exit(1)
Expand Down

0 comments on commit 09cb060

Please sign in to comment.