Copyright laws typically prohibit both identical copies, which appear to be done here by users during image processing / OCR even if only transitory, as well as derivatives of the copy. So the question then becomes, is this "fair use"?
If the use case for the app is personal use by the possessors of the textbook, very likely no problem. For all other uses you should consult a lawyer to make sure you're in the clear.