PHP code example of rocketman / pdf-label
1. Go to this page and download the library: Download rocketman/pdf-label library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rocketman / pdf-label example snippets
$label = "5160"; // pre-defined label name or form-spec array
$pdf = new \PDF_Label($label);
$pdf->AddFont(...); // see tFPDF documentation for AddFont and SetFont
$pdf->SetFont(...);
$pdf->AddPage();
$pdf->Add_Label("label content here");
$pdf->Add_Label("second label");
$pdf->currentLabel("more content for current label");
$pdf->verticalText("vertical text for current label", -1, 0, 'D');
$pdf->writeQRCode("https://www.ibinx.com/", "R");
$pdf->Output();