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);

也可以看看