just adding this example if somebody wants to scrape a pdf that you have stored in DB, or downloaded through http etc.
you need Porcelain, and with the goon dependency installed (“go build” it yourself from source as the shipped binary is currently wrong version - at least for mac):
def to_text_from_pdf(msg) do
decoded = :base64.decode(msg.pdffile)
%Porcelain.Result{out: output, status: status} = Porcelain.exec("pdftotext", ["-raw", "-", "-"], in: decoded)
output
end


















