When I convert a document from .docx to .PDF, the footer disappears. There are a couple checkboxes in the docx that disappear as well. Does this library support these things? Is there something specific I have to do to make them work?
My code:
RadFlowDocument document;
Telerik.Documents.ImageUtils.ImagePropertiesResolver defaultImagePropertiesResolver = new Telerik.Documents.ImageUtils.ImagePropertiesResolver();
Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.ImagePropertiesResolver = defaultImagePropertiesResolver;
using (FileStream input = new FileStream("file.bin", FileMode.Create, System.IO.FileAccess.ReadWrite))
{
input.Write(doc.Content, 0, doc.Content.Count());
DocxFormatProvider provider = new DocxFormatProvider();
document = provider.Import(input);
//insert the data
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
foreach (var item in templateValues)
{
editor.ReplaceText(item.Key, item.Value);
}
//change the value in the footer
editor.ReplaceText("[Document Revised Date]", doc.lastModified.ToShortDateString());
PdfFormatProvider pdfProvider = new PdfFormatProvider();
var result = pdfProvider.Export(document);
return result;