Hi,
Hi Radim,
// Instantiate Document Object<o:p></o:p>
Document doc = new Document();
// Add a page to pages collection of document
Aspose.Pdf.Page page = doc.Pages.Add();
// Load the source image file to Stream object
FileStream fs = new FileStream("c:/logo.jpg", FileMode.Open, FileAccess.Read);
//byte[] tmpBytes = new byte[fs.Length];
//fs.Read(tmpBytes, 0, Convert.ToInt32(fs.Length));
//MemoryStream mystream = new MemoryStream(tmpBytes);
// Create an image object
Aspose.Pdf.Image image = new Aspose.Pdf.Image();
// Add the image into paragraphs collection of the section
page.Paragraphs.Add(image);
// Set the image file stream
image.ImageStream = fs;
MemoryStream ms = new MemoryStream();
// Save resultant PDF file to stream
doc.Save(ms);
// Close memoryStream object
//mystream.Close();
fs.Close();