PHPackages                             techsemicolon/laravel-php-latex - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. techsemicolon/laravel-php-latex

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

techsemicolon/laravel-php-latex
===============================

A latex package for laravel to generate pdfs

1.0.0(7y ago)305769[3 issues](https://github.com/techsemicolon/laravel-php-latex/issues)[1 PRs](https://github.com/techsemicolon/laravel-php-latex/pulls)MITPHPPHP &gt;=5.4.0

Since Feb 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/techsemicolon/laravel-php-latex)[ Packagist](https://packagist.org/packages/techsemicolon/laravel-php-latex)[ RSS](/packages/techsemicolon-laravel-php-latex/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

A laravel package to generate pdfs using latex
==============================================

[](#a-laravel-package-to-generate-pdfs-using-latex)

 [![Laravel](laravel-logo.png)](laravel-logo.png) [![LaTex](latex-logo.svg)](latex-logo.svg)

LaTex is an extraordinary typesetting system, using which you can highly professional and clean documentation. The document can be a simple article or huge technical/scientific book.

The reason to choose LaTex is that, it has extensive features inbuilt have headers, footers, book index, page numbers, watermarks and so on... Once you explore the possibilities of a LaTex document, you would be amazed.

This package makes entire scaffolding using which you can generate, save or download PDF documents.

Pre-requisites :
----------------

[](#pre-requisites-)

You need to have `texlive-full` program installed on your server. This program has tex packages and language libraries which help you generate documents.

Note : You can also opt to install `textlive` which is the lighter and primitive version of the package where as `texlive-full` contains all package bundles.

The different is : - When you install `textlive` and want to use any additional tex package, you need to install it manually. - `texlive-full` comes with these extra packages. As a result it may take up some additional space on server (to store the package library files).

Installation :
--------------

[](#installation-)

```
composer require techsemicolon/laravel-php-latex
```

Dry Run :
---------

[](#dry-run-)

Before diving into the usage directly, it is important to make sure required programms are installed properly on yoru server. The package comes with dryrun method which you can use in put inside any controller or route. It will automatically generate `dryrun.pdf` if everything is set up prperly on the server. If not, it will throw `LatexException` with detailed server errors.

```
