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

Vuzit_Document_download_url

Vuzit::Document download_url function

Returns the URL for the file for downloading.

Signature

  • static download_url(id, file_extension)

Parameters

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

Usage Examples

Downloads the Word 2003 version of a document.


url = Vuzit::Document.download_url("DOCUMENT_ID", "doc")

puts '<a href="' + url + '">Link to the Word document</a>"

Downloads the PDF version of the same document.


url = Vuzit::Document.download_url("DOCUMENT_ID", "pdf")

puts '<a href="' + url + '">Link to the PDFdocument</a>"

Last edited by bmatzelle, Wed Nov 04 13:30:07 -0800 2009
Home | Edit | New
Versions: