Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ nbproject/
# Ignore ALL config files
conf.php

# Composer
/vendor/
composer.lock

# PHPUnit
.phpunit.cache/

# Ignore testing files
run-tests.log
/test/*/*/*.diff
Expand All @@ -27,3 +34,23 @@ run-tests.log
/test/*/*/*/*.log
/test/*/*/*/*.out


# Added by horde-components QC --fix-qc-issues
# Build artifacts directory
/build/
# PHPStorm IDE settings
/.idea/
# VSCode IDE settings
/.vscode/
# Claude Code CLI cache and state
/.claude/
# Cline extension data
/.cline/
# PHP CS Fixer cache file
/.php-cs-fixer.cache
# PHPUnit result cache
/.phpunit.result.cache
# PHPStan local configuration
/phpstan.neon
# PHPStan cache directory
/.phpstan.cache/
16 changes: 14 additions & 2 deletions .horde.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ list: dev
type: library
homepage: https://www.horde.org/libraries/Horde_Pdf
authors:
-
name: Ralf Lang
user: rlang
email: ralf.lang@ralf-lang.de
active: trueB
role: lead
-
name: Jan Schneider
user: jan
email: jan@horde.org
active: true
active: false
role: lead
-
name: Mike Naberezny
Expand All @@ -38,10 +44,16 @@ license:
uri: http://www.horde.org/licenses/lgpl21
dependencies:
required:
php: ^7.4 || ^8
php: ^8.1
composer:
horde/exception: ^3
horde/util: ^3
optional:
composer:
horde/test: ^3
keywords:
- iso32000
vendor: horde
quality:
phpstan:
level: 3
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Horde/Pdf

The lib/ version is a very early fork of FPDF
The src/ version is an incomplete implementation of modern ISO 32000-2 PDF.


1 change: 0 additions & 1 deletion Readme.md

This file was deleted.

29 changes: 17 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"minimum-stability": "dev",
"name": "horde/pdf",
"description": "PDF writer library",
"type": "library",
Expand All @@ -22,25 +21,31 @@
"role": "lead"
}
],
"time": "2021-07-04",
"repositories": [
{
"type": "composer",
"url": "https://horde-satis.maintaina.com/"
}
],
"time": "2026-04-26",
"repositories": [],
"require": {
"php": "^7.4 || ^8",
"horde/exception": "^3 || dev-FRAMEWORK_6_0",
"horde/util": "^3 || dev-FRAMEWORK_6_0"
"php": "^8.1",
"horde/exception": "^3",
"horde/util": "^3"
},
"require-dev": {},
"suggest": {
"horde/test": "^3 || dev-FRAMEWORK_6_0"
"horde/test": "^3"
},
"autoload": {
"psr-0": {
"Horde_Pdf": "lib/"
},
"psr-4": {
"Horde\\Pdf\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Horde\\Pdf\\Test\\": "test/"
}
},
"config": {
"allow-plugins": {}
}
}
5 changes: 2 additions & 3 deletions lib/Horde/Pdf/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -14,6 +15,4 @@
* @category Horde
* @package Pdf
*/
class Horde_Pdf_Exception extends Horde_Exception_Wrapped
{
}
class Horde_Pdf_Exception extends Horde_Exception_Wrapped {}
3 changes: 2 additions & 1 deletion lib/Horde/Pdf/Font/Courier.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -17,7 +18,7 @@ class Horde_Pdf_Font_Courier
{
public function getWidths()
{
$fontWidths = array();
$fontWidths = [];
for ($i = 0; $i <= 255; $i++) {
$fontWidths['courier'][chr($i)] = 600;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/Horde/Pdf/Font/Courierb.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -17,7 +18,7 @@ class Horde_Pdf_Font_Courierb
{
public function getWidths()
{
$fontWidths = array();
$fontWidths = [];
for ($i = 0; $i <= 255; $i++) {
$fontWidths['courierB'][chr($i)] = 600;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/Horde/Pdf/Font/Courierbi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -17,7 +18,7 @@ class Horde_Pdf_Font_Courierbi
{
public function getWidths()
{
$fontWidths = array();
$fontWidths = [];
for ($i = 0; $i <= 255; $i++) {
$fontWidths['courierBI'][chr($i)] = 600;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/Horde/Pdf/Font/Courieri.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -17,7 +18,7 @@ class Horde_Pdf_Font_Courieri
{
public function getWidths()
{
$fontWidths = array();
$fontWidths = [];
for ($i = 0; $i <= 255; $i++) {
$fontWidths['courierI'][chr($i)] = 600;
}
Expand Down
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Helvetica.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Helvetica
{

public function getWidths()
{
return array('helvetica' => array(
return ['helvetica' => [
chr(0) => 278,
chr(1) => 278,
chr(2) => 278,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 500,
chr(254) => 556,
chr(255) => 500,
));
]];
}

}
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Helveticab.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Helveticab
{

public function getWidths()
{
return array('helveticaB' => array(
return ['helveticaB' => [
chr(0) => 278,
chr(1) => 278,
chr(2) => 278,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 556,
chr(254) => 611,
chr(255) => 556,
));
]];
}

}
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Helveticabi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Helveticabi
{

public function getWidths()
{
return array('helveticaBI' => array(
return ['helveticaBI' => [
chr(0) => 278,
chr(1) => 278,
chr(2) => 278,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 556,
chr(254) => 611,
chr(255) => 556,
));
]];
}

}
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Helveticai.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Helveticai
{

public function getWidths()
{
return array('helveticaI' => array(
return ['helveticaI' => [
chr(0) => 278,
chr(1) => 278,
chr(2) => 278,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 500,
chr(254) => 556,
chr(255) => 500,
));
]];
}

}
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Symbol.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Symbol
{

public function getWidths()
{
return array('symbol' => array(
return ['symbol' => [
chr(0) => 250,
chr(1) => 250,
chr(2) => 250,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 494,
chr(254) => 494,
chr(255) => 0,
));
]];
}

}
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Times.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Times
{

public function getWidths()
{
return array('times' => array(
return ['times' => [
chr(0) => 250,
chr(1) => 250,
chr(2) => 250,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 500,
chr(254) => 500,
chr(255) => 500,
));
]];
}

}
6 changes: 3 additions & 3 deletions lib/Horde/Pdf/Font/Timesb.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Horde_Pdf package
*
Expand All @@ -15,10 +16,9 @@
*/
class Horde_Pdf_Font_Timesb
{

public function getWidths()
{
return array('timesB' => array(
return ['timesB' => [
chr(0) => 250,
chr(1) => 250,
chr(2) => 250,
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getWidths()
chr(253) => 500,
chr(254) => 556,
chr(255) => 500,
));
]];
}

}
Loading