RenderChoiceFormFieldBorder

PdfSaveOptions.RenderChoiceFormFieldBorder property

指定是否呈现 PDF 选择表单字段边框。

public bool RenderChoiceFormFieldBorder { get; set; }

评论

PDF 选择表单字段用于导出 SDT 组合框内容控件、SDT 下拉列表内容 控件和旧式下拉表单字段PreserveFormFields选项已启用。

默认值为真的

例子

展示如何呈现 PDF 选择表单字段边框。

Document doc = new Document(MyDir + "Legacy drop-down.docx");

PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.PreserveFormFields = true;
saveOptions.RenderChoiceFormFieldBorder = true;

doc.Save(ArtifactsDir + "PdfSaveOptions.RenderChoiceFormFieldBorder.pdf", saveOptions);

也可以看看