Elyor
Elyor

Reputation: 5532

Add image and text in one line itextsharp

Below code is adding text and image in separate lines. How can I display them in one line?

pdfDoc.Add(image)
pdfDoc.Add(New Paragraph(text))

Upvotes: 1

Views: 5302

Answers (1)

Elyor
Elyor

Reputation: 5532

This is what I found, using Chunk():

Dim p As New Paragraph()
p.Add(New Chunk(image, 0, 0))
p.Add(text)
document.Add(p)

Upvotes: 2

Related Questions