Skip to content

Commit 302c84f

Browse files
authored
Merge pull request #2392 from immankumarsync/master
Add PDF Viewer Linux package
2 parents 3760059 + 134e1c8 commit 302c84f

26 files changed

+2566
-0
lines changed

packages/syncfusion_flutter_pdfviewer/pubspec.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ flutter:
2222
default_package: syncfusion_pdfviewer_macos
2323
windows:
2424
default_package: syncfusion_pdfviewer_windows
25+
linux:
26+
default_package: syncfusion_pdfviewer_linux
2527

2628
assets:
2729
- assets/icons/dark/
@@ -53,6 +55,9 @@ dependencies:
5355

5456
syncfusion_pdfviewer_windows:
5557
path: ../syncfusion_pdfviewer_windows
58+
59+
syncfusion_pdfviewer_linux:
60+
path: ../syncfusion_pdfviewer_linux
5661

5762
syncfusion_flutter_core:
5863
path: ../syncfusion_flutter_core
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
build/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Undefined
2+
3+
* Initial release.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Syncfusion<sup>&reg;</sup> License
2+
3+
Syncfusion<sup>&reg;</sup> Flutter PDF Viewer package is available under the Syncfusion<sup>&reg;</sup> Essential Studio<sup>&reg;</sup> program, and can be licensed either under the Syncfusion<sup>&reg;</sup> Community License Program or the Syncfusion<sup>&reg;</sup> commercial license.
4+
5+
To be qualified for the Syncfusion<sup>&reg;</sup> Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by the Syncfusion<sup>&reg;</sup> terms and conditions.
6+
7+
Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
8+
9+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by the Syncfusion<sup>&reg;</sup> license containing all terms and conditions.
10+
11+
The Syncfusion<sup>&reg;</sup> license that contains the terms and conditions can be found at
12+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
![syncfusion_flutter_pdfviewer](https://cdn.syncfusion.com/content/images/pdfviewer-banner.png)
2+
3+
# Flutter PDF Viewer Linux
4+
5+
This is the Linux implementation of [Syncfusion<sup>&reg;</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_pdfviewer) plugin.
6+
7+
**Disclaimer:** This is a commercial package. To use this package, you need to have either a Syncfusion<sup>&reg;</sup> commercial license or [free Syncfusion<sup>&reg;</sup> Community License](https://www.syncfusion.com/products/communitylicense). For more details, please check the [LICENSE](https://github.com/syncfusion/flutter-examples/blob/master/LICENSE) file.
8+
9+
## Table of contents
10+
- [Get the demo application](#get-the-demo-application)
11+
- [Useful links](#other-useful-links)
12+
- [Installation](#installation)
13+
- [Support and feedback](#support-and-feedback)
14+
- [About Syncfusion<sup>&reg;</sup>](#about-syncfusion)
15+
16+
## Get the demo application
17+
18+
Explore the full capabilities of our Flutter widgets on your device by installing our sample browser applications from the following app stores. View the sample code in GitHub.
19+
20+
<p align="center">
21+
<a href="https://play.google.com/store/apps/details?id=com.syncfusion.flutter.examples"><img src="https://cdn.syncfusion.com/content/images/FTControl/google-play-store.png"/></a>
22+
<a href="https://flutter.syncfusion.com"><img src="https://cdn.syncfusion.com/content/images/FTControl/web-sample-browser.png"/></a>
23+
<a href="https://www.microsoft.com/en-us/p/syncfusion-flutter-gallery/9nhnbwcsf85d?activetab=pivot:overviewtab"><img src="https://cdn.syncfusion.com/content/images/FTControl/windows-store.png"/></a>
24+
</p>
25+
<p align="center">
26+
<a href="https://snapcraft.io/syncfusion-flutter-gallery"><img src="https://cdn.syncfusion.com/content/images/FTControl/snap-store.png"/></a>
27+
<a href="https://github.com/syncfusion/flutter-examples"><img src="https://cdn.syncfusion.com/content/images/FTControl/github-samples.png"/></a>
28+
</p>
29+
30+
## Other useful links
31+
32+
Take a look at the following to learn more about the Syncfusion<sup>&reg;</sup> Flutter PDF Viewer:
33+
34+
* [Syncfusion<sup>&reg;</sup> Flutter PDF Viewer product page](https://www.syncfusion.com/flutter-widgets/flutter-pdf-viewer)
35+
* [User guide documentation](https://help.syncfusion.com/flutter/pdf-viewer/overview)
36+
37+
## Installation
38+
39+
Install the latest version of [syncfusion_flutter_pdfviewer](https://pub.dev/packages/syncfusion_flutter_pdfviewer/install) from [pub.dev](https://pub.dev/publishers/syncfusion.com/packages).
40+
41+
### Import the package
42+
43+
This package is an endorsed implementation of `syncfusion_flutter_pdfviewer` for the Linux platform since version `30.1.37`, so it gets automatically added to your dependencies when you depend on package `syncfusion_flutter_pdfviewer`.
44+
45+
```yaml
46+
dependencies:
47+
...
48+
syncfusion_flutter_pdfviewer: ^30.1.27
49+
...
50+
```
51+
52+
## Support and feedback
53+
54+
* For any queries, reach out to our [Syncfusion<sup>&reg;</sup> support team](https://support.syncfusion.com/support/tickets/create) or post them through the [community forums](https://www.syncfusion.com/forums). Please submit feature requests and bug reports through our [feedback portal](https://www.syncfusion.com/feedback/flutter).
55+
* To renew your subscription, click [renew](https://www.syncfusion.com/sales/products) or contact our sales team at salessupport@syncfusion.com | Toll Free: 1-888-9 DOTNET.
56+
57+
## About Syncfusion<sup>&reg;</sup>
58+
59+
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion<sup>&reg;</sup> has more than 20,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
60+
61+
Today we provide 1,000+ controls and frameworks for web ([ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls), [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls), [ASP.NET WebForms](https://www.syncfusion.com/jquery/aspnet-web-forms-ui-controls), [JavaScript](https://www.syncfusion.com/javascript-ui-controls), [Angular](https://www.syncfusion.com/angular-ui-components), [React](https://www.syncfusion.com/react-ui-components), [Vue](https://www.syncfusion.com/vue-ui-components), [Flutter](https://www.syncfusion.com/flutter-widgets), and [Blazor](https://www.syncfusion.com/blazor-components)), mobile ([Xamarin](https://www.syncfusion.com/xamarin-ui-controls), [.NET MAUI](https://www.syncfusion.com/maui-controls), [Flutter](https://www.syncfusion.com/flutter-widgets), [UWP](https://www.syncfusion.com/uwp-ui-controls), and [JavaScript](https://www.syncfusion.com/javascript-ui-controls)), and desktop development ([Flutter](https://www.syncfusion.com/flutter-widgets), [WinForms](https://www.syncfusion.com/winforms-ui-controls), [WPF](https://www.syncfusion.com/wpf-ui-controls), [UWP](https://www.syncfusion.com/uwp-ui-controls), [.NET MAUI](https://www.syncfusion.com/maui-controls), and [WinUI](https://www.syncfusion.com/winui-controls)). We provide ready-to deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
analyzer:
2+
errors:
3+
lines_longer_than_80_chars: ignore
4+
include_file_not_found: ignore
5+
uri_does_not_exist: ignore
6+
invalid_dependency: ignore
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Symbolication related
35+
app.*.symbols
36+
37+
# Obfuscation related
38+
app.*.map.json
39+
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# syncfusion_pdfviewer_linux_example
2+
3+
Demonstrates how to use the syncfusion_pdfviewer_linux plugin.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
analyzer:
2+
errors:
3+
invalid_dependency: ignore
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';
3+
4+
void main() {
5+
runApp(
6+
const MaterialApp(
7+
title: 'Syncfusion PDF Viewer Demo for Linux',
8+
home: HomePage(),
9+
),
10+
);
11+
}
12+
13+
/// Represents Homepage for Navigation
14+
class HomePage extends StatefulWidget {
15+
const HomePage({super.key});
16+
17+
@override
18+
State<HomePage> createState() => _HomePage();
19+
}
20+
21+
class _HomePage extends State<HomePage> {
22+
final GlobalKey<SfPdfViewerState> _pdfViewerKey = GlobalKey();
23+
24+
@override
25+
Widget build(BuildContext context) {
26+
return Scaffold(
27+
appBar: AppBar(
28+
title: const Text('Syncfusion Flutter PDF Viewer'),
29+
actions: <Widget>[
30+
IconButton(
31+
icon: const Icon(Icons.bookmark, color: Colors.white),
32+
onPressed: () {
33+
_pdfViewerKey.currentState?.openBookmarkView();
34+
},
35+
),
36+
],
37+
),
38+
body: SfPdfViewer.network(
39+
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
40+
key: _pdfViewerKey,
41+
),
42+
);
43+
}
44+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy