Load an MRT form from disk, export it with StiPdfExporter, save the PDF, and open the document.

Reading the MRT file. The console application creates a StiForm instance and loads the template directly from disk.

Exporting and opening it. The entry point in Loading a Form from File/Program.cs exports the loaded form, writes the PDF bytes, and opens the saved document:
var form = new StiForm();
form.Load(@"Data\SoftwareEvaluationSurvey.mrt");

var exporter = new StiPdfExporter();
var pdf = exporter.ExportForm(form);

string path = "form.pdf";
File.WriteAllBytes(path, pdf);

Process.Start(new ProcessStartInfo(path) { UseShellExecute = true });

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.