https://www.mathworks.com/matlabcentral/fileexchange/63615-read-text-from-a-pdf-document Before the included pdfRead() function can be executed, simply run this command once: javaaddpath('iText-4.2.0-com.itextpdf.jar') The command can be run via console or script, but only needs to be done once.