New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

nelisys/laravel-dompdf-thai-font

Adding Thai Fonts for Laravel Dompdf
6,204
Install
composer require nelisys/laravel-dompdf-thai-font
Latest Version:v0.1.0
Laravel:8
License:MIT
Last Updated:Oct 11, 2023
Links: GitHub  ·  Packagist
Maintainer: nelisys

Laravel Dompdf Thai Font

This package is adding Thai fonts for barryvdh/laravel-dompdf to allow users can type Thai in generated PDF.

Installation

Run composer to install the package.

composer require nelisys/laravel-dompdf-thai-font

Publish the fonts files.

php artisan vendor:publish --provider="Nelisys\LaravelDompdfThaiFont\ServiceProvider"

Create storage/fonts to store cache files.

mkdir storage/fonts

Usage

Add @LaravelDompdfThaiFont inside <head>.

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
@LaravelDompdfThaiFont
<style>
body {
    font-family: 'THSarabunNew';
}
</style>
</head>
<body>
<h1>
    ทดสอบสร้าง PDF ภาษาไทย
</h1>
</body>
</html>

License

Laravel Dompdf Thai Font is open-sourced software licensed under the MIT license.

Related Packages

barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

123,544,637 7,288
l-david-l/laravel-dompdf-no-alpha-png

A fork of barryvdh/laravel-dompdf with no PNG alpha processing. A DOMPDF Wrapper...

7,615 0
seguce92/laravel-dompdf

A DOMPDF Wrapper for Laravel forks barryvdh/laravel-dompdf package

6,086 1
upmind/laravel-dompdf

A DOMPDF Wrapper for Laravel

2,264 0
olivierneo/laravel-dompdf

A DOMPDF Wrapper for Laravel

113 0

Version History

Version Released Laravel License
v0.1.0 ^8 MIT