flutter_print 0.5.1
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,marginsandduplexModeto images, and print them at their real size and upright. - fix(android): Fail with
UNSUPPORTED_FILEfor 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
printandprintPreviewonce 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
lpfallback. - 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.pcneeds missing -dev packages (Ubuntu 26.04). - fix(linux): Fix the build with CUPS (missing
g_removedeclaration). - fix(linux): Send color and landscape to CUPS.
- fix(linux): Use the user's default printer and saved printer options. Fail with
PRINTER_ERRORfor 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_FILEwhen 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
printPreviewwithFILE_NOT_FOUNDfor a missing file. - fix(linux): Fix
listPrintersnever answering, and leaking a thread on each call. - feat(linux): Use the print portal in
printPreviewin Flatpak and Snap sandboxes. - fix(linux): Stop the warning logged when
printgets 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
lpfallback (App Sandbox);printfails withUNSUPPORTED_FILEfor 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_ERRORfor an unknownprinterAddressinstead of using the default printer. - fix(ios): Complete
pickPrinterwhen the picker can't be shown, and fail withNO_WINDOWinstead of returningnullwithout 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_ERRORfor an invalid or unreachableprinterAddress. - 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
printWidgetandpreviewWidget.
0.2.3 #
- fix: WASM compilation for pub.dev score.
0.2.2 #
- fix:
printWidgetwith transparent background.
0.2.1 #
- fix: pages size presets.
0.2.0 #
- feat: Add
printWidgetandpreviewWidgetfor 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:
PrintOptionsfor 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)