phpdftk API Documentation

StandardStructureType
in package

FinalYes

Standard structure types — ISO 32000-2 §14.8.4.

Constants for the standard structure element types. Use these in new StructElem(StandardStructureType::H1) or similar. The library does not enforce use of standard types; a StructElem can still be constructed with any arbitrary type name.

Table of Contents

Constants

ANNOT  = 'Annot'
ART  = 'Art'
ARTIFACT  = 'Artifact'
ASIDE  = 'Aside'
BIB_ENTRY  = 'BibEntry'
BLOCK_QUOTE  = 'BlockQuote'
CAPTION  = 'Caption'
CODE  = 'Code'
DIV  = 'Div'
DOCUMENT  = 'Document'
DOCUMENT_FRAGMENT  = 'DocumentFragment'
F_E_NOTE  = 'FENote'
FIGURE  = 'Figure'
FORM  = 'Form'
FORMULA  = 'Formula'
H  = 'H'
H1  = 'H1'
H2  = 'H2'
H3  = 'H3'
H4  = 'H4'
H5  = 'H5'
H6  = 'H6'
INDEX  = 'Index'
L  = 'L'
L_BODY  = 'LBody'
LBL  = 'Lbl'
LI  = 'LI'
LINK  = 'Link'
NON_STRUCT  = 'NonStruct'
NOTE  = 'Note'
P  = 'P'
PART  = 'Part'
PRIVATE_  = 'Private'
QUOTE  = 'Quote'
REFERENCE  = 'Reference'
RUBY  = 'Ruby'
SECT  = 'Sect'
SPAN  = 'Span'
TABLE  = 'Table'
TBODY  = 'TBody'
TD  = 'TD'
TFOOT  = 'TFoot'
TH  = 'TH'
THEAD  = 'THead'
TITLE  = 'Title'
TOC  = 'TOC'
TOCI  = 'TOCI'
TR  = 'TR'
WARICHU  = 'Warichu'

Methods

minimumVersion()  : PdfVersion|null
Return the minimum PDF version required by the given structure type, or null if the type is not a recognized standard type or has no version constraint beyond PDF 1.0.

Constants

Methods

minimumVersion()

Return the minimum PDF version required by the given structure type, or null if the type is not a recognized standard type or has no version constraint beyond PDF 1.0.

public static minimumVersion(string $type) : PdfVersion|null
Parameters
$type : string
Return values
PdfVersion|null

        
On this page

Search results