![]() ![]() The following screenshot shows the invoice PDF document created by using Essential PDF.Īn interactive form, sometimes referred to as an AcroForm, is a collection of fields for gathering information interactively from the user. You can download a complete working sample from GitHub. The following code example shows how to save the invoice document to disk and dispose the PdfDocument object. Draw ( page, new RectangleF ( new PointF ( 0, result. Paginate //Draws the grid to the PDF page. PdfGridLayoutFormat layoutFormat = new PdfGridLayoutFormat () //Creates layout format settings to allow the table pagination. TextBrush = new PdfSolidBrush ( new PdfColor ( 131, 130, 136 )) //Creates the layout format for grid. Font = new PdfStandardFont ( PdfFontFamily. Bottom = new PdfPen ( new PdfColor ( 217, 217, 217 ), 0.70f ) cellStyle. Add ( new object //Applies the header style. Add ( "Name" ) //Add rows to the DataTable. DataTable dataTable = new DataTable () //Add columns to the DataTable dataTable. PdfGrid pdfGrid = new PdfGrid () //Create a DataTable. PdfDocument doc = new PdfDocument () //Add a page. Then use the DrawString method of the PdfGraphics object to draw the text on the PDF page and download the output PDF from ASP.NET MVC application. Step 5: Add the following code sample in btnCreate_Click to create a generate a PDF document using the PdfDocument class. Click the button to view PDF file generated by Essential PDF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |