BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//Create PDF unit converter PdfUnitConvertor converter = new PdfUnitConvertor();
//Covert pixel to point float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point);
//Add a section PdfSection section = doc.Sections.Add();
//Set margin section.PageSettings.SetMargins(0);
//Page Size section.PageSettings.Width = width; section.PageSettings.Height = height;
//Add new page PdfPage page = section.Pages.Add(); |