GithubHelp home page GithubHelp logo

iafan / html2pdf Goto Github PK

View Code? Open in Web Editor NEW
29.0 7.0 106.0 19.61 MB

A fork of the html2pdf library (http://html2pdf.fr/en) that supports rendering different first/last header/footer

PHP 100.00%

html2pdf's Introduction

This is a fork of HTML2PDF library. Source: https://github.com/iafan/html2pdf

The fork adds the following features:

  1. An ability to specify a different first header for the section (with different dimensions) โ€” requires two-pass rendering
  2. An ability to specify a different last footer for the section (with different dimensions) โ€” requires two-pass rendering
  3. An ability to define an override fonts folder (with a fall back to the default fonts that the library already has)
  4. A command-line php2pdf script that uses two-pass rendering approach to convert any PHP or HTML to a PDF file

html2pdf's People

Contributors

iafan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

html2pdf's Issues

Error with php 7.2

File :locale.class.php
Code : if (count($line)!=2) continue;

throws error [Warning] count(): Parameter must be an array or an object that implements Countable

Script throws a Notice if type attribute noch exists.

In class HTML2PDF in line 2459 a notice is thrown if the array key "type" is not set.

current: $first = $param['type'] == 'first';

solution: $first = isset($param['type']) && $param['type'] == 'first';

greetz,
nik

Long table rows do not split between pages

Hello, I am using html2pdf to create a pdf from a table. The problem: I have 3 rows. The first row fits in page 1 and takes half a page. The second row does not fit completely on page one , so the engine just moves the whole row to the next page, leaving half a page. Do you know if there is a way to make html2pdf split the content of the row between pages? If you can fix it, I am willing to contribute toward the fix. I am not using your library, I am using the original library.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.