SetaPDF Demos PHP libraries to handle, modify or create PDF files

Annotations

PDFs can have various types of annotations. See how to access, create and edit PDF annotations in PHP. For example: extract comments, modify links or flatten annotations.

Create a Link Annotation

Create a simple text and put a link on top of it.

Add Push-Buttons

This PHP demo adds two push-buttons to an existing PDF document.

Add Stamp Annotations

Stamp annotations with individual appearances in PDF documents.

Add Text Fields

This PHP demo adds text fields to a PDF document.

Flatten Annotations

Flatten annotations to a PDF pages content stream.

Get Form Fields Information

Extract information from Widget Annotations from a PDF page using PHP.

Get Link Annotations

Get access to all link annotations with an URI action.

Annotation on Rotated or Shifted Page

See how to calculate the coordinates for an annotation in case of a rotated or shifted PDF page.

Replace Link Targets

This PHP demo shows how to replace the URI of link annotations on PDF pages with SetaPDF.

Add a Free Text Annotation to a Signed PDF

A complete example of how to add a free text annotation to a digital signed PDF document.