ExportParagraphGraphicsToArtifact

PdfSaveOptions.ExportParagraphGraphicsToArtifact property

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

public bool ExportParagraphGraphicsToArtifact { get; set; }

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 ExportDocumentStructure is false.

Examples

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

Document doc = new Document(MyDir + "PDF artifacts.docx");

PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.ExportDocumentStructure = true;
saveOptions.ExportParagraphGraphicsToArtifact = true;
saveOptions.TextCompression = PdfTextCompression.None;

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

See Also