I am using interop code:-
doc = msWordDoc.Documents.Open(ref originalDocPath, ref oMissing, true,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
// msWordDoc.Documents.Close(ref oMissing, ref oMissing, ref oMissing);
if (doc != null)
{
doc.Activate();
object fileFormat = WdSaveFormat.wdFormatPDF;
//doc.ExportAsFixedFormat((string)originalDocPath, WdExportFormat.wdExportFormatPDF);
doc.SaveAs(ref pdfPath,
ref fileFormat, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
// msWordDoc.Documents.Close(ref oMissing, ref oMissing, ref oMissing);
if (doc != null)
{
doc.Activate();
object fileFormat = WdSaveFormat.wdFormatPDF;
//doc.ExportAsFixedFormat((string)originalDocPath, WdExportFormat.wdExportFormatPDF);
doc.SaveAs(ref pdfPath,
ref fileFormat, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
but this code has restricted me for 88 mb doc file.

bhushan jat9 pointsPosted Apr 28, 2015, 12:30 AM EDT
You have exceeded the maximum number of pages supported by Microsoft Word or this document may be damaged. Microsoft Word will save the document, but to repair the document, use the Open and Repair command (click Open, and then click the arrow next to the Open button)
Chael Snoden4 pointsPosted Apr 28, 2015, 1:48 AM EDT
I used leadtools sdk to convert my documents to PDF so I'm not an expert but if this size limitation is documented in MODI, try converting a group of pages at a time not the entire DOC file then appending to the existing PDF.
Does that work?
1 short reply
Suthish NairRank #92 · 22.8K pointsPosted Apr 24, 2015, 11:07 AM EDT