Create PDF Files in Corona SDK

Hi,

I am working on an app where I have to create a PDF file and send it via email.

I found a cool lua lib called luaFpdf.lua which works fine for me, but I am not able to
place an image on the pdf.

I already spent hours but could not figure out why it is not working. Seems to be
a problem with the jpg or png file or maybe the function is not completele implemented yet.

So, if there is someone who may want to help me and dig into that would be very nice.

I have a provided a very simple app where you can just ceate and view a pdf.

Works fine as long as you do not set the checkmark to include images.

Link to sample

https://www.dropbox.com/sh/l8aqnjrjn5hs0l9/AADpAyZYf3tFMpOPDTt_WACQa?dl=0

Thx in advance
Andreas

Good morning

I’m trying to open a PDF file with your tutorial.

But it does not work, it becomes the white phone’s screen.

can you help me?

thank you

best regards

Andrea

Did you check yout DokumentsDirectory if a pdf named sample.pdf is created after pressing the button?
I guess it is just a problem with displaying the pdf in the webView.

Are you in windows or mac or on a device?

 

I did a lot of tests, I downloaded a PDF file from my server, it does me anyway. the white screen remains. on the simulator or on windows pc it works well

on the device no.

Samsung galaxy S7 edge = Android 7.0

Samsung galaxy S5 = Android 6.0.1

thank you

best regards

Andrea

Do you have any pdf reader installed on the device?

try to open a pdf on the device from your file manager and see what happens.

It was tried. opens the PDF without problems from the phone.

from the app it does not work for me

Thanks for your help

best regards 

Andrea

Good morning

I’m trying to open a PDF file with your tutorial.

But it does not work, it becomes the white phone’s screen.

can you help me?

thank you

best regards

Andrea

Did you check yout DokumentsDirectory if a pdf named sample.pdf is created after pressing the button?
I guess it is just a problem with displaying the pdf in the webView.

Are you in windows or mac or on a device?

 

I did a lot of tests, I downloaded a PDF file from my server, it does me anyway. the white screen remains. on the simulator or on windows pc it works well

on the device no.

Samsung galaxy S7 edge = Android 7.0

Samsung galaxy S5 = Android 6.0.1

thank you

best regards

Andrea

Do you have any pdf reader installed on the device?

try to open a pdf on the device from your file manager and see what happens.

It was tried. opens the PDF without problems from the phone.

from the app it does not work for me

Thanks for your help

best regards 

Andrea