Skip to content

Instantly share code, notes, and snippets.

View thomasdesmoulin's full-sized avatar

Thomas Desmoulin thomasdesmoulin

View GitHub Profile
@thomasdesmoulin
thomasdesmoulin / Pdf.php
Last active July 28, 2020 04:53
scale and align image with FPDF #uniformToFill #scale #fit #fpdf
<?php
require("fpdf.php");
class Pdf extends \FPDF
{
const DPI = 300;
const MM_IN_INCH = 25.4;
const A4_HEIGHT = 297;
const A4_WIDTH = 210;