This commit is contained in:
@@ -27,6 +27,7 @@ PyWebLayout is a Python library for HTML-like layout and rendering to paginated
|
||||
- 🔤 **Font Support** - Multiple font sizes, weights, and styles
|
||||
- ↔️ **Text Alignment** - Left, center, right, and justified text
|
||||
- 📖 **Rich Content** - Headings, paragraphs, bold, italic, and more
|
||||
- 📊 **Table Rendering** - Full HTML table support with headers, borders, and styling
|
||||
|
||||
### Architecture
|
||||
- **Abstract/Concrete Separation** - Clean separation between content structure and rendering
|
||||
@@ -87,21 +88,28 @@ The library supports various page layouts and configurations:
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center" width="33%">
|
||||
<td align="center" width="50%">
|
||||
<b>Page Styles</b><br>
|
||||
<img src="docs/images/example_01_page_rendering.png" width="250" alt="Page Rendering"><br>
|
||||
<img src="docs/images/example_01_page_rendering.png" width="300" alt="Page Rendering"><br>
|
||||
<em>Different borders, padding, and backgrounds</em>
|
||||
</td>
|
||||
<td align="center" width="33%">
|
||||
<td align="center" width="50%">
|
||||
<b>HTML Content</b><br>
|
||||
<img src="docs/images/example_02_text_and_layout.png" width="250" alt="Text Layout"><br>
|
||||
<img src="docs/images/example_02_text_and_layout.png" width="300" alt="Text Layout"><br>
|
||||
<em>Parsed HTML with various text styles</em>
|
||||
</td>
|
||||
<td align="center" width="33%">
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" width="50%">
|
||||
<b>Page Layouts</b><br>
|
||||
<img src="docs/images/example_03_page_layouts.png" width="250" alt="Page Layouts"><br>
|
||||
<img src="docs/images/example_03_page_layouts.png" width="300" alt="Page Layouts"><br>
|
||||
<em>Portrait, landscape, and square formats</em>
|
||||
</td>
|
||||
<td align="center" width="50%">
|
||||
<b>Table Rendering</b><br>
|
||||
<img src="docs/images/example_04_table_rendering.png" width="300" alt="Table Rendering"><br>
|
||||
<em>HTML tables with headers and styling</em>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -113,6 +121,8 @@ The `examples/` directory contains working demonstrations:
|
||||
- **[01_simple_page_rendering.py](examples/01_simple_page_rendering.py)** - Introduction to the Page system
|
||||
- **[02_text_and_layout.py](examples/02_text_and_layout.py)** - HTML parsing and text rendering
|
||||
- **[03_page_layouts.py](examples/03_page_layouts.py)** - Different page configurations
|
||||
- **[04_table_rendering.py](examples/04_table_rendering.py)** - HTML table rendering with styling
|
||||
- **[05_table_with_images.py](examples/05_table_with_images.py)** - Tables with embedded images
|
||||
|
||||
### Advanced Examples
|
||||
- **[html_multipage_simple.py](examples/html_multipage_simple.py)** - Multi-page HTML rendering
|
||||
|
||||
Reference in New Issue
Block a user