Download the PHP package fissible/transmark-pdf without Composer

On this page you can find all versions of the php package fissible/transmark-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package transmark-pdf

fissible/transmark-pdf

PDF export for fissible/transmark: PdfWriter composes HtmlWriter output with dompdf/dompdf (pure-PHP, LGPL-2.1) to produce PDF bytes — no system binaries, no ext-gd.

Why a separate package?

fissible/transmark stays dependency-free at its core. A consumer who only needs DOCX → HTML never pays for a PDF rendering engine. A consumer who wants DOCX → HTML → PDF requires this one package — fissible/transmark and dompdf/dompdf both come along transitively via Composer, so there's one composer require, not two separate integrations to wire up by hand.

Requirements

Installation

Usage

Pass custom dompdf options when needed:

PdfWriter implements Fissible\Transmark\Contracts\WriterInterface, the same contract HtmlWriter, DocxWriter, and MarkdownWriter implement — it's a drop-in alongside any other transmark writer.

PDF → Document reader

PdfReader is a best-effort PDF reader that recovers a canonical Document from PDF bytes using layout heuristics. It throws Fissible\Transmark\Pdf\Exception\PdfParseException when the content isn't readable at all — no extractable text (e.g. a scanned/image-only PDF), or content the underlying parser rejects as corrupt — rather than silently returning an empty or partial Document.

Limitations to treat as accepted by design:

Paper size and orientation

Accepts any paper size/orientation string dompdf's setPaper() supports.

Note: PdfWriter does not validate paperSize/paperOrientation. An invalid value (e.g. paperSize: 'not-a-size') does not throw — dompdf silently falls back to letter/portrait. Pass values dompdf recognizes.

Runtime note

PdfWriter relies on dompdf's font cache under vendor/dompdf/dompdf/lib/fonts/ on first render for some font metadata. If that directory is read-only, rendering may trigger runtime errors or slower fallback behavior.

License

MIT


All versions of transmark-pdf with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
fissible/transmark Version >=0.3 <1.0
dompdf/dompdf Version ^3.1
smalot/pdfparser Version ^2.12
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fissible/transmark-pdf contains the following files

Loading the files please wait ...