Skip to content

Instantly share code, notes, and snippets.

@rpong
Created July 31, 2014 00:33
Show Gist options
  • Save rpong/2ec9c0a2b377c6cf7073 to your computer and use it in GitHub Desktop.
Save rpong/2ec9c0a2b377c6cf7073 to your computer and use it in GitHub Desktop.
<?php
include_once 'common.php';
$onlineReceipts =& getInstance('OnlineReceipts');
$orId = 1;
$manager =& getInstance('Manager');
$manager->init('update', 'admin', 'onlineReceipts', null);
$manager->useView=1;
$fileRef = $onlineReceipts->generatePDF($orId, $manager);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment