Skip to content

aviks/PlutoBook.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlutoBook.jl

Build Status version Docs Stable

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.

About

Paged HTML Rendering Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •