Gets a object representing a PDF-formatted print representation of the page. A object describing the options of the printed document. The object containing the PDF-formatted print representation of the page. <exception cref="ArgumentNullExcep
(PrintOptions printOptions)
| 368 | /// <returns>The <see cref="PrintDocument"/> object containing the PDF-formatted print representation of the page.</returns> |
| 369 | /// <exception cref="ArgumentNullException">If <paramref name="printOptions"/> is <see langword="null"/>.</exception> |
| 370 | public PrintDocument Print(PrintOptions printOptions) |
| 371 | { |
| 372 | ArgumentNullException.ThrowIfNull(printOptions); |
| 373 | |
| 374 | Response commandResponse = this.Execute(DriverCommand.Print, printOptions.ToDictionary()); |
| 375 | |
| 376 | commandResponse.EnsureValueIsNotNull(); |
| 377 | string base64 = commandResponse.Value.ToString()!; |
| 378 | return new PrintDocument(base64); |
| 379 | } |
| 380 | |
| 381 | /// <summary> |
| 382 | /// Performs the specified list of actions with this action executor. |