Hello Aspose Team,
I have several plain-text files with FF (FormFeed ALT + 012) as a new page symbol, I need to convert them into another format, for instance PDF and make sure new pages are inserted accordingly.
If I use a string to store the content of the file (string BodyText = File.ReadAllText(sourceFile) ) and then a DocumentBuilder to write that text into a Document everything works as expected,
FormFeeds are rendered correctly and content shows in its corresponding page.
However, when working with big input files (100 MB +) I get an exception at
wordDoco.Save(FileName, Aspose.Words.SaveFormat.Pdf); // OutOfMemoryException here
If I load the input text file directly into the Document (Document wordDoco = new Document(sourceFile)) object and then save as PDF it correctly creates the file but it ignores the NewPage-FormFeed symbols.
I tried using loadOPtions with different Types and Encodings but I have not managed to get it to write FormFeeds into the output document.
Any help would be greatly appreciated.