WordProcessingLoadOption is not working

When I try to convert a docx to pdf with:

using (Converter converter = new Converter(wordFile, () => new WordProcessingLoadOptions
        {
            UpdateFields= true
        }))
        {
            PdfConvertOptions options = new PdfConvertOptions();
            converter.Convert(pdfFile, options);
        }

Field Codes like {FILENAME \p} are not loaded and converted to text

When this option is on default/disabled you get the stored information but not the updated one.

@sensortechnik

Could you please share more details on this scenario? Also share the sample file and functional example project.

test.docx (15.3 KB)
tmp.pdf (113.8 KB)

This docx file has a Field Code in the Header, Body and Footer. When I chose to load it with “WordProcessingLoadOptions” and set “UpdateFields = true” and convert it to PDF then only the Field Code in the Body shows up but isn´t updated. The Field Codes in the Header and Footer are not shown at all.

The code I used to perform the conversion is in the main post.

@sensortechnik
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONNET-5822

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.