![]() ![]() ![]() string contentType = "application/pdf" //Define the file name. Close ( true ) //Defining the ContentType for pdf file. ![]() Save ( stream ) //If the position is not set to '0' then the PDF will be empty. MemoryStream stream = new MemoryStream () //Save the document as stream. Add ( comboBoxField ) //Creating the stream object. Add ( new PdfListFieldItem ( "Documentation", "content" )) //Add combo box to the form. Add ( new PdfListFieldItem ( "Support", "advertise" )) comboBoxField. Add ( new PdfListFieldItem ( "Development", "accounts" )) comboBoxField. PdfComboBoxField comboBoxField = new PdfComboBoxField ( page, "JobTitle" ) //Set the combo box properties. Add () //Create a combo box for the first page. PdfDocument document = new PdfDocument () //Add a new page to PDF document. Refer to PDF/UWP section for respected code samples. Close ( true ) //Save the stream as PDF document file in local machine. SaveAsync ( stream ) //Close the document. MemoryStream stream = new MemoryStream () await document. Add ( comboBoxField ) //Save the PDF document to stream. ![]() Bounds = new RectangleF ( 0, 40, 100, 20 ) //Set tooltip. Please refer the below code snippet for adding the combo box in new PDF document. You can add a list of items to the combo box by using the PdfListFieldItem class. PdfComboBoxField class is used to create a combo box field in PDF forms. You can download a complete working sample from GitHub. Please refer PDF/Xamarin section for respective code samples. The operation in Save under Xamarin varies between Windows Phone, Android and iOS platforms. Close ( true ) //Save the stream into pdf file. MemoryStream stream = new MemoryStream () document. Add ( textBoxField ) //Save the PDF document to stream. ToolTip = "First Name" //Add the form field to the document. RectangleF ( 0, 0, 100, 20 ) textBoxField. PdfTextBoxField textBoxField = new PdfTextBoxField ( page, "FirstName" ) textBoxField. Add () //Create a textbox field and add the properties. PdfDocument document = new PdfDocument () //Add a new page to the PDF document. return File ( stream, contentType, fileName ) string fileName = "Form.pdf" //Creates a FileContentResult object by using the file contents, content type, and file name. Add ( textBoxField ) //Creating the stream object. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |