Type Default Value Read Only Description
[C#]
bool

[Visual Basic]
Boolean
false No Whether location of certain tags should be noted.

 

   

Notes
 

This property determines whether certain tags in HTML are noted so that their location can be determined at a later date.

After adding your web pages you can retrieve information about the items on the PDF page using the GetTagIDs and the GetTagRects methods.

Note that only HTML elements which have an actual visual representation in the final output will be tagged. For example, a simple <form> element may not be tagged because it does not have a visual representation.

Sometimes, it is possible to coerce an HTML element into being rendered by the means of additional CSS style rules:

<form style="border: 1px solid red"></form>
<form style="outline: 1px solid transparent"></form>

MSHTML engine syntax

All elements of style 'abcpdf-tag-visible' 'true' will be tagged. For example:

<p id="p1" style="abcpdf-tag-visible: true">Gallia est omnis divisa in partes tres.<p>

Gecko engine syntax

Add the class abcpdf-tag-visible to HTML elements you want to be tagged:

<style type="text/css">.abcpdf-tag-visible { border: 1px solid transparent; }</style>
...
<p id="p1" class="abcpdf-tag-visible">Lorem ipsum dolor sit amet</p>

 

   

Example
 

See the GetTagRects and the GetTagUntransformedRects methods.