Skip to content

RocketMan/pdf-label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF_Label

This class is a modified version of PDF_Label that adds support for unicode and ttf.

Documentation and source for the upstream class can be found here: http://www.fpdf.org/en/script/script29.php

Installation with Composer

If you are using composer to manage dependencies, you can use

$ composer require rocketman/pdf-label:1.6+rocketman.2

or you can include the following in your composer.json file:

{
    "require": {
        "rocketman/pdf-label": "^1.6+rocketman.2"
    }
}

Usage

$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();

About

PDF label maker with support for unicode and ttf

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages