flutter_print 0.5.1 copy "flutter_print: ^0.5.1" to clipboard
flutter_print: ^0.5.1 copied to clipboard

A Flutter plugin focusing on print, that's it. PDF, image, widget and other content.

0.5.1 #

  • feat(android): Apply pageSize, margins and duplexMode to images, and print them at their real size and upright.
  • fix(android): Fail with UNSUPPORTED_FILE for files that are neither PDF nor a supported image, instead of printing them as PDF. TIFF, and HEIC before Android 9, are not supported.
  • fix(android): Return from print and printPreview once the job is sent, instead of waiting for the printer forever.
  • feat(linux): Open the GTK print dialog in printPreview, pre-filled with the options, instead of the default viewer.
  • chore(linux): Require CUPS at build time and drop the lp fallback.
  • fix(windows, linux): Print images at their real size. Shrink only the images larger than the page.
  • fix(linux): Find CUPS on distros whose cups.pc needs missing -dev packages (Ubuntu 26.04).
  • fix(linux): Fix the build with CUPS (missing g_remove declaration).
  • fix(linux): Send color and landscape to CUPS.
  • fix(linux): Use the user's default printer and saved printer options. Fail with PRINTER_ERROR for an unknown printer.
  • fix(linux): Select the paper by its size, so B4, B5, JIS, C5 and DL print on the right paper.
  • fix(linux): Convert WebP and HEIC images in a temp file with a random name.
  • fix(linux): Report colour, duplex, page size and max copies support in listPrinters.
  • fix(linux): Fail with UNSUPPORTED_FILE when a WebP or HEIC image can't be converted, instead of sending it to CUPS.
  • fix(linux): Print on a worker thread, so the app doesn't freeze while a job is sent.
  • fix(linux): Fail printPreview with FILE_NOT_FOUND for a missing file.
  • fix(linux): Fix listPrinters never answering, and leaking a thread on each call.
  • feat(linux): Use the print portal in printPreview in Flatpak and Snap sandboxes.
  • fix(linux): Stop the warning logged when print gets no options.
  • fix(linux): Print images as PDF, so orientation works on every printer and GIF and BMP print.
  • fix(linux): Print text at 10 pt, like on Windows.

0.5.0 #

  • feat: Add page range print option (Windows, macOS, Linux).
  • feat: Sort and merge page ranges. Throw ArgumentError on invalid ranges.
  • fix(macos): Apply all print options in the print panel and follow paper changes made there.
  • feat(macos): Print text, RTF, HTML and Word documents natively, with all options. Drop the lp fallback (App Sandbox); print fails with UNSUPPORTED_FILE for other file types.
  • fix(macos): Don't crash on a negative or out-of-range copies.
  • fix(macos): Print rotated and cropped PDF pages as displayed.
  • fix(macos): Fail with PRINTER_ERROR for an unknown printerAddress instead of using the default printer.
  • fix(ios): Complete pickPrinter when the picker can't be shown, and fail with NO_WINDOW instead of returning null without a view.
  • fix(ios): Reject a print job while another one runs, instead of changing the open dialog.
  • fix(ios): Present from the Flutter view, and anchor the iPad popover to its centre.
  • fix(ios): Fail with PRINTER_ERROR for an invalid or unreachable printerAddress.
  • feat(ios): Use photo output for images.
  • feat(ios): Report availability, colour and duplex support of the printer from pickPrinter.
  • feat(windows): Detect file types by content. Print all text files, WIC images (HEIC, AVIF, JPEG XL…), all TIFF pages, and EMF/WMF files, with all options.
  • feat(windows): Preview each sheet as the printer prints it, with its margins, and zoom in the preview.
  • fix(windows): Open HTML, SVG and RTF files in their default app instead of printing their source.
  • fix(windows): Default the print dialog to the caller's printer and the printer's paper size.
  • fix(windows): Report cancelled or failed print jobs.
  • fix(windows): Start each copy on a new sheet in duplex when the driver can't make the copies.
  • fix(windows): Allow more copies than the driver makes in the print dialog.

0.4.0 #

  • feat: Make print options nullable to get system defaults.
  • feat(android): Implement image print.
  • fix(android): Report PDF page count for page-range selection.
  • fix(Android): Copy off the main thread.
  • fix(android): Don't report print job result too early.
  • fix(ios): silent errors.
  • fix(macos): Landspace applied twice.
  • feat(macos): report printer capabilities in listPrinters.
  • fix(macos): page size/margins.
  • fix(macos): Open default apps for sanboxed apps.

0.3.1 #

  • fix(macos): Broken in 0.3.0. Syncs with new API.
  • fix(ios): Broken in 0.3.0. Syncs with new API.
  • fix(linux): Broken in 0.3.0. Syncs with new API.

0.3.0 #

  • chore: Partial federated structure. Split windows and web platforms.
  • feat(Windows): Add custom preview dialog with fluent_ui (there's no way for preview print on windows).
  • feat(Windows): Windows can preview any text/* files (UTF 16 included).
  • chore(Windows): Multiple code improvements/additions.

0.2.4 #

  • fix: WASM compilation.
  • fix: Temp file deleted too early (race condition with preview/print dialog).
  • fix: Ensure OverlayEntry removal in case of rebuild for printWidget and previewWidget.

0.2.3 #

  • fix: WASM compilation for pub.dev score.

0.2.2 #

  • fix: printWidget with transparent background.

0.2.1 #

  • fix: pages size presets.

0.2.0 #

  • feat: Add printWidget and previewWidget for widget printing.
  • fix(linux): Add page size presets.
  • fix(windows): Custom page print.

0.1.0 #

  • feat: Initial release with support for Android, iOS, macOS, Windows, Linux and Web
  • feat: Print files via native platform dialog or directly to a printer (silent print)
  • feat: List available printers
  • feat: iOS AirPrint printer picker via FlutterPrint.ios?.pickPrinter()
  • feat: support PDF and image files with native rendering
  • feat: Support other documents via platform default handlers
  • feat: PrintOptions for configuring printer address, page size, margins, copies, landscape, color, and duplex mode
  • feat: Named paper size presets via PaperSizes (A0–A6, B4–B5, ...)
  • feat: Per-platform margin control in millimeters via PageMargins
  • feat: Duplex mode support (none, longEdge, shortEdge)
7
likes
160
points
656
downloads

Documentation

API reference

Publisher

verified publishercow-level.ovh

Weekly Downloads

A Flutter plugin focusing on print, that's it. PDF, image, widget and other content.

Repository (GitHub)
View/report issues

Topics

#print #printing #airprint #pdf

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_print_platform_interface, flutter_print_web

More

Packages that depend on flutter_print

Packages that implement flutter_print