pdftotext v0.0.1 PdfToText
This is the main PDF to Text Module.
Link to this section Summary
Functions
Converts the given pdf file into text
Link to this section Functions
Link to this function
convert(file, key)
Converts the given pdf file into text.
Parameters:
- File -> Accepts a Plug.Upload{} struct or a binary of the file.
- Key -> Accepts a key for the OCR API. Get your key here: OCR API KEY
Returns:
{:ok, result} -> On a successful parse returns this where ‘result’ is a string containing the contents of the passed file.
{:error, error_message, result} -> returns a :error struct with the error_message and the partial result if any.