PlutoBook.jl
Paged HTML Rendering Library
Install / Use
/learn @aviks/PlutoBook.jlREADME
PlutoBook.jl
A Julia wrapper for the PlutoBook C++ library - a robust HTML rendering engine that converts HTML/XML content to PDF documents and bitmap images.
Features
- Custom rendering engine (not based on Chromium/WebKit/Gecko)
- Modern web standards: CSS 3/4, HTML5, XHTML, SVG support
- Multiple output formats: PDF and bitmap images (PNG)
- Flexible page control and custom page sizes
- Memory efficient and optimized for performance
Installation
using Pkg
Pkg.add("PlutoBook")
Quick Start
using PlutoBook
# HTML content
html = """
<!DOCTYPE html>
<html><body>
<h1>Hello PlutoBook!</h1>
<p>Converting HTML to PDF with Julia & PlutoBook.</p>
</body></html>
"""
# Create book and render to PDF
book = plutobook_create(PLUTOBOOK_PAGE_SIZE_A4,
PLUTOBOOK_PAGE_MARGINS_NORMAL,
PLUTOBOOK_MEDIA_TYPE_PRINT)
plutobook_load_html(book, html, -1, "", "", "")
plutobook_write_to_pdf(book, "output.pdf")
plutobook_destroy(book)
Documentation
For detailed usage examples, API reference, and advanced features, see the documentation.
License
MIT License. See LICENSE for details.
[!NOTE]
This package is named after the upstream library that it wraps. It has no relation to the Pluto, the wonderful reactive notebook environment in Julia.
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
