Skip to content

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Jan 15, 2025
1 parent 9a86043 commit df2593e
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 116 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Updated documentation.
- Added `PdfAttachmentTrait` trait.
- Updated test for `PdfSectorTrait`.
- Updated `PdfViewerPreferences` class.
Expand Down
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository is clone of [fpdf.org](http://www.fpdf.org) with typed variables,
enumerations and PHP 8.2 dependencies.

`PdfDocument` is a PHP class, which allows to generate PDF files with pure PHP.
`PdfDocument` is a PHP class, which allows generating PDF files with pure PHP.
**F** from FPDF2 stands for **Free**: you may use it for any kind of usage and
modify it to suit your needs.

Expand All @@ -19,8 +19,8 @@ composer require laurentmuller/fpdf2
Alternatively, you can add the requirement `"laurentmuller/fpdf2":"^2.0"` to
your `composer.json` file and run `composer update`. This could be useful when
the installation of FPDF2 is not compatible with some currently installed
dependencies. Anyway, the previous option is the preferred way, since composer
can pick the best requirement constraint for you.
dependencies. Anyway, the previous option is the preferred way, since the
composer can pick the best requirement constraint for you.

## Basic Usage

Expand All @@ -36,19 +36,7 @@ $pdf->cell(40, 10, 'Hello World!');
$pdf->output();
```

## Tutorials

- [Minimal example](doc/tuto_1.md)
- [Header, footer, page break and image](doc/tuto_2.md)
- [Line breaks and colors](doc/tuto_3.md)
- [Multi-columns](doc/tuto_4.md)
- [Tables](doc/tuto_5.md)
- [Bookmarks](doc/tuto_6.md)
- [Transparency](doc/tuto_7.md)
- [Circles and ellipses](doc/tuto_8.md)
- [Rotation](doc/tuto_9.md)
- [Sector](doc/tuto_10.md)
- [Attachments](doc/tuto_11.md)
See other [examples](doc/examples.md) in the dedicated documents.

## Code Quality

Expand Down
19 changes: 19 additions & 0 deletions doc/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Examples

Below is a list of examples:

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Attachments](tuto_11.md)

**See also:**

[Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,5 @@ If you send something after, the document might not display.

**See also:**

- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_10.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,5 @@ $pdf->output();

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Examples](examples.md)
- [Home](../README.md)
11 changes: 1 addition & 10 deletions doc/tuto_11.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,5 @@ $pdf->output();

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,5 @@ $pdf->output();

**See also:**

- [Minimal example](tuto_1.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,5 @@ right-click and select Document Properties. The third method is to type the

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,5 @@ $pdf->output();

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_5.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,5 @@ using alternatively transparent and filled cells.

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,5 @@ previous values.

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_7.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,5 @@ $pdf->resetAlpha();

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Circles and ellipses](tuto_8.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_8.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,5 @@ $pdf->ellipse(30, 245, 20, 10, PdfRectangleStyle::BOTH);

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Rotation](tuto_9.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)
10 changes: 1 addition & 9 deletions doc/tuto_9.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,5 @@ $pdf->endRotate();

**See also:**

- [Minimal example](tuto_1.md)
- [Header, footer, page break and image](tuto_2.md)
- [Line breaks and colors](tuto_3.md)
- [Multi-columns](tuto_4.md)
- [Tables](tuto_5.md)
- [Bookmarks](tuto_6.md)
- [Transparency](tuto_7.md)
- [Circles and ellipses](tuto_8.md)
- [Sector](tuto_10.md)
- [Examples](examples.md)
- [Home](../README.md)

0 comments on commit df2593e

Please sign in to comment.