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
POST
request 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
GET
request toapi/v1/extract/:id
{ "data":{ "extract_id":"uuid", "response_url":"https://cloudinary.com/......" } }
-
To convert pdf pages into images make
POST
request 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
GET
request toapi/v1/convert/:id
{ "data":{ "convert_id":"uuid", "response_url":"https://cloudinary.com/......" } }
-
To extract the text from the images make a
POST
request 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
.env
file 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