when you build production using the sencha tools it does something to the file(processes/minifies) so i guess taht messes up something. once i remove the pdf.js path out of the SDK folder and out of the app.Json file and add it to the project after production it works great(dont for get to give the html file the correct path to pdf.js)