SaveFormat

PclSaveOptions.SaveFormat property

指定如果使用此保存选项对象,文档将以哪种格式保存。 只能是Pcl.

public override SaveFormat SaveFormat { get; set; }

例子

展示如何在将文档保存为 PCL 时光栅化复杂元素。

Document doc = new Document(MyDir + "Rendering.docx");

PclSaveOptions saveOptions = new PclSaveOptions
{
    SaveFormat = SaveFormat.Pcl,
    RasterizeTransformedElements = true
};

doc.Save(ArtifactsDir + "PclSaveOptions.RasterizeElements.pcl", saveOptions);

也可以看看