@@ -22,6 +22,18 @@ const String _pspdfkitFor = 'PSPDFKit for';
2222
2323void main () {
2424 WidgetsFlutterBinding .ensureInitialized ();
25+ // Since PSPDFKit for Flutter 3.9.0, you are now required to initialize PSPDFKit with a license key.
26+ // If you don't have one, you can set it to null. This will show a watermark on the document.
27+ // To get a trial license key, please visit https://my.pspdfkit.com/trial/new
28+ //
29+ // To set the license key for both platforms, use:
30+ // Pspdfkit.setLicenseKeys("YOUR_FLUTTER_ANDROID_LICENSE_KEY_GOES_HERE",
31+ // "YOUR_FLUTTER_IOS_LICENSE_KEY_GOES_HERE", "YOUR_FLUTTER_WEB_LICENSE_KEY_GOES_HERE");
32+ //
33+ // To set the license key for the currently running platform, use:
34+ // Pspdfkit.setLicenseKey(null);
35+
36+ Pspdfkit .setLicenseKey (null );
2537 runApp (const MyApp ());
2638}
2739
@@ -73,19 +85,6 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
7385
7486 // Platform messages are asynchronous, so we initialize in an async method.
7587 void initPlatformState () async {
76- // By default, this example doesn't set a license key, but instead runs in
77- // trial mode (which is the default, and which requires no specific
78- // initialization). If you want to use a different license key for
79- // evaluation (e.g. a production license), you can uncomment the next line
80- // and set the license key.
81- //
82- // To set the license key for both platforms, use:
83- // await Pspdfkit.setLicenseKeys("YOUR_FLUTTER_ANDROID_LICENSE_KEY_GOES_HERE",
84- // "YOUR_FLUTTER_IOS_LICENSE_KEY_GOES_HERE");
85- //
86- // To set the license key for the currently running platform, use:
87- await Pspdfkit .setLicenseKey ('' );
88-
8988 String ? frameworkVersion;
9089 // Platform messages may fail, so we use a try/catch PlatformException.
9190 try {
0 commit comments