Hello
I have a file that I’m using to test RTF to PDF/Docx conversion. When I run it using the recommended code, It stops on page 6 out of 20. I suspected it had to do with the actual RTF, so I opened the RTF, copied the contents into a new RTF and ran the same code and worked successfully. Anyone run into this issue before?
The code that I am using is the following:
using (Stream stream = File.OpenRead(file))
{
Document doc = new Document(stream);
doc.Protect(ProtectionType.NoProtection);
int pageCount = doc.PageCount;
doc.Save(outputFile, SaveFormat.Docx);
}