We're converting a DocX file stream to a PDF file stream but we're getting some weird results with the padding on many elements. In a clean, new document, the Margins are always 2.54cm and the individual padding of tables is completely lost. If we try to edit the Margins (even if we change to a new value and back again), the Margins then drop to 0cm from then on and the table padding is still not applied. The conversion code can be found below:
var providerDocx = new DocxFormatProvider(); var document = providerDocx.Import(response.Data.Document); var providerPdf = new PdfFormatProvider { ExportSettings = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExportSettings { ComplianceLevel = PdfComplianceLevel.PdfA2B, ImageQuality = ImageQuality.High } }; var outStream = new MemoryStream(); providerPdf.Export(document, outStream);Any help or insight you could provide would be appreciated.
Thanks
