Image from local disc

working in vb.net here tryin to insert a picture that is stored from my local disc into a pdf. Problem is i don’t kno where to start. jus wonderin if you could help me or even if you had a tutorial on how to perform such a task. Cheers Peace Out

Thanks for considering Aspose.

Class Image is designed for such function. Please refer to the following

More details please see our documentation:

thanks kev much appreciated.

Just one more question. Is it also possible to insert an image into a table cell? And is it similar to the mentioned above procedure.

Thanks for considering Aspose.

Definitely, Aspose.Pdf can do such work well. It's the operations all about table and cell. Here are samples for you.

[VB]

Dim pdf1 As Pdf = New Pdf
Dim sec1 As Section = pdf1.Sections.Add

Dim tab1 As Table = New Table
sec1.Paragraphs.Add(tab1)
tab1.ColumnWidths = "100 200"
tab1.DefaultCellBorder = New BorderInfo(BorderSide.All)
Dim row1 As Row = tab1.Rows.Add

Dim cell1 As Cell = row1.Cells.Add
Dim img1 As Image = New Image
img1.ImageInfo.File = "c:/images/apple.jpg"
img1.ImageInfo.ImageFileType = ImageFileType.Jpeg
cell1.Paragraphs.Add(img1)

The samples in C# follow the similar idea of above codes .