Appendix A: Supported HTML tags

A limited HTML subset is supported:

<br> to break onto a new line
<b> or <strong> for bold
<i> or <em> for italics
<sup> and <sub> for superscript/subscript.
<u> for underline
<u style="double"> for double underline
<u style="strikeout"> for strikeout (a line drawn through the text)
<u style="over"> for a line drawn above the text
<p align="left"> for left aligned paragraphs
<p align="center"> for centered paragraphs
<p align="justified"> for justified paragraphs
<ul>, <ol> and <li> for ordered/unordered lists
<a href="http://..."> for web links
<a href="https://..."> for web links
<a href="file://..."> for local file links
<font size="" color="" background="" roundback="yes/no" mode="" outlinecolor="" outlinewidth="pt">
<span background="" roundback="yes/no">

The font size can be specified as a standard HTML size, or a point size such as "11.5pt". The outline width must be specified in points, for example "1.5pt".

Text and background colors can be specified in RGB using the standard HTML hexadecimal notation, for example "#3A498C". CMYK colors can be specified using eight hexadecimal values and omitting the #, for example "5C238F02".

If the roundback attribute is "yes", the background rectangles will be drawn with rounded edges.

Annotations and hotspot links

Description

Adds a clickable hotspot rectangle to the selected page which links to a specific page and position in another PDF document.
Use the SetAnnotBorderColor function to change the color of the hotspot border.

Syntax

Parameters

The horizontal co-ordinate of the left edge of the hotspot rectangle

Left

Top

The vertical co-ordinate of the top edge of the hotspot rectangle

Width

The width of the hotspot rectangle

Height

The height of the hotspot rectangle

FileName

The path and file name of the PDF document to link to.

Page

The page in the destination document to link to

Position

The vertical co-ordinate on the destination page to link to

NewWindow

0 = Close the current document and then open the new document

1 = Open the current document in a new window

Specifies the appearance of the link:

0 = No border

1 = Draw a border

Options

int DLAddLinkToFile(int InstanceID, double Left, double Top, double Width, double Height, wchar_t * FileName, int Page, double Position, int NewWindow, int Options);

Function PDFlib::AddLinkToFile(Left As Double,

Top As Double, Width As Double, Height As Double,

FileName As String, Page As Long, Position As Double, NewWindow As Long, Options As Long) As Long

function TPDFlib.AddLinkToFile(Left, Top, Width,

Height: Double; FileName: WideString; Page: Integer; Position: Double; NewWindow, Options: Integer): Integer;