I have some PDF files on NextCloud. Creating folders, adding files into them works well.
But when it's time to retrieve theses files with the get method, the Buffer string returned by the method, even if converted in real Buffer, base64 or Blob can't be read by PDF utilities like PDFTron (loadDocument method).
The original pdf file is this one but is converted later by PDFTron (the file you can download below with a uuid name).
You can check the content returned by the get method here: dummy-pdf-buffercontent.txt
It is supposed to be this file: 2d372fe6-69f5-48fe-ba3b-03651aeef2f1 (1).pdf.
I don't know if it's library-related or just a personal implementation issue.
Cheers! 🖖
I have some PDF files on NextCloud. Creating folders, adding files into them works well.
But when it's time to retrieve theses files with the
getmethod, theBufferstring returned by the method, even if converted in real Buffer, base64 or Blob can't be read by PDF utilities like PDFTron (loadDocumentmethod).The original pdf file is this one but is converted later by PDFTron (the file you can download below with a uuid name).
You can check the content returned by the
getmethod here: dummy-pdf-buffercontent.txtIt is supposed to be this file: 2d372fe6-69f5-48fe-ba3b-03651aeef2f1 (1).pdf.
I don't know if it's library-related or just a personal implementation issue.
Cheers! 🖖