Skip to content

A simple Go library focused on extracting metadata from PDF files.

License

Notifications You must be signed in to change notification settings

mahesarohman98/pdfinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Info

A simple Go library focused on extracting metadata from PDF files.

Installation

go get github.com/mahesarohman98/pdfinfo

Usage

package main

import (
	"fmt"
	"github.com/mahesarohman98/pdfinfo"
)

func main() {
	info, err := pdfinfo.Extract("sample.pdf")
	if err != nil {
		fmt.Println("Error extracting metadata:", err)
		return
	}

	fmt.Println("Title:", info.Key("Title").Text())
	fmt.Println("Author:", info.Key("Author").Text())
}

About

A simple Go library focused on extracting metadata from PDF files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages