public
Description: PHP 5 library for the Vuzit AJAX document viewer web services API
Home | Edit | New

Vuzit_Document_downloadUrl

Vuzit_Document downloadUrl function

Returns the URL for the file for downloading.

Signature

  • public static downloadUrl($id, $fileExtension)

Parameters

  • string $id : ID of the document to delete.
  • string $fileExtension : File extension of the document like “pdf”, “doc”, “ppt”, etc.

Usage Examples

Downloads the Word 2003 version of a document.


$url = Vuzit_Document::downloadUrl("DOCUMENT_ID", "doc");

echo '<a href="' . $url . '">Link to the Word document</a>";

Downloads the PDF version of the same document.


$url = Vuzit_Document::downloadUrl("DOCUMENT_ID", "pdf");

echo '<a href="' . $url . '">Link to the PDF document</a>";

Last edited by bmatzelle, Fri Oct 23 12:25:25 -0700 2009
Home | Edit | New
Versions: