GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Setasign/tFPDF: This class is a modified version of FPDF that adds UTF-8 support.

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
font
font
 
 
.gitignore
.gitignore
 
 
HelloWorld.txt
HelloWorld.txt
 
 
README.md
README.md
 
 
README.txt
README.txt
 
 
composer.json
composer.json
 
 
ex.pdf
ex.pdf
 
 
ex.php
ex.php
 
 
info.htm
info.htm
 
 
tfpdf.php
tfpdf.php
 
 

Repository files navigation

tFPDF

This repository is only made for cloning official tFPDF releases which are available at: http://fpdf.org/en/script/script92.php THERE WILL BE NO DEVELOPMENT IN THIS REPOSITORY!

The only change in this version is that the require_once() calls to font/unifont/ttfonts.php are commented and resolved through the composer autoloader. The demo ex.php was changed accordingly, too.

tFPDF accepts UTF-8 encoded text. It embeds font subsets allowing small PDF files.

It requires a folder 'unifont' as a subfolder of the 'font' folder.

You should make the 'unifont' folder writeable (CHMOD 755 or 644). Although this is not essential, it allows caching of the font metrics the first time a font is used, making subsequent uses much faster.

All tFPDF requires is a .ttf TrueType font file. The file should be placed in the 'unifont' directory. Optionally, you can also define the path to your system fonts e.g. 'C:\Windows\Font' (see the example ex.php file) and reference TrueType fonts in this directory.

Pass a fourth parameter as true when calling AddFont(), and use utf-8 encoded text when using Write() etc.

Installation with Composer

If you're using Composer to manage dependencies, you can use

$ composer require setasign/tfpdf:1.34

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

{
    "require": {
        "setasign/tfpdf": "1.34"
    }
}

Usage

Notice that tFPDF is not name-spaced. You can extend the class this way:

namespace your\namespace;
    
class Document extends \tFPDF

or create an instance this way:

$pdf = new \tFPDF();

About

This class is a modified version of FPDF that adds UTF-8 support.

Resources

Readme
Activity
Custom properties

Stars

42 stars

Watchers

6 watching

Forks

31 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.