This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Vuzit_Document_findById
Vuzit_Document findById function
Loads a document document.
Signatures
- public static findById(string $id, $options = null)
Parameters
- string $id : ID of the document.
- array $options : Options for the uploaded file. See “Options” below.
Options
- included_pages – string : Sets the number of pages that can be previewed in a document.
Return type
- Document : The new document with an ID and all attributes.
Usage Examples
Simple load example:
Vuzit_Service::setPublicKey('YOUR_PUBLIC_API_KEY');
Vuzit_Service::setPrivateKey('YOUR_PRIVATE_API_KEY');
$doc = Vuzit_Document::findById("DOCUMENT_ID");
echo "Document id: " . $doc->getId();
echo "Document title: " . $doc->getTitle();
Example that allows the user to only see pages 1 – 9 of a document.
Vuzit_Service::setPublicKey('YOUR_PUBLIC_API_KEY');
Vuzit_Service::setPrivateKey('YOUR_PRIVATE_API_KEY');
$doc = Vuzit_Document::findById("DOCUMENT_ID", array("included_pages" => "0-8"));
echo "Document id: " . $doc->getId();
echo "Document title: " . $doc->getTitle();






