Skip to content

krishna102001/extractorGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extractor Go

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.

Features

  • Extract the embedded images
  • Convert the pdf file into images
  • password protected zip files
  • support base64 or form file

How its works

  • To extract images from pdf make POST request to api/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 to api/v1/extract/:id

      { "data":{
          "extract_id":"uuid",
          "response_url":"https://cloudinary.com/......"
        }
      }
  • To convert pdf pages into images make POST request to api/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 to api/v1/convert/:id

      { "data":{
          "convert_id":"uuid",
          "response_url":"https://cloudinary.com/......"
        }
      }
  • To extract the text from the images make a POST request to api/v1/extract-text/image

     {
         "input_base64":"base64 text"
     }

    OR

       file:"sample.jpg"

How To Run project

  • 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

About

Extract the image in a second from pdf file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published