This topic shows how to create Microsoft Visual Basic and C# Windows Forms applications that use this control to load eDrawings drawings. The eDrawings API is implemented as a Microsoft ActiveX control. Width, 30 )) element = new PdfTextElement ( "INVOICE " + 10248, subHeadingFont ) element.
DrawRectangle ( new PdfSolidBrush ( new PdfColor ( 126, 151, 173 )), new RectangleF ( 0, result. TimesRoman, 14 ) //Draw Rectangle place on location g. Width / 2, 95 )) PdfFont subHeadingFont = new PdfStandardFont ( PdfFontFamily. PdfLayoutResult result = new PdfLayoutResult ( page, new RectangleF ( 0, 0, page.
The following code example shows how to create a PDF document and add a PdfPage to it along with the PdfPageSettings.
The PdfDocument object represents an entire PDF document that is being created. Windows ) Creating a simple PDF document with basic elements Please refer PDF/Xamarin section for respective code samples.
Close ( true ) //Save the stream into pdf file //The operation in Save under Xamarin varies between Windows Phone, Android and iOS platforms. MemoryStream stream = new MemoryStream () document. Black, new PointF ( 0, 0 )) //Save the PDF document to stream. DrawString ( "Hello World!!!", font, PdfBrushes. PdfFont font = new PdfStandardFont ( PdfFontFamily. Add () //Create PDF graphics for the page. PdfDocument document = new PdfDocument () //Add a page to the document.