Hi, Actually I am working on notes module where I have check that only Pdf can we upload but as its binary I am not able to sanitize it so, can anyone suggest me a library to for sanitization of pdf.
I think, reading the content of the PDF file and then sanitizing the text would solve the problem. I am not sure about this library, but by looking at the number of stars I think you can give it a try. GitHub - smalot/pdfparser: PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.