Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 12.2 KB

README.md

File metadata and controls

30 lines (22 loc) · 12.2 KB

Cortex-Convert-PDF-to-Text

Subtask that converts a PDF file uploaded via LivePortal to a .txt file It will check where LivePortal is installed and ensures that a folder called ExternalDocs exist. For each file taken from the default upload location it will create a new export folder under ExternalDocs. It will then move the pdf file from the Upload location to the Export folder where it will create a new filename but with extension .txt Next, it will convert the pdf to text and write it into that new .txt file

It is using the following variables

i_inputfile

The full path to the pdf file e.g. C:\inetpub\Cortex\LivePortal\Upload\guid\pdf_file.pdf

o_text

The converted text as a large text variable

o_outputfile

The full path to the converted text file e.g. C:\inetpub\Cortex\LivePortal\ExternalDocs\guid\pdf_file.txt

When Cortex Gateway is installed in a different folder than the standard, the path should be updated in variable pdf2txt-path

Installation Instructions

Download the Studio Package file and Import it into your Cortex Environment. Don't forget to apply rights using the Studio Authorization module.

👍 Enjoy! 😉