[FREE] Create PDF file Extension. Layout to PDF

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)

1 Like

Working OK here in companion on Android 13

Try this revised aia project:

borrar_createPdf_A10_revised.aia (11.7 KB)

1 Like

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

1 Like

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

1 Like

You will find it here

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

That block is now named GetASDPath

1 Like

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:

1 Like

You need to use the "10" blocks

1 Like

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)

1 Like

No you did not :wink:

image

1 Like

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

1 Like

See here for a method to make a PDF from an arrangement that is wider than the screen

1 Like

Hello, I am to use the extension KIO4_PDF @Juan_Antonio, I have a cuestion with the size of image that I picture of the camera.
The canvas of document pdf is more long respect to imagen, also when I picture photo, this one is in horizontal, but i picture in vertical I don´t know.

This my Blocks

and this the result
prueba.pdf (6.5 KB)

1 Like

Read through this topic (and the post directly above yours) for solutions

1 Like

when tried to create file - error coming -
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/test.pdf
false

when tried to share file - error coming -
Error 2001 : The File file:///storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/test.pdf
could not be found on your device

I am having aicompanion2 on my laptop
Please guide

1 Like

Please show your relevant blocks, and advise of the android version you are testing on.

1 Like

KIndly permit me to use this extension for the MIT GLOBAL AI HACKATHON

1 Like

Runtime Error java.io.FileNotFoundException: /storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/roopak1.pdf (No such file or directory) Note: You will not see another error reported for 5 seconds.


When i'm saving .txt file, it works without error. When i'm saving component as image or pdf using extensions it is showing error.

can anyone help me why am i getting this error?

1 Like

What Android version are you running ?

Does this only happen when running in companion app ?

1 Like

it happened after built app also.
but it works in another app in same version with same method. Even both app in legacy mode.

1 Like

:question:

1 Like