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 });

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.