将 PowerPoint 转换为 TIFF 及备注
Contents
 [
      
        Hide
      ]
    在备注幻灯片视图中将 PPT(X) 转换为 TIFF
Presentation 类提供的 Save 方法可用于将整个演示文稿转换为 TIFF 格式的备注幻灯片视图。以下代码片段将示例演示文稿更新为备注幻灯片视图中的 TIFF 图像,如下所示:
//实例化一个表示演示文稿文件的 Presentation 对象
  $pres = new Presentation("demo.pptx");
  try {
    $opts = new TiffOptions();
    $opts->getNotesCommentsLayouting()->setNotesPosition(NotesPositions::BottomFull);
    # 保存演示文稿为 TIFF 备注
    $pres->save("Tiff-Notes.tiff", SaveFormat::Tiff, $opts);
  } finally {
    if (!java_is_null($pres)) {
      $pres->dispose();
    }
  }
上述代码片段将示例演示文稿更新为备注幻灯片视图中的 TIFF 图像,如下所示:
| 带备注的源演示文稿视图 | ** | 
|---|---|
|  | 
| 备注幻灯片视图中生成的 TIFF 图像 | ** | 
|---|---|
|  |