You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Flutter/pdf-viewer/How-to/Add-SignaturePad-signatures-to-Syncfusion-Flutter-PdfViewer.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ control: SfPdfViewer
7
7
documentation: ug
8
8
---
9
9
10
-
# How to add a digital signature in SfPdfViewer using SfSignaturePad?
10
+
# How to Add a Digital Signature in SfPdfViewer Using SfSignaturePad?
11
11
12
-
In this example, we have added the signature drawn on [SfSignaturePad](https://pub.dev/documentation/syncfusion_flutter_signaturepad/latest/signaturepad/SfSignaturePad-class.html) to the document in [SfPdfViewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html) with the help of [Syncfusion<sup>®</sup> PDF Library](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/pdf-library.html#classes).
12
+
In this example, we have added the signature drawn on the [SfSignaturePad](https://pub.dev/documentation/syncfusion_flutter_signaturepad/latest/signaturepad/SfSignaturePad-class.html) to the document in [SfPdfViewer](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer-class.html) with the help of the [Syncfusion<sup>®</sup> PDF Library](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/pdf-library.html#classes).
13
13
14
-
In the `_handleSigningProcess()` method, the signature in SfSignaturePad is saved as image using the [toImage()](https://pub.dev/documentation/syncfusion_flutter_signaturepad/latest/signaturepad/SfSignaturePadState/toImage.html) method. Created a [PdfSignatureField()](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/PdfSignatureField-class.html)and added the signature image as digital signature in the PDF document using the [drawImage()](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/PdfGraphics/drawImage.html) method in [Syncfusion<sup>®</sup> PDF Library](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/pdf-library.html#classes) and then save the document as bytes. Loaded the saved document bytes using the [SfPdfViewer.memory()](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/SfPdfViewer.memory.html). The following code example explains the same.
14
+
In the `_handleSigningProcess()` method, the signature in the SfSignaturePad is saved as an image using the [toImage()](https://pub.dev/documentation/syncfusion_flutter_signaturepad/latest/signaturepad/SfSignaturePadState/toImage.html) method. A [PdfSignatureField()](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/PdfSignatureField-class.html)is created, and the signature image is added as a digital signature in the PDF document using the [drawImage()](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/PdfGraphics/drawImage.html) method in the [Syncfusion<sup>®</sup> PDF Library](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/pdf-library.html#classes), then saving the document as bytes. The saved document bytes are loaded using the [SfPdfViewer.memory()](https://pub.dev/documentation/syncfusion_flutter_pdfviewer/latest/pdfviewer/SfPdfViewer/SfPdfViewer.memory.html). The following code example explains the same.
15
15
16
16
{% tabs %}
17
17
{% highlight Dart %}
@@ -61,9 +61,9 @@ class _MyHomePageState extends State<_MyHomePage> {
@@ -114,7 +114,7 @@ class _MyHomePageState extends State<_MyHomePage> {
114
114
Widget build(BuildContext context) {
115
115
return Scaffold(
116
116
appBar: AppBar(
117
-
title: const Text('PDF Viewer with Signature pad'),
117
+
title: const Text('PDF Viewer with Signature Pad'),
118
118
),
119
119
body: Column(
120
120
children: [
@@ -154,7 +154,7 @@ class _MyHomePageState extends State<_MyHomePage> {
154
154
child: ElevatedButton(
155
155
onPressed: _handleSigningProcess,
156
156
child:
157
-
const Text('Add signature and load the document'),
157
+
const Text('Add Signature and Load the Document'),
158
158
),
159
159
),
160
160
ElevatedButton(
@@ -174,6 +174,6 @@ class _MyHomePageState extends State<_MyHomePage> {
174
174
{% endhighlight %}
175
175
{% endtabs %}
176
176
177
-

177
+

178
178
179
-
To know more about adding a digital signature to a PDF document, please refer [here](https://help.syncfusion.com/flutter/pdf/working-with-digital-signature).
179
+
To learn more about adding a digital signature to a PDF document, please refer [here](https://help.syncfusion.com/flutter/pdf/working-with-digital-signature).
Copy file name to clipboardExpand all lines: Flutter/pdf-viewer/How-to/Resolve-Library-not-loaded-rpath-libswiftCore-dylib-error.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ control: SfPdfViewer
7
7
documentation: ug
8
8
---
9
9
10
-
# How to resolve "Library not loaded: @rpath/libswiftCore.dylib" error?
10
+
# How to Resolve "Library not loaded: @rpath/libswiftCore.dylib" Error?
11
11
12
-
The Syncfusion<sup>®</sup> Flutter PDF Viewer is a[FFI plugin](https://docs.flutter.dev/packages-and-plugins/developing-packages#types) that uses native code to render the PDF pages. **Java** code is used for **Android**, and **Swift** code is used for **iOS and macOS**. To run the Swift code, the runtime requires the essential Swift standard libraries present in the Runpath **“usr/lib/swift.”** If this path is missing from the **Runpath Search Paths** of the project build settings, you will face the error **"Library not loaded: @rpath/libswiftCore.dylib."**
12
+
The Syncfusion<sup>®</sup> Flutter PDF Viewer is an[FFI plugin](https://docs.flutter.dev/packages-and-plugins/developing-packages#types) that uses native code to render the PDF pages. **Java** code is used for **Android**, and **Swift** code is used for **iOS and macOS**. To run the Swift code, the runtime requires the essential Swift standard libraries present in the Runpath **“usr/lib/swift.”** If this path is missing from the **Runpath Search Paths** of the project build settings, you will face the error **"Library not loaded: @rpath/libswiftCore.dylib."**
13
13
14
-
Usually, the **"usr/lib/swift"** path will be added automatically to the **Runpath Search Paths** when you add the Syncfusion<sup>®</sup> Flutter PDF Viewer (SfPdfViewer) package and build the application. But in some cases, due to the machine-specific environment, this path doesn't get added, and so this issue occurs.
14
+
Usually, the **"usr/lib/swift"** path will be added automatically to the **Runpath Search Paths** when you add the Syncfusion<sup>®</sup> Flutter PDF Viewer (SfPdfViewer) package and build the application. But in some cases, due to the machine-specific environment, this path doesn't get added, and so this issue occurs.
15
15
16
-
To overcome this issue, you are suggested to add the **"usr/lib/swift"** path to the **Runpath Search Paths** manually in the project build settings. Find and edit the **Runpath Search Paths** option by opening the project in the **XCode** and then going to **Build Settings -> Linking -> Runpath Search Paths**. Please find the Runpath search path option screenshot in the following project build settings.
16
+
To overcome this issue, you are suggested to add the **"usr/lib/swift"** path to the **Runpath Search Paths** manually in the project build settings. Find and edit the **Runpath Search Paths** option by opening the project in **XCode** and then going to **Build Settings -> Linking -> Runpath Search Paths**. Please find the Runpath search path option screenshot in the following project build settings.
Copy file name to clipboardExpand all lines: Flutter/pdf-viewer/How-to/custom-widget-on-flutterflow.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,19 @@ documentation: ug
8
8
keywords: flutter pdf viewer, flutter view pdf, pdf viewer in flutter, flutter open pdf, flutter pdf view
9
9
---
10
10
11
-
# How to add Syncfusion<sup>®</sup> PDF Viewer widget in FlutterFlow?
11
+
# How to Add Syncfusion<sup>®</sup> PDF Viewer Widget in FlutterFlow?
12
12
13
13
## Overview
14
14
15
-
[FlutterFlow](https://app.flutterflow.io/dashboard) enables you to create native applications using its graphical interface, reducing the need to write extensive amounts of code. Additionally, it offers the capability to include custom widgets that are not included in the default [FlutterFlow](https://app.flutterflow.io/dashboard) widget collection. This article explains how to incorporate our SfPdfViewer widget as a custom widget in [FlutterFlow](https://app.flutterflow.io/dashboard).
15
+
[FlutterFlow](https://app.flutterflow.io/dashboard) enables you to create native applications using its graphical interface, reducing the need to write extensive amounts of code. Additionally, it offers the capability to include custom widgets that are not included in the default [FlutterFlow](https://app.flutterflow.io/dashboard) widget collection. This article explains how to incorporate the SfPdfViewer widget as a custom widget in [FlutterFlow](https://app.flutterflow.io/dashboard).
16
16
17
-
### Create a new project
17
+
### Create a New Project
18
18
19
19
Navigate to the [FlutterFlow dashboard](https://app.flutterflow.io/dashboard) and click the `+ Create New` button to create a new project.
20
20
21
-
### Creating the custom widget
21
+
### Creating the Custom Widget
22
22
23
-
1. Navigate to the `Custom Code` section in the leftside navigation menu.
23
+
1. Navigate to the `Custom Code` section in the left-side navigation menu.
24
24
2. Click on the `+ Add` button to open a dropdown menu, then select `Widget`.
25
25
3. Update the widget name as desired.
26
26
4. Click the `View Boilerplate Code` button on the right side, represented by this icon `[</>]`.
@@ -29,36 +29,36 @@ Navigate to the [FlutterFlow dashboard](https://app.flutterflow.io/dashboard) an
29
29
30
30

31
31
32
-
### Add PDF Viewer widget as a dependency
32
+
### Add PDF Viewer Widget as a Dependency
33
33
34
34
1. Click on `+ Add Dependency`, a text editor will appear.
35
-
2. Navigate to [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer)in[pub.dev](https://pub.dev/) and copy the dependency name and version using the `Copy to Clipboard` option.
35
+
2. Navigate to [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer)on[pub.dev](https://pub.dev/) and copy the dependency name and version using the `Copy to Clipboard` option.
36
36

37
-
3. Paste the copied dependency into the text editor, then click `Refresh` and `Save` it.
37
+
3. Paste the copied dependency into the text editor, then click `Refresh` and `Save`.
38
38
39
-
>**Note**: The live version of [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) has been migrated to the latest version of Flutter SDK. To ensure compatibility, check [FlutterFlow](https://app.flutterflow.io/dashboard)'s current Flutter version and obtain the corresponding version of [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) by referring to the [SDK compatibility](https://help.syncfusion.com/flutter/system-requirements#sdk-version-compatibility).
39
+
>**Note**: The live version of [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) has been migrated to the latest version of the Flutter SDK. To ensure compatibility, check [FlutterFlow](https://app.flutterflow.io/dashboard)'s current Flutter version and obtain the corresponding version of [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) by referring to the [SDK compatibility](https://help.syncfusion.com/flutter/system-requirements#sdk-version-compatibility).
40
40
41
41

42
42
43
43
>**Note**: If you are using an older version of a dependency instead of the latest one, remove the caret symbol (^) prefix in the version number after pasting the dependency. For example, change `^21.3.0` to `21.3.0`.
44
44
45
45
>**Note**: Since [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) depends on the [Syncfusion<sup>®</sup> Flutter Core](https://pub.dev/packages/syncfusion_flutter_core) package, make sure to add it as a dependency following the same steps mentioned above.
46
46
47
-
### Import the package
47
+
### Import the Package
48
48
49
49
1. Navigate to the `Installing` tab on the [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) page. Under the `Import it` section, copy the package import statement.
50
50

51
-
2. Paste the copied import statement into the code editor and then `Save` it.
51
+
2. Paste the copied import statement into the code editor and then `Save`.
52
52

53
53
54
-
### Add widget code snippet in code editor
54
+
### Add Widget Code Snippet in Code Editor
55
55
56
-
1. Navigate to the [Example](https://pub.dev/packages/syncfusion_flutter_PdfViewer/example) tab in [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) and copy the widgetspecific codes.
56
+
1. Navigate to the [Example](https://pub.dev/packages/syncfusion_flutter_PdfViewer/example) tab in [Syncfusion<sup>®</sup> Flutter PDF Viewer](https://pub.dev/packages/syncfusion_flutter_PdfViewer) and copy the widget-specific codes.
57
57

58
-
2. Paste the copied code sample into the code editor, click `Format Code`, and `Save` it.
58
+
2. Paste the copied code sample into the code editor, click `Format Code`, and `Save`.
59
59

60
60
61
-
### Compiling the codes
61
+
### Compiling the Codes
62
62
63
63
1. Click the 'Compile Code' button located in the top right corner.
64
64
2. If there are no errors, save the process. If errors are present, fix them and compile the code again. Once the code has been successfully compiled, save the process.
@@ -67,7 +67,7 @@ Navigate to the [FlutterFlow dashboard](https://app.flutterflow.io/dashboard) an
67
67
68
68
>**Note**: The compilation progress takes 2 to 3 minutes to complete.
69
69
70
-
### Create Custom Action to import pdf.js script
70
+
### Create Custom Action to Import pdf.js Script
71
71
72
72
1. Click the `+ Add` button to open a dropdown menu, then select `Action`.
73
73
2. Update the action name as desired, say `importPdfjsScript`.
1. Click on main.dart file under Custom Files section.
106
+
1. Click on the main.dart file under the Custom Files section.
107
107
2. Add the `importPdfjsScript` action as Initial Action.
108
108
3. Save the file.
109
109
110
110

111
111
112
-
### Utilizing the custom widget
112
+
### Utilizing the Custom Widget
113
113
114
-
1. Navigate to `Widget Palette` located in the leftside navigation menu.
114
+
1. Navigate to the `Widget Palette` located in the left-side navigation menu.
115
115
2. Click on the `Components` tab.
116
-
3. Your custom widget will be under `Custom Code Widgets`. Drag and drop the custom widget to your page.
116
+
3. Your custom widget will be under `Custom Code Widgets`. Drag and drop the custom widget onto your page.
117
117
118
118

119
119
120
-
>**Note**: Since, the SfPdfViewer depends on the pdf.js library on the web platform, the preview of the widget will not be displayed in the FlutterFlow editor. To view the widget, run the application on a web platform.
120
+
>**Note**: Since the SfPdfViewer depends on the pdf.js library on the web platform, the preview of the widget will not be displayed in the FlutterFlow editor. To view the widget, run the application on a web platform.
0 commit comments