syncfusion_pdfviewer_macos 29.1.33 copy "syncfusion_pdfviewer_macos: ^29.1.33" to clipboard
syncfusion_pdfviewer_macos: ^29.1.33 copied to clipboard

PlatformmacOS
unlisted

macOS platform implementation of the Flutter PDF Viewer library that lets you view the PDF documents seamlessly and efficiently.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';

void main() {
  runApp(
    MaterialApp(
      title: 'Syncfusion PDF Viewer Demo for macOS',
      theme: ThemeData(useMaterial3: false),
      home: HomePage(),
    ),
  );
}

/// Represents Homepage for Navigation
class HomePage extends StatefulWidget {
  @override
  _HomePage createState() => _HomePage();
}

class _HomePage extends State<HomePage> {
  final GlobalKey<SfPdfViewerState> _pdfViewerKey = GlobalKey();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Syncfusion Flutter PDF Viewer for macOS'),
        actions: <Widget>[
          IconButton(
            icon: const Icon(Icons.bookmark, color: Colors.white),
            onPressed: () {
              _pdfViewerKey.currentState?.openBookmarkView();
            },
          ),
        ],
      ),
      body: SfPdfViewer.network(
        'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
        key: _pdfViewerKey,
      ),
    );
  }
}
copied to clipboard
3
likes
150
points
200k
downloads

Publisher

verified publishersyncfusion.com

Weekly Downloads

2024.09.13 - 2025.03.28

macOS platform implementation of the Flutter PDF Viewer library that lets you view the PDF documents seamlessly and efficiently.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter, syncfusion_pdfviewer_platform_interface

More

Packages that depend on syncfusion_pdfviewer_macos