Code Monkey home page Code Monkey logo

Comments (9)

astubenbord avatar astubenbord commented on May 22, 2024

That's weird, because as far as I know paperless always converts images into pdf format, see https://docs.paperless-ngx.com/faq/#what-file-types-does-paperless-ngx-support
Do you mean the document preview or the scanner preview?
What app version do you have installed and which server version are you running?

from paperless-mobile.

steinm avatar steinm commented on May 22, 2024

I ment the document preview, but you are right, paperless is supposed to return pdf in any case. Hence, there is no need to handle other formats than pdf. I'm actually not using a paperless server but seeddms (www.seeddms.org) which emulates the paperless api as good as possible. seeddms has no restrictions on file formats. It can store any file uploaded and if that file can be converted to pdf, it will convert it on request. There is no notion of an archived document. I initially thought, your app requests the original file on preview. Actually I wonder if there is a way to get back the original file, e.g. if it was a jpeg uploaded with 'paperless share'

from paperless-mobile.

steinm avatar steinm commented on May 22, 2024

BTW, if you want to try seeddms, just connect with your app to https://demo6.seeddms.org/restapi/index.php with admin/admin.

from paperless-mobile.

astubenbord avatar astubenbord commented on May 22, 2024

I see, I think this might be a good feature to support in the future. It should not be too much effort to check the mimetype of the file returned by document/:id/preview/ and open it in the system viewer.

from paperless-mobile.

steinm avatar steinm commented on May 22, 2024

I just realized that your app calls api/documents/{id}/download/ and api/documents/{id}/preview. Could that be the distinction to download the original file and the pdf version of it?

The title of this issue could be misleading. The native api of seeddms is quite different from the paperless api. I just added those api calls of paperless to make it work with your app, because it is a very efficient way to get documents into seeddms. Though it covers just a small portion of the functionality of seeddms.

from paperless-mobile.

astubenbord avatar astubenbord commented on May 22, 2024

As far as I know they are similar, both download and preview return a pdf file.

Right, I thought that the paperless api was natively built in, I'll change the title back.

from paperless-mobile.

steinm avatar steinm commented on May 22, 2024

I was looking for some more documentation at paperless ngx web site but quite find any. Do you have any more official information on what the different api calls precisly do? Maybe a swagger definition?

from paperless-mobile.

astubenbord avatar astubenbord commented on May 22, 2024

Unfortunately not, I also asked in the matrix chat, there should be a way to generate a swagger documentation from the Django framework but I couldn't manage to get it to run.

from paperless-mobile.

astubenbord avatar astubenbord commented on May 22, 2024

I'll maybe reconsider once the app has most of the paperless features implemented, until then, I'll probably not support other systems due to time constraints.

from paperless-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.