AlohaPDF 0.3.0
dotnet add package AlohaPDF --version 0.3.0
NuGet\Install-Package AlohaPDF -Version 0.3.0
<PackageReference Include="AlohaPDF" Version="0.3.0" />
<PackageVersion Include="AlohaPDF" Version="0.3.0" />
<PackageReference Include="AlohaPDF" />
paket add AlohaPDF --version 0.3.0
#r "nuget: AlohaPDF, 0.3.0"
#:package AlohaPDF@0.3.0
#addin nuget:?package=AlohaPDF&version=0.3.0
#tool nuget:?package=AlohaPDF&version=0.3.0
<div align="center">
πΊ AlohaPDF
Create Beautiful PDFs with Aloha Spirit
A modern, intuitive PDF generator for .NET MAUI with tropical vibes.
Perfect for cross-platform mobile and desktop applications.
Getting Started β’ Examples β’ Docs β’ Contribute
</div>
β¨ Why AlohaPDF?
The Aloha Spirit - Creating PDFs should be welcoming, simple, and joyful. AlohaPDF brings that spirit to .NET MAUI.
- πΊ Simple & Intuitive - Fluent API that feels natural
- π¨ Beautiful by Default - Tropical color palette inspired design
- π± Mobile-First - Built specifically for .NET MAUI
- β‘ Lightning Fast - Optimized for mobile performance
- π 100% Open Source - MIT licensed, free forever
- π΄ Modern Design - Contemporary styling out of the box
π Quick Start
Installation
dotnet add package AlohaPDF
Your First PDF
using AlohaPDF;
using AlohaPDF.Core;
var pdf = new AlohaPdfDocument();
pdf.Initialize(new PdfDocumentOptions
{
Title = "Welcome to AlohaPDF",
Subtitle = "Creating PDFs with Aloha Spirit",
PageSize = PageSize.A4, // A4, Letter, Legal, A3, A5, Tabloid, Executive, B4, B5
Orientation = PageOrientation.Portrait, // Portrait or Landscape
Info = new DocumentInfo
{
Author = "Your Name",
CreatedDate = DateTime.Now
// Displays as simple one-line: "Your Name β’ Created on Feb 11, 2025"
}
});
pdf
.AddSection("Aloha!")
.AddParagraph("Welcome to the easiest way to create PDFs in .NET MAUI!")
.AddTable(
headers: new[] { "Feature", "Status" },
rows: new[]
{
new[] { "Beautiful Design", "β" },
new[] { "Easy to Use", "β" },
new[] { "Open Source", "β" }
},
headerStyle: TableHeaderStyle.Primary
);
pdf.Generate("aloha.pdf");
That's it! πΊ You just created a beautiful PDF.
π― Key Features
<table> <tr> <td width="50%">
π Rich Content
- β Sections & Subtitles
- β Paragraphs with styling
- β Tables (4 beautiful styles)
- β Lists (bullet & numbered)
- β Custom spacing
- β Lines & dividers
</td> <td width="50%">
π¨ Tropical Design
- β Coral, ocean, palm colors
- β Modern typography
- β Custom fonts support
- β SVG/PNG/JPG logos
- β Zebra-striped tables
- β Rounded corners
</td> </tr> <tr> <td>
π Smart Layout
- β Auto page breaks
- β Text wrapping
- β Repeating headers
- β Dynamic spacing
- β Multi-page support
- β Mobile-optimized
</td> <td>
π» Developer Joy
- β Fluent, chainable API
- β IntelliSense support
- β XML documentation
- β Type-safe options
- β Zero setup
- β .NET 9 ready
</td> </tr> </table>
π± Platform Support
| Platform | Status |
|---|---|
| π iOS | β Fully Supported |
| π€ Android | β Fully Supported |
| πͺ Windows | β Fully Supported |
| π macOS | β Fully Supported |
π‘ Examples
Tropical Color Tables
// Coral primary header
pdf.AddTable(headers, rows, headerStyle: TableHeaderStyle.Primary);
// Ocean blue accent
pdf.AddTable(headers, rows, headerStyle: TableHeaderStyle.Secondary);
// Dark professional
pdf.AddTable(headers, rows, headerStyle: TableHeaderStyle.Dark);
// Clean minimal
pdf.AddTable(headers, rows, headerStyle: TableHeaderStyle.Minimal);
Custom Fonts
var options = new PdfDocumentOptions
{
Title = "Custom Font Report",
Fonts = new FontOptions
{
Regular = await FileSystem.OpenAppPackageFileAsync("Fonts/Inter-Regular.ttf"),
Bold = await FileSystem.OpenAppPackageFileAsync("Fonts/Inter-Bold.ttf")
}
};
Logos
var options = new PdfDocumentOptions
{
Title = "Company Report",
HeaderLogo = await FileSystem.OpenAppPackageFileAsync("Images/logo.svg"),
FooterLogo = await FileSystem.OpenAppPackageFileAsync("Images/logo-gray.svg")
};
π¨ Color Palette
AlohaPDF uses a tropical-inspired color scheme:
- Primary (Coral):
#FF6B35- Warm and welcoming - Secondary (Ocean):
#00A8CC- Professional and calm - Accent (Palm):
#6BBF59- Fresh and vibrant
π Documentation
Core Methods
| Method | Description |
|---|---|
Initialize(options) |
Set up your PDF |
AddSection(text, pill) |
Add numbered section |
AddSubtitle(text, pill) |
Add subtitle |
AddParagraph(text, ...) |
Add text with wrapping |
AddTable(headers, rows, ...) |
Add data table |
AddList(items, ...) |
Add bullet/numbered list |
Generate(path) |
Create the PDF file |
Table Styles
Primary- Coral header (warm & inviting)Secondary- Ocean header (professional)Dark- Dark header (elegant)Light- Light header (clean)Minimal- Bottom border only
ποΈ Real-World Examples
Check out /samples for complete examples:
- Sales Report - Professional business reports
- Invoice - Beautiful invoices
- Meeting Notes - Structured documents
- Product Catalog - Multi-column layouts
π€ Contributing
Aloha! We welcome contributions with open arms! π€
- π Report bugs - Help us improve
- π‘ Suggest features - Share your ideas
- π Improve docs - Make it easier for others
- π§ Submit PRs - Code with Aloha spirit
See CONTRIBUTING.md for guidelines.
π License
MIT License - Copyright (c) 2025 Diego BelapatiΓ±o Farias
π Acknowledgments
β Show Your Support
If AlohaPDF brings Aloha spirit to your project:
- β Star this repository
- π¦ Share on social media
- π Write about it
- π¬ Spread the Aloha!
<div align="center">
Made with πΊ Aloha Spirit by Diego BelapatiΓ±o Farias
Create PDFs with joy, not frustration π
Report Bug β’ Request Feature β’ Say Aloha
</div>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0 | 81 | 5/4/2026 |
| 0.2.2-alpha | 104 | 2/19/2026 |
| 0.2.0-alpha | 100 | 2/19/2026 |
🌺 v0.3.0 - New Components Release
β¨ New in this version:
- AddPageBreak() β force a new page at any point
- AddCallout(text, CalloutType) β Info/Success/Warning/Error alert boxes with colored accent bar
- AddImage(stream, width, height, ImageAlignment) β embed PNG, JPG or SVG images with Left/Center/Right alignment
- AddTable() overload with TableOptions config object, including custom ColumnWidthPercents
- AddParagraph() overload with ParagraphOptions config object
- Internal architecture cleanup and legal-clean rewrite of text wrapping and logo rendering
Features:
- Fluent API for PDF generation
- Sections, paragraphs, tables, lists, images, callouts, page breaks
- Tropical-themed styling with PdfColors, PdfLayout, PdfTypography
- Multiple page sizes (A3, A4, A5, Letter, Legal, B4, B5, Executive, Tabloid)
- Portrait and Landscape orientations
- Cross-platform support (.NET 9)
- SkiaSharp-based rendering, MIT license
📝 Feedback: https://github.com/diegorenatob/AlohaPDF/issues