A Alex_197 Well-Known Member Licensed User Longtime User Mar 10, 2024 #1 Hi all. I have a question about the DocumentPicker. Is it possible to show only PDF files? The problem is that in the user's phone might be PDF, Word, Excel files. And the user can mistakenly select a wrong file. If I use B4X: DocumentPicker.InitializeImport("picker", Array("public.content")) it shows all file types. I tried to use this B4X: DocumentPicker.InitializeImport("picker", Array("UTType.pdf")) - I see all the files but all of them are grey out. Thanks.
Hi all. I have a question about the DocumentPicker. Is it possible to show only PDF files? The problem is that in the user's phone might be PDF, Word, Excel files. And the user can mistakenly select a wrong file. If I use B4X: DocumentPicker.InitializeImport("picker", Array("public.content")) it shows all file types. I tried to use this B4X: DocumentPicker.InitializeImport("picker", Array("UTType.pdf")) - I see all the files but all of them are grey out. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Mar 11, 2024 #2 Try: "com.adobe.pdf" Upvote 0 Solution
A Alex_197 Well-Known Member Licensed User Longtime User Mar 11, 2024 #3 Erel said: Try: "com.adobe.pdf" Click to expand... it works, thank you Upvote 0