exportLanguageToSpanTag property
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.
get exportLanguageToSpanTag(): boolean
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 PdfSaveOptions.exportDocumentStructure is false
.
Examples
Shows how to create a “Span” tag in the document structure to export the text language.
let doc = new aw.Document();
let builder = new aw.DocumentBuilder(doc);
builder.writeln("Hello world!");
builder.writeln("Hola mundo!");
let saveOptions = new aw.Saving.PdfSaveOptions();
// Note, when "ExportDocumentStructure" is false, "ExportLanguageToSpanTag" is ignored.
saveOptions.exportDocumentStructure = true;
saveOptions.exportLanguageToSpanTag = true;
doc.save(base.artifactsDir + "PdfSaveOptions.exportLanguageToSpanTag.pdf", saveOptions);
See Also
- module Aspose.Words.Saving
- class PdfSaveOptions