paperless_app icon indicating copy to clipboard operation
paperless_app copied to clipboard

Share PDFs with Paperless App for uploading

Open bauerj opened this issue 4 years ago • 7 comments

Unless I missed it, it is not possible to send PDFs from files to this Paperless.app for uploading ?

I suspect this is part of the limits of flutter?

Originally posted by @2600box in https://github.com/bauerj/paperless_app/issues/54#issuecomment-1084960737

bauerj avatar Apr 01 '22 13:04 bauerj

Hi @2600box,

this is possible with Flutter and currently implemented in the Android app. I suspect this just needs some registration in iOS to make Paperless known as an app that can receive PDF files.

bauerj avatar Apr 01 '22 13:04 bauerj

Great! I did a quick google and this is a pretty straightforward walkthrough of adding the native functionality in flutter.

https://medium.com/flutter-community/receive-sharing-files-to-flutter-app-from-another-app-7a84c0c0cd88

The flutter plug-in is called: receive_sharing_intent

https://pub.dev/packages/receive_sharing_intent

2600box avatar Apr 16 '22 11:04 2600box

This is tagged for ios, but would also be great for android. Especially using the android file picking capability that lets you choose from local storage, Google Drive or Google Photos.

hawkinsst7 avatar May 10 '22 12:05 hawkinsst7

@hawkinsst7 this is already possible

bauerj avatar May 16 '22 15:05 bauerj

It was indeed pretty straightforward to include this, since (most of) the work on the flutter side is already there. I have a version on my iPhone now supporting this.

Excuse my stupid questions, but I have never contributed to open source projects on github before. How do I proceed? Should I push my changes to my own fork and then create a Pull Request? If yes, to which fork? To the main one or better to the one of @AliKarpuzoglu which I forked and which I understand the TestFlight version was built from?

CTimmermann avatar Jul 06 '22 10:07 CTimmermann

Hi @CTimmermann

this is not a stupid question at all. I guess it would make sense to send a PR against this repo, so that we can have a central place for iOS development.

bauerj avatar Jul 09 '22 20:07 bauerj

Hi @bauerj

I just created a PR against this repo. I am not sure whether that makes sense in the current state, since the fork which I forked from seems a bit behind the main repo. On the other hand, there is not much that I edited, most files were just added.

CTimmermann avatar Jul 10 '22 16:07 CTimmermann