Create PDF

asigala

Member
Licensed User
Longtime User
I'm trying to create a PDF report in my app.

I'm using PDFWriter 1.10 but there is a problem when I try to add images. I've read that there is a problem with the lib.

Any suggestions?

Thank's in advance.:sign0085::sign0085:
 

Dman

Active Member
Licensed User
Longtime User
Here is the code I use to add an image to my pdf reports. I load it into an invisible imageview first. I'm not sure if it is the correct way to do it but it works good.

B4X:
ImageView1.Bitmap = LoadBitmapSample(File.DirDefaultExternal, "myimage.jpg",150,60)
   PDFWriter1.addImage(227,300,ImageView1.Bitmap)
 
Upvote 0

asigala

Member
Licensed User
Longtime User
Here is the code I use to add an image to my pdf reports. I load it into an invisible imageview first. I'm not sure if it is the correct way to do it but it works good.

B4X:
ImageView1.Bitmap = LoadBitmapSample(File.DirDefaultExternal, "myimage.jpg",150,60)
   PDFWriter1.addImage(227,300,ImageView1.Bitmap)

But when I add many images my app stops :( :BangHead: How can I fix it?
 
Upvote 0

Similar Threads

Top