Hello, good, I have the following code in Python that prints the number of pages and the data of a PDF, however, this only works if I call the PDF with a directory on my PC. What I want it to do is open the PDF for me using only the Bytes or Base64 string I provide without having to write a new PDF on my pc .
PDFBase64="JVBERi0xLjUNCiW1tbW1..."
Decodificado=base64.b64decode(PDFBase64)
documento=fitz.open(Decodificado)
print("Número de páginas: ",documento.page_count)
print("Datos: ",documento.metadata)```