Extractor go is a fast & secure backend services to extract the embedded images from the pdf or convert the each pdf pages into a images. Its make the password protected zip files.
- Extract the embedded images
- Convert the pdf file into images
- password protected zip files
- support base64 or form file
-
To extract images from pdf make
POSTrequest toapi/v1/extract-pdf-image.{ "input_pdf_file":"base64 text" }OR
file:"sample.pdf"{ "data":{ "extract_id":"uuid", "response_url":"https://cloudinary.com/......" } } -
To get the saved response back make
GETrequest toapi/v1/extract/:id{ "data":{ "extract_id":"uuid", "response_url":"https://cloudinary.com/......" } } -
To convert pdf pages into images make
POSTrequest toapi/v1/convert-pdf-image.{ "input_pdf_file":"base64 text" }OR
file:"sample.pdf"{ "data":{ "convert_id":"uuid", "response_url":"https://cloudinary.com/......" } } -
To get the saved response back make
GETrequest toapi/v1/convert/:id{ "data":{ "convert_id":"uuid", "response_url":"https://cloudinary.com/......" } } -
To extract the text from the images make a
POSTrequest toapi/v1/extract-text/image{ "input_base64":"base64 text" }OR
file:"sample.jpg"
-
Clone this project
git clone https://github.com/krishna102001/extractorGo.git
-
Make
.envfile copy all the content from.env.example -
Download the packages
go mod tidy
-
Start the server
go run main.go
OR
go build -o my-app .then
./my-app
OR
air