phpdftk API Documentation

AnnotationFlattener
in package

FinalYes

Flatten annotations into page content, making them non-interactive.

Usage: AnnotationFlattener::open('form.pdf') ->flattenAll() ->save('flat.pdf');

Table of Contents

Methods

flattenAll()  : self
flattenForms()  : self
flattenType()  : self
getPageCount()  : int
getReader()  : PdfReader
getVersionWarnings()  : array<int, string>
open()  : self
openString()  : self
save()  : void
toBytes()  : string

Methods

flattenType()

public flattenType(string ...$subtypes) : self
Parameters
$subtypes : string
Return values
self

getVersionWarnings()

public getVersionWarnings() : array<int, string>
Return values
array<int, string>

open()

public static open(string $path[, string $password = '' ]) : self
Parameters
$path : string
$password : string = ''
Return values
self

openString()

public static openString(string $pdfBytes[, string $password = '' ]) : self
Parameters
$pdfBytes : string
$password : string = ''
Return values
self

        
On this page

Search results