QField icon indicating copy to clipboard operation
QField copied to clipboard

Printed PDF location

Open signedav opened this issue 6 years ago • 8 comments

It used to be the project directory itself. But then we had the case on projects (like e.g. the demo projects) that the external PDF could not access the document. That's why it has been moved to QStandardPaths::DocumentsLocation here https://github.com/opengisch/QField/pull/615 (not to temp path, because this is in the app folder as well).

Problem with DocumentLocation is, that it's not cleaned up...

It would be nice to have it improved like that the PDF would be stored to a tmp folder where the external app could access. Or sending the document with the intent to the app directly.

signedav avatar Sep 02 '19 09:09 signedav

The solution to this problem is per-URI permissions: when starting an activity or returning a result to an activity, the caller can set Intent.FLAG_GRANT_READ_URI_PERMISSION and/or Intent.FLAG_GRANT_WRITE_URI_PERMISSION. This grants the receiving activity permission access the specific data URI in the intent, regardless of whether it has any permission to access data in the content provider corresponding to the intent.

Seen on https://developer.android.com/guide/topics/permissions/overview

signedav avatar Sep 03 '19 19:09 signedav

This has been accepted as an enhancement request. Good job :+1: Enhancement requests are very valuable to make QField better. They sometimes attract others and just happen magically. More often however they need someone to jump in and make them come true.

label-actions[bot] avatar Nov 06 '19 12:11 label-actions[bot]

Hello, How is it possible to keep the grip of the current view in the PDF (set to map canvas extent)? Thanks in advance, Regards,

jipi04 avatar Nov 19 '19 13:11 jipi04

It does not take the current extent?

signedav avatar Nov 19 '19 13:11 signedav

No, it does not take the current extent :-( qgis 3.14, qfield 1.2, on samsung A8 2018 thank you

jipi04 avatar Nov 21 '19 12:11 jipi04

sorry it's about QGIS 3.4.8

jipi04 avatar Nov 21 '19 13:11 jipi04

Thanks. I opened a seperate issue for that. #722

signedav avatar Nov 21 '19 13:11 signedav

Hi @jipi04

Can you test the APKs built here #723 ?

signedav avatar Nov 21 '19 16:11 signedav

This has been fixed a while back :partying_face:

nirvn avatar Aug 11 '24 09:08 nirvn