quill_delta_pdf 0.1.0 copy "quill_delta_pdf: ^0.1.0" to clipboard
quill_delta_pdf: ^0.1.0 copied to clipboard

Quill Delta -> PDF export. PDF -> Delta import is a stub. Pure Dart writer via package:pdf.

quill_delta_pdf #

Quill Delta → PDF export. PDF → Delta import is not implemented in v0.1 — the importer throws UnsupportedFormatException because PDF has no native document model (it stores glyphs at page coordinates) and any structural import would be lossy.

Pure Dart writer via package:pdf.

Scope (v0.1) #

  • Paragraphs with align + indent
  • Headings H1-H6
  • Blockquotes (italic + left padding)
  • Code blocks (monospace, light grey background)
  • Bullet + ordered lists (per-indent counters)
  • Inline: bold, italic, underline, strike, color, font size, links
  • Horizontal dividers
  • Page size: A4, Letter, Legal

Out of scope: tables, images, custom embeds, multi-column layout.

Quickstart #

import 'dart:io';
import 'package:dart_quill_delta/dart_quill_delta.dart';
import 'package:quill_delta_pdf/quill_delta_pdf.dart';

final delta = Delta()
  ..insert('Hello\n', {'header': 1})
  ..insert('World.\n');

final bytes = await const PdfExporter().export(delta);
await File('output.pdf').writeAsBytes(bytes);

Options #

const opts = PdfOptions(
  pageSize: PdfPageSize.letter,   // .a4 (default), .legal
  embedFonts: true,
  compress: true,
);
final exporter = PdfExporter(defaultOptions: opts);
0
likes
160
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Quill Delta -> PDF export. PDF -> Delta import is a stub. Pure Dart writer via package:pdf.

Repository (GitHub)
View/report issues
Contributing

Topics

#quill #delta #pdf #export #converter

License

MIT (license)

Dependencies

dart_quill_delta, meta, pdf, quill_delta_core

More

Packages that depend on quill_delta_pdf