Search packages, repositories and app categories

Package detailsv1.0.0

text2pdf

Convert any text to pdf file using this package ! Give any text as paramter, this package generates pdf from it and opens it

AndroidiOS
30-day downloads
23
Likes
6
Pub points
160

Install package

flutter pub add text2pdf

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The text2pdf package enables seamless conversion of plain text into PDF files within Flutter applications. By passing a text string as a parameter, the package generates a PDF and opens it directly on the device. It is designed for simplicity and ease of use, making it ideal for apps that need to export textual content in a printable, shareable format. The package supports both Android and iOS platforms, ensuring broad compatibility. It leverages native capabilities to deliver reliable PDF output without requiring complex setup.

Use cases

  • Exporting user-generated text to PDF
  • Creating printable reports from app data
  • Sharing documents via PDF
  • Generating receipts or invoices
  • Converting notes or articles to PDF

Key features

  • Simple text-to-PDF conversion
  • Direct PDF opening on device
  • Cross-platform support (Android & iOS)
  • Minimal setup required
  • No external dependencies

Suitable for

  • Apps needing quick PDF exports
  • Educational or note-taking apps
  • Business or invoicing tools
  • Content publishing features
  • Lightweight document generation

Considerations

  • Limited formatting options
  • Relies on platform-specific PDF rendering
  • No customization for fonts or styling
  • Best suited for plain text
  • Not ideal for complex layouts

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Text2Pdf

Convert any text to pdf file using this package !

Image Image

Getting Started

Add this to your package's pubspec.yaml file

dependencies:
  text2pdf: ^1.0.0

Usage

First, you just have to import the package using:

import 'package:text2pdf/text2pdf.dart';

Then , call the function as below,

  await Text2Pdf.generatePdf(content);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.