New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvertToHtml - docx convert to html without ContentControls #260

RachelBook3215 opened this Issue Nov 14, 2018 · 0 comments


None yet
1 participant

RachelBook3215 commented Nov 14, 2018

I try to convert docx to html using OpenXmlPowerTools. The .docx file has ContentControls, but the problem is that the content controls moves only with the text, instead of placeholder at the HTML file.
I try to use 'SimplifyMarkupSettings' with the parameter 'RemoveContentControls' set to false, but it is doesn't work.
See at the code below.
SimplifyMarkupSettings tabSettings = new SimplifyMarkupSettings { RemoveComments = false, RemoveContentControls = false, RemoveMarkupForDocumentComparison = false, RemoveEndAndFootNotes = false, RemoveFieldCodes = false, RemoveLastRenderedPageBreak = false, RemovePermissions = false, RemoveProof = false, RemoveRsidInfo = false, RemoveSmartTags = false, RemoveSoftHyphens = false, ReplaceTabsWithSpaces = true, };


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment