PHPackages                             ismaelw/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. ismaelw/laravel-php-latex

Abandoned → [ismaelw/laratex](/?search=ismaelw%2Flaratex)Library

ismaelw/laravel-php-latex
=========================

A latex package for laravel to generate pdfs

0211PHP

Since Dec 27Pushed 5y ago2 watchersCompare

[ Source](https://github.com/ismaelw/laravel-php-latex)[ Packagist](https://packagist.org/packages/ismaelw/laravel-php-latex)[ RSS](/packages/ismaelw-laravel-php-latex/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)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.

IMPORTANT NOTE
==============

[](#important-note)

I was working on a totally new version of this package. Please use the other one. You can find the new package here: [ismaelw\\LaraTeX](https://github.com/ismaelw/laratex)I'm not going on with the development of this package.

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 ismaelw/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.

```
` or ``.

- Generate the file :

There are few actions you can choose take to generate.

1. You can download the file as a response :

```
