2017 © Pedro Peláez
 

library phpanonymous

PDF Package Arabic based on tcpdf library support for laravel 5 version 1.0

image

pdfanonymous/phpanonymous

PDF Package Arabic based on tcpdf library support for laravel 5 version 1.0

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 1 Versions
  • 21 % Grown

The README.md

PDF Anony Package

A PDF Package Support Arabic Based On TCPDF Developed By PhpAnonymous ( phpanonymous.com ) Laravel Version 5 and Above, (*1)

Install with Composer

composer require pdfanonymous/phpanonymous:dev-master

Provider Class

put on your config/app.php in provider array this class, (*2)

 PDFAnony\TCPDF\AnonyServiceProvider::class,

Aliases

add this on aliases array, (*3)

'PDF' =>  PDFAnony\TCPDF\Facades\AnonyPDF::class,

publish

with composer run this command php artisan vendor:publish, (*4)

usage

you can use The PDF Class anywhere you want it , in Controller or Blade File, (*5)

Just Call Class PDF::HTML($yourArraySettings);, (*6)

Like That, (*7)

$html = view('youblade_path',['dataloop'=>$yourdataloop])->render(); // file render
// or pure html 
$html = '

مرحبا بكم فى العالم

'; $pdfarr = [ 'title'=>'اهلا بكم ', 'data'=>$html, // render file blade with content html 'header'=>['show'=>false], // header content 'footer'=>['show'=>false], // Footer content 'font'=>'aealarabiya', // dejavusans, aefurat ,aealarabiya ,times 'font-size'=>12, // font-size 'text'=>'', //Write 'rtl'=>true, //true or false 'creator'=>'phpanonymous', // creator file - you can remove this key 'keywords'=>'phpanonymous keywords', // keywords file - you can remove this key 'subject'=>'phpanonymous subject', // subject file - you can remove this key 'filename'=>'phpanonymous.pdf', // filename example - invoice.pdf 'display'=>'print', // stream , download , print ]; PDF::HTML($pdfarr);

you can set state display if want stream or download or auto print file pdf and you can set file name and other setting, (*8)

1 - rtl can be disable it or enable, (*9)

2 - can render file blade with data key or put html code i'ts easy, (*10)

3 - you have 4 fonts type dejavusans, aefurat ,aealarabiya ,times | default is aealarabiya just change if you want :), (*11)

4 - you can set font size the default value is 12, (*12)

5 - text key you can remove it or null any way, (*13)

6 - you can set information file creator or keywords or subject, (*14)

7 - finally you can set your title file :) i'ts more setting coming soon, (*15)

this package based on tcpdf library (https://tcpdf.org), (*16)

this package supported arabic character 100% and supported rtl 100%, (*17)

Sorry Can't Support A Twitter Bootstrap Right now But i well do it soon, (*18)

if you have any questions about this package join us on group facebook (https://www.facebook.com/groups/anonymouses.developers), (*19)

Enjoy :), (*20)

The Versions

25/09 2016

dev-master

9999999-dev

PDF Package Arabic based on tcpdf library support for laravel 5 version 1.0

  Sources   Download

MIT

The Requires

 

laravel pdf tcpdf phpanonymous