PdfSaveOptions.ExportLanguageToSpanTag
PdfSaveOptions ExportLanguageToSpanTag property. Gets or sets a value determining whether or not to create a Span tag in the document structure to export the text language.
PdfSaveOptions.ExportLanguageToSpanTag property
Gets or sets a value determining whether or not to create a “Span” tag in the document structure to export the text language.
public bool ExportLanguageToSpanTag { get; set; }
Remarks
Default value is false
and “Lang” attribute is attached to a marked-content sequence in a page content stream.
When the value is true
“Span” tag is created for the text with non-default language and “Lang” attribute is attached to this tag.
This value is ignored when ExportDocumentStructure
is false
.
Examples
Shows how to configure exporting document structure to PDF.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.ExportDocumentStructure = true;
pdfSaveOptions.ExportLanguageToSpanTag = true;
pdfSaveOptions.ExportParagraphGraphicsToArtifact = true;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "PdfSaveOptions.ExportDocumentStructure.pdf", pdfSaveOptions)
.Execute();
See Also
- class PdfSaveOptions
- namespace Wordize.Saving
- assembly Wordize