image2pdf_flutter 1.0.0+9 copy "image2pdf_flutter: ^1.0.0+9" to clipboard
image2pdf_flutter: ^1.0.0+9 copied to clipboard

This library converts images to a PDF, a PDF creation library that converter turns any image file into a custom PDF file.

example/lib/main.dart

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';

import 'package:image2pdf_flutter/image_to_pdf.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  /// Init Image PDF it must required to get saved PDF.
  await ImageToPdfMain.initValue();

  /// Set icon and some another configuration setting.
  /// Set document name text style.
  Configuration.instance!.editDocumentNameTextStyle = Configuration
      .instance!.editDocumentNameTextStyle!
      .copyWith(fontSize: 14, color: Colors.black);

  /// Set camera icon background.
  Configuration.instance!.cameraIconBgColor = Colors.black;
  // Configuration.instance!.cameraIcon = Icon(Icons.add, size: 80);

  /// Open main screen of PDF.
  runApp(ImageToPdfMain(pdfPathCallBack: (String pdfPath) {}));
}
8
likes
80
pub points
10%
popularity

Publisher

verified publisherdexbytes.com

This library converts images to a PDF, a PDF creation library that converter turns any image file into a custom PDF file.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

camera, flutter, image_cropper, image_picker, intl, path_drawing, path_provider, pdf, share_plus, shared_preferences

More

Packages that depend on image2pdf_flutter