Proposal for "File_PDF"

» Metadata » Status
  • Category: File Formats
  • Proposer: Marko Djukic 
  • License: LGPL
» Description
File_PDF generation using pure PHP without external libs

From the Horde framework and based on the FPDF (http://www.fpdf.org) class.
Currently supports:

  1. Text/fonts
  2. Margins/pagebreaks
  3. Colours fill/draw
  4. Lines/line widths/circles
  5. Compression/display modes
  6. Links/images....


Sample code:

<?php
require_once 'PDF.php';
$pdf = &PDF::factory('P', 'mm', 'a4');

$pdf->open();
$pdf->addPage();
$pdf->setFont('Arial', 'B', 20);
$pdf->setFillColor('rgb', 0, 0.8, 0.2);
$pdf->text(100, 110, 'Hello');
$pdf->setFillColor('rgb', 0.8, 0.5, 0.5);
$pdf->setFont('Courier', '', 40);
$pdf->text(110, 120, 'World');
$pdf->output('mypdf.pdf', true);
» Dependencies » Links
  • HTTP_Download (optional)
» Timeline » Changelog
  • First Draft: 2004-04-27
  • Proposal: 2004-04-27
  • Call for Votes: 2004-05-04
  • Marko Djukic
    [2004-04-28 03:23 UTC]

    Renamed to File_PDF
    Gettext removed