# Advanced PDF-CLI Test Document

This is a comprehensive test document to demonstrate all the features of PDF-CLI.

## Features Demonstrated

### 1. Text Styling

- **Bold text** using double asterisks
- _Italic text_ using single asterisks
- **_Bold and italic_** using triple asterisks
- `Inline code` using backticks

### 2. Headers and Sections

# This is a Level 1 Header

## This is a Level 2 Header

### This is a Level 3 Header

### 3. Lists

#### Unordered Lists

- First item
- Second item
  - Nested item 1
  - Nested item 2
- Third item

#### Ordered Lists

1. First step
2. Second step
3. Third step
   1. Nested step 1
   2. Nested step 2

### 4. Code Blocks

```rust
fn main() {
    let text = "Hello, PDF-CLI!";
    println!("{}", text);
}
```

### 5. Tables

| Feature          | Status         | Priority |
| ---------------- | -------------- | -------- |
| PDF Generation   | ✅ Complete    | High     |
| PDF Parsing      | ✅ Complete    | High     |
| Markdown Support | ✅ Complete    | Medium   |
| Image Support    | 🚧 In Progress | High     |
| Multi-page       | ✅ Complete    | Medium   |

### 6. Links and References

[PDF-CLI GitHub Repository](https://github.com/yourusername/pdf-cli)

### 7. Special Characters

Testing special characters: é à ü ñ 中文 العربية

### 8. Long Content for Multi-page Testing

This is a long paragraph that should help demonstrate the multi-page functionality of PDF-CLI. When you have a lot of content like this, the tool should automatically split it into multiple pages to ensure readability. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

This should create a second page in the PDF output, demonstrating the automatic pagination feature.

---

## Conclusion

This document demonstrates the comprehensive capabilities of PDF-CLI in handling various Markdown elements and converting them to properly formatted PDF documents.

The tool successfully processes:

- Text with various formatting
- Headers at different levels
- Multiple types of lists
- Code blocks with syntax highlighting preservation
- Tables with proper alignment
- Links that are converted to text
- Special characters and Unicode support
- Automatic pagination for long content

This makes PDF-CLI a versatile tool for document conversion and PDF generation tasks.
