| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/sfpcplanning/public_html/lib/ |
Upload File : |
<?
/*
* Aprint test module
*/
require_once('./aprint.php');
// Class setup. I set the title for the job
$p=new aprint("test_3","aprint_test3.php-1.2.0");
// Margins setup: top, bottom, and left
$p->SetMargin(400,500,400);
// Open the connection to the printer. It is required to create the
// fonts
$p->OpenPrinter();
// Create the font to use for the header.
// Two fonts: one big, one normal
$fnt1=$p->CreateFont("Arial",720,360,800);
$fnt2=$p->CreateFont("Arial",360,180,400);
$fnt3=$p->CreateFont("Arial",260,120,200,true);
$fnt4=$p->CreateFont("Arial",260,120,400,false);
/* Now setup the header.
* First array, the header is made by 3 rows,
* Second array the font to use foe each row.
* I want use the big font for the first and third row.
*/
$p->SetPageHeader(array("R.A. Burke (Foynes) Ltd"),
array($fnt2) // different font foe each row
);
// Line1
$text_line = "Document:";
$p->TextXY(550,800,$text_line,$fnt3);
$text_line = "Release Import";
$p->TextXY(2400,800,$text_line,$fnt4);
$text_line = "Line:";
$p->TextXY(5800,800,$text_line,$fnt3);
$text_line = "APL";
$p->TextXY(7900,800,$text_line,$fnt4);
// Line 2
$text_line = "Date / Time:";
$p->TextXY(550,1200,$text_line,$fnt3);
$text_line = "08.06.06 14:00";
$p->TextXY(2400,1200,$text_line,$fnt4);
$text_line = "Order / Ref. No:";
$p->TextXY(5800,1200,$text_line,$fnt3);
$text_line = "06/APL/FOY";
$p->TextXY(7900,1200,$text_line,$fnt4);
// Line 2
$text_line = "Haulier:";
$p->TextXY(550,1600,$text_line,$fnt3);
$text_line = "Cosgrave";
$p->TextXY(2400,1600,$text_line,$fnt4);
$p->run();
?>