[FREE] Create PDF file Extension. Layout to PDF

First of all, thank you for your help
I used the block below and it works perfectly on my mobile.

Pressing button 5 brings up the directory of the file
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/

But when I search for it with the file manager, I get to point /storage/emulated/0/Android/data/ .
If I continue and press on edu.mit.appinventor.aicompanion3 it gives me the following message

Also in the search field ,searching the pdf file 000_My_PDF.pdf is nowhere to be found.
Please help me to find the pdf created file in my mobile

Use Total Commander (File Manager), which will give you access to your app ASD folders

What happens, if you press ok to give your file manager permission to access the /Android/data directory?

Taifun

I installed Total Commander (File Manager).
And still it DOESN'T LET ME enter directory /storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/ .
If I continue and press on edu.mit.appinventor.aicompanion3.
Please see the pictures. What can I do?

  1. How can i give to Tolal cammander write rights? When i press YES i see the below screen

Are you trying to copy something manually into that directory? To read that directory Total Commander needs only read permission, but not write permission...

Taifun

A recent android security update may be blocking new access attempts to folders.. I can access ASD folders I previously accessed, but cannot, like you, add a new one at the moment...

You may, therefore, wish to copy your file in the ASD to shared storage. Search the community for how you do that, there are many topics.....

I want to send the generated pdf file by email. This is my plan. Is it done?

From within the app ? If so, use the Sharing component.

I want the file that is created to be saved in a folder that I can read from my mobile phone. This can be done?

You probably need to use SAF to do this.

Although SAF may not be able to read ASD of other apps.

Hello
Reading the pdf file and sharing does not work (it does not attach the file), i.e. as if it does NOT exist!
Please see the image and the file.
Where is the mistake?
borrar_createPdf_A10.aia (16.5 KB)

Working OK here in companion on Android 13

Try this revised aia project:

borrar_createPdf_A10_revised.aia (11.7 KB)

Thanks!!!!!!!!!!!!!!!! :grinning:

One last question
I haven't found the extension KI04_Pdf101
I have found with the similar name that has many more blocks but it does not have it

εικόνα

I'm looking for what you put in the example above


Thanks

You will find it here

http://kio4.com/appinventor/284C_extension_crear_pdf.htm

That block is now named GetASDPath

I downloaded the pdf extension as you told me.
εικόνα

I have replaced the corresponding blocks as I see them from the pdf extension, but it did NOT work. Does not create pdf, does not share. Yours is working fine. Where is the mistake?

Please see the following images and the .aia file
ctreate_Pdf_share_fromASD.aia (12.1 KB)

The available blocks from the pdf extension are the following:

You need to use the "10" blocks

What do you mean?
This is what I used. I used the "10" blocks
See the pictures above and the one below
(on Android v13)

No you did not :wink:

image

thank you very much, it worked! :grinning: :grinning: :grinning: