Hi Aspose team,
In my example I have 800 pages PDF document that I would like to convert to Word. Code is simple and it takes 17 minutes on my computer (i7, 16Gb).
Document pdfDocument = new Document(uploadFolder + @"\" + fileNameOld);
DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.Format = DocSaveOptions.DocFormat.DocX;
saveOptions.ImageResolutionX = 150;
saveOptions.ImageResolutionY = 150;
saveOptions.Mode = DocSaveOptions.RecognitionMode.Flow;
pdfDocument.Save(uploadFolder + @"\" + fileNameNew, saveOptions);
DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.Format = DocSaveOptions.DocFormat.DocX;
saveOptions.ImageResolutionX = 150;
saveOptions.ImageResolutionY = 150;
saveOptions.Mode = DocSaveOptions.RecognitionMode.Flow;
pdfDocument.Save(uploadFolder + @"\" + fileNameNew, saveOptions);
I guess that problem is that Aspose.PDF is reading whole document into memory and then starts conversion completely in memory.
What would be the best way to do big conversion? Any option to convert huge documents in batches like read first 50 pages and save them to Word document, read next 50 pages and append to existing document, etc...
What are you recommendations to improve performances of conversion?
Btw. PDF document is around 24Mb but conversion is occupying more than 1Gb which is kind a really a lot. My expectation was that it will take up to 10x of PDF size and not 40x.