Printed PDF location
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.
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
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.
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,
It does not take the current extent?
No, it does not take the current extent :-( qgis 3.14, qfield 1.2, on samsung A8 2018 thank you
sorry it's about QGIS 3.4.8
Thanks. I opened a seperate issue for that. #722
Hi @jipi04
Can you test the APKs built here #723 ?
This has been fixed a while back :partying_face: