先将PPT导出成pdf文件
void ExportPresentationAsPdf(CPPTPresentation& presentation_powerpoint, string pdfPath, int startPage, int endPage)
{
CPPTPrintRanges(CPPTPrintOptions(presentation_powerpoint.get_PrintOptions()).get_Ranges()).ClearAll();
CPPTPrintRanges(CPPTPrintOptions(presentation_powerpoint.get_PrintOptions()).get_Ranges()).Add(startPage, endPage);
COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
presentation_powerpoint.ExportAsFixedFormat(pdfPath.c_str(), PpFixedFormatType::ppFixedFormatTypePDF,
PpFixedFormatIntent::ppFixedFormatIntentScreen, MsoTriState::msoFalse,
PpPrintHandoutOrder::ppPrintHandoutVerticalFirst, PpPrintOutputType::ppPrintOutputSlides, MsoTriState::msoTrue,
CPPTPrintRanges(CPPTPrintOptions(presentation_powerpoint.get_PrintOptions()).get_Ranges()).Item(1),
PpPrintRangeType::ppPrintSlideRange, "", false, true, true, false, true, covOptional);
}
用mutool.exe工具读取pdf文件中使用的字体信息