Hello everyone,
I am testing one of the syncfusion dll.I want my document to be saved in A4 size after converting from xps to pdf.But it does not work...Is there any solution?
My second question is that my xps file is in memory..Actually it comes from FlowDocumentReader in wpf...Is there any possibility to convert the content directly to pdf without saving it as a xps file?
Thanks in advance
XPSToPdfConverter converter = new XPSToPdfConverter();
//Convert the XPS to PDF
PdfDocument document = converter.Convert("C:\\Users\\student\\source\\repos\\FlowDoproj\\bin\\Debug\\helloworld.xps");
//Save and close the document
document.PageSettings.Size = PdfPageSize.A4;
document.PageSettings.Orientation = PdfPageOrientation.Portrait;
document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle0;
document.Save("C:\\Users\\student\\source\\repos\\FlowDoproj\\bin\\Debug\\syncfusion.pdf");
document.Close(true);
MessageBox.Show("pdf file is saved now");
}