Tags a PDF document.

 

   

Syntax
 

[C#]
Doc Tag(Python.PythonScope scope, string path, XReadOptions options)

 

   

Params
 
Name Description
scope The Python scope for running code.
path The file path to the PDF document.
options The settings for the read.
return The tagged PDF document.

 

   

Notes
 

Tags a PDF document.remarks: This method sets XSaveOptions.AutoTag of Doc.SaveOptions to true.

New tags are created only when the document is saved to a file or is serialized.

 

   

Example
 

This example shows a simple document tagging operation.

 

var options = new PythonOptions(); options.Initialize(PythonEnvironment.Current, null); using var rt = PythonEnvironment.Current.GetRuntime(); using var scope = rt.CreateScope(); rt.StdOutWriter = Console.Out; rt.StdErrWriter = Console.Error; rt.AutoInitializeRuntime(scope, null); var p = Environment.OSVersion.Platform; bool isWindows = p == PlatformID.Win32NT || p == PlatformID.Win32S || p == PlatformID.Win32Windows; if (!isWindows)   scope.Exec("import os\nos.environ['NO_COLOR'] = '1'\n"); var op = new AccessibilityOperationAI(); using var doc = op.Tag(scope, "../Rez/spacex_nasa_dragon.pdf"); doc.Save("accessibility_ai.pdf");


accessibility_ai.pdf