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

File: /SetaPDF v2/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_Echo::$_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 document filename in UTF-8 encoding

$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 SetaPDF_Core_Writer_Echo::getPos (
void
): integer

Returns the current position.

getStatus()

Get the current status of the writer object.

start()

public SetaPDF_Core_Writer_HttpStream::start (
void
): void

This method is called when the writing process is started.

It sends the HTTP headers.

write()

public SetaPDF_Core_Writer_Echo::write (
string $s
): void

Echo the string.

Parameters
$s : string