dpt-tools icon indicating copy to clipboard operation
dpt-tools copied to clipboard

Locally Loading PDF into Digital Paper PDF Reader

Open wart-github opened this issue 6 years ago • 7 comments

Hi,

First things first, excellent work!

Has anyone figured out how to load a pdf into the digital paper pdf reader locally? For instance, if I download a pdf on the DPT RP1 itself in Fennic Firefox or in a Mail App on the DPT RP1, how can I "share" it over to the PDF reader on the DPT RP1? I did some digging and the file structure is pretty opaque. (One option I thought of was installing dpt-rpt-py on the DPT RPT itself, but I thought I'd ask if anyone has implemented something first.)

Thanks for any tips

wart-github avatar Sep 11 '19 11:09 wart-github

One way is you write an Android app/plugin on some PDF app for DPT that supports to download/upload files based on DPT app's API.. it's the most intuitive workaround I can think of

HappyZ avatar Sep 15 '19 02:09 HappyZ

Maybe the official android app will work?

aluex avatar May 07 '20 04:05 aluex

The official android app does not work because it requires Android version >6 and the DPT has only 5. Also it doesn't seem possible to use dpt-rp1-py with qpython because the crypto packages do not install on the DPT.

So that means that there is only one solution: rewriting dpt-rp1-py in javascript and using it from the browser (or package it into an apk with WebView). I am currently working on this port. So far I am able to authenticate and list documents from my computer. Next step is uploading pdfs and somehow hosting the page on the DPT so I can access the page from the browser there.

JoeKays avatar May 19 '20 19:05 JoeKays

Update: I succeeded in uploading and downloading pdfs from my chrome browser! Only thing that is left for now is to try hosting the site on the DPT. Because so far I accessed the page from the DPT but I hosted it on my computer. But I guess that's not gonna be the biggest problem and soon we will be able to locally load pdfs to the device! :D

JoeKays avatar May 20 '20 22:05 JoeKays

Pretty coooool

On Wed, May 20, 2020, 3:43 PM Sir Pilcrow [email protected] wrote:

Update: I succeeded in uploading and downloading pdfs from my chrome browser! Only thing that is left for now is to try hosting the site on the DPT. Because so far I accessed the page from the DPT but I hosted it on my computer. But I guess that's not gonna be the biggest problem and soon we will be able to locally load pdfs to the device! :D

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HappyZ/dpt-tools/issues/135#issuecomment-631767587, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDVEKRQ5EQLDVMFRNRWKS3RSRMJVANCNFSM4IVS55ZQ .

HappyZ avatar May 20 '20 22:05 HappyZ

Update: check out the initial release on https://github.com/JoeKays/dpts

Hope it works :)

JoeKays avatar May 22 '20 20:05 JoeKays

Update: There is an update available, check it out! :D

This update removes most of the limitations and makes the tool quite usable I would say. You can upload and download documents, create folders and delete them. All from the DPT and also from your computer if you like. You only need a browser and some patience for the setup.

Only real problem is that USB only works on Linux. You have to use WiFi on Windows and Mac. I would love it if someone could help me with making it work on these platforms. I don't have any such device available at the moment...

JoeKays avatar Jun 06 '20 17:06 JoeKays