SetaPDF_Core_Writer_HttpStream A writer class for immediately HTTP delivery without sending a Length header

File: /SetaPDF/Core/Writer/HttpStream.php

Class hierarchy

Implements

Summary

Properties

$_filename

protected string SetaPDF_Core_Writer_HttpStream::$_filename = 'document.pdf'

The document filename

$_inline

protected boolean SetaPDF_Core_Writer_HttpStream::$_inline = false

Flag saying that the file should be displayed inline or not

$_pos

protected integer SetaPDF_Core_Writer_HttpStream::$_pos = 0

The current position

$_status

Status property


Methods

__construct()

public SetaPDF_Core_Writer_HttpStream::__construct ( [ string $filename = 'document.pdf' [, boolean $inline = false ]] )

The constructor.

Parameters
$filename : string

The path to which the writer should write to

$inline : boolean

Defines if the document should be displayed inline or if a download should be forced

cleanUp()

Method which should/will be called when the document objects cleanUp() method is called.

finish()

Method which should/will be called when the writing process is finished.

getPos()

public integer SetaPDF_Core_Writer_Echo::getPos ( void )

Returns the current position.

getStatus()

Get the current status of the writer object.

start()

This method is called when the writing process is started.

It sends the HTTP headers.

write()

public void SetaPDF_Core_Writer_Echo::write ( string $s )

Echo the string.

Parameters
$s : string