KuljeetSingh.com

Oct 02, 2013

Saving Multiple Images in PDF File

Ealier we discussed saving Multiple Images in Multiframe TIFF Image. Another method to manage Multiple Images is creating PDF File.
There are two free Open source methods / Library available to create PDF with VB.NET.
1. Using iTextSharp
2. Using PDFSharp

Here We will discuss creating PDF with VB.net using PDFSharp Library. Creating PDF with PDF Sharp is very easy.
Steps:
1. First step is creating PDF Document Dim doc As New PdfDocument
2. Second Step is creating adding a PDF Page Dim page As New PdfPage

3. Then we can draw XImage using DrawImage function XGraphics object Dim xgr As XGraphics = XGraphics.FromPdfPage(page)
Dim img As XImage = XImage.FromGdiPlusImage(<imageobject>, Image))
xgr.DrawImage(img, 0, 0, img.Width, img.Height)

4. Save the Document doc.Save(SaveFileDialog2.FileName)

Download Sample Code Here

 
?

Blogs | About Me | My Projects | Contact Me
【丰胸】虽然,这些药物对于乳房而言粉嫩公主,能够起到一定的丰胸效果,可朋友们这些药物的后遗症,也会在我们服完后慢慢显现出来丰胸产品,譬如:机体中的雌激素水平被打破了,就容易导致我们的月经变得不正常丰胸食物,从而使得我们的腰跟着变得圆嘟嘟,而严重的话还可能会导致我们的子宫出血,肝脏受损丰胸效果,所以说若是采用药物来进行丰胸,大家还是小心谨慎些为好。