Manuals

 

SetaPDF-Link Replacer API - Introduction

The SetaPDF-LinkReplacer API offers you a very easy to use structure, as we'll describe here.

You open a document through the factory-method, which will return an instance of the SetaPDF-LinkReplacer.

After that you can query the page count with the getPageCount()-method and walk thorugh the pages. You can query links of a specific page with the getLinks()-method.

The getLinks()-method returns an array of object references of the type SetaPDF_Link. This objects can be seen as real links with 2 simple public methods: getValue() and setValue(). With them you can query the current link target and set a new one.

You can output the new PDF document with the replaceLinks()-Method of the main object.