-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDocument.php
More file actions
64 lines (61 loc) · 3.75 KB
/
Copy pathDocument.php
File metadata and controls
64 lines (61 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
namespace atans\bpac;
/**
* Class Document (bpac::Document)
* Document interface
* This turns the P-touch Editor's document file (*.lbl, *.lbx) into a template, and performs the document's printing, layout editing, and others.
*
* @author Atans Chiu
*
* @event Printed
*
* @property string $CurrentSheet [get, set] Sets or acquires the current sheet name
* @property integer $CutLineCount [get] Acquires the cutting line count
* @property integer $CutLines [get] Acquires the cutting line position (VT_VARIANT | VT_ARRAY)
* @property integer $ErrorCode [get] Acquires the error number occurring inside b-PAC
* @property integer $Length [get, set]Sets or acquires the tape length
* @property integer $MarginBottom [get, set] Sets or acquires the bottom margin
* @property integer $MarginLeft [get, set] Sets or acquires the left margin
* @property integer $MarginTop [get, set] Sets or acquires the top margin
* @property Objects|Object[] $Objects [get] Acquires the object collection
* @property integer $Orientation [get] Acquires the paper direction (0:horizontal, 1:vertical)
* @property Printer $Printer [get] Acquires the printer
* @property array $SheetNames [get] Sheet name enumeration (VT_VARIANT | VT_ARRAY)
* @property integer $Width [get] Acquires the tape width
*
* @method boolean Close() Closes the file opened with Open()
* @method boolean DoPrint (PrintOptionConstants $dwOption, int $szOption) Prints the document
* @method boolean EndPrint () End of print job settings
* @method boolean Export (ExportType $type, string $filePath, int $dpi) Outputs the file in the specified format
* @method integer GetBarcodeIndex (string $objectName) Acquires the barcode data index
* @method array GetImageData (ExportType $type, float $width, float $height) Acquires a preview sample image (VT_UI1 | VT_ARRAY)
* @method integer GetMediaId () Acquires the media ID specified for the template. Acquiring the ID of the media loaded in the printer refers to IPrinter::GetMediaId().
* @method string GetMediaName () Acquires the media name specified for the template. Acquiring the name of the media loaded in the printer refers to IPrinter::GetMediaName().
* @method Object GetObject (string $name) Acquires the object
* @method string GetPrinterName () Acquires the printer name
* @method boolean GetText (int $index, string $text) Acquires the text data of the specified line
* @method integer GetTextCount (int $index, string $text) Acquires the text line count
* @method integer GetTextIndex (string $fieldName) Acquires the text index
* @method boolean Open (string $filePath) Opens the template file
* @method boolean PrintOut (integer $copyCount, PrintOptionConstants|integer $option) Adds a print job
* @method boolean Save () Saves the document
* @method boolean SaveAs (ExportType $type, string $filePath)
* @method boolean SetBarcodeData (integer $index, string $barcodeData)Sets the barcode data
* @method boolean SetMarginLeftRight (integer $left, integer $right) Sets the left/right margin
* @method boolean SetMediaById (integer $mediaId, boolean $fitPage) Sets the media to be used, by media ID
* @method boolean SetMediaByName (string $mediaName, boolean $fitPage) Sets the media to be used, by media name
* @method boolean SetPrintedCallback ($pCallback) Sets the callback object
* @method boolean SetPrinter (string $printerName, boolean $fitPage) Sets up the printer
* @method boolean SetText (integer $index, string $text) Sets the text data for the specified line
* @method boolean StartPrint (string $docName, PrintOptionConstants|int $option) Start of print job setup
*/
class Document extends BaseComModel
{
/**
* Document constructor.
*/
public function __construct()
{
parent::__construct('bpac.Document');
}
}