Table of Contents
PDF Download

Miscellaneous
The german original can be downloaded from here.
SetaPDF_Parser::cacheFlags()
Description
class SetaPDF_Parser {
mixed cacheFlags ( [string $flags=null] )
}
Sets the flags how the parser should handle read and write processes of objects or xref-tables.
This method should be called static.
You can use this flags to do fine tuning of the caching mechanism. The flags can be combined using a bitwise AND (|) operation.
If any flag is set, except SETAPDF_P_CACHE_NO, a valid writeable path should be set with SetaPDF_Parser::cacheDir().
Parameters
$flags
The parameter defines the caching behaviour of the API. Available values are:
- SETAPDF_P_CACHE_NO - Don't read and write cache.
- SETAPDF_P_CACHE_READ_XREF - Try to read the cached xref table.
- SETAPDF_P_CACHE_WRITE_XREF - Write the xref table to cache.
- SETAPDF_P_CACHE_XREF - Try to read and write the xref table.
- SETAPDF_P_CACHE_READ_OBJECTS - Try to read cached objects.
- SETAPDF_P_CACHE_WRITE_OBJECTS - Write read objects to cache.
- SETAPDF_P_CACHE_OBJECTS - Try to read and write objects to cache.
- SETAPDF_P_CACHE_ALL - Read and write objects and xref-tables.
(see also
Constants / Configurations)
Return Values
The actual value.