exportParagraphGraphicsToArtifact property

PdfSaveOptions.exportParagraphGraphicsToArtifact property

Gets or sets a value determining whether a paragraph graphic should be marked as an artifact.

get exportParagraphGraphicsToArtifact(): boolean

Remarks

Default value is false and paragraph graphics (underlines, text emphasis, etc.) will be marked as “Span” in the logical structure of the document.

When the value is true the paragraph graphics will be marked as “Artifact”.

This value is ignored when PdfSaveOptions.exportDocumentStructure is false.

Examples

Shows how to export paragraph graphics as artifact (underlines, text emphasis, etc.).

let doc = new aw.Document(base.myDir + "PDF artifacts.docx");

let saveOptions = new aw.Saving.PdfSaveOptions();
saveOptions.exportDocumentStructure = true;
saveOptions.exportParagraphGraphicsToArtifact = true;
saveOptions.textCompression = aw.Saving.PdfTextCompression.None;

doc.save(base.artifactsDir + "PdfSaveOptions.exportParagraphGraphicsToArtifact.pdf", saveOptions);

See Also