David PHAM-VAN

Change links to pub.dev

... ... @@ -4,7 +4,7 @@
This set of plugin allows Flutter apps to generate and print pdf files to device printer. This plugin works for iOS and Android.
- dart pdf: <https://pub.dartlang.org/packages/pdf>
- flutter printing: <https://pub.dartlang.org/packages/printing>
* dart pdf: <https://pub.dev/packages/pdf>
* flutter printing: <https://pub.dev/packages/printing>
[![Buy Me A Coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png "Buy Me A Coffee")](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee")
... ...
... ... @@ -10,7 +10,7 @@ images and text using TrueType fonts. With the ease of use you already know.
<img alt="Example document" src="https://raw.githubusercontent.com/DavBfr/dart_pdf/master/pdf/example.jpg">
Use the `printing` package <https://pub.dartlang.org/packages/printing>
Use the `printing` package <https://pub.dev/packages/printing>
for full flutter print and share operation.
The coordinate system is using the internal Pdf unit:
... ... @@ -34,7 +34,7 @@ pdf.addPage(Page(
})); // Page
```
To load an image it is possible to use the dart library [image](https://pub.dartlang.org/packages/image):
To load an image it is possible to use the dart library [image](https://pub.dev/packages/image):
```dart
final img = decodeImage(File('test.webp').readAsBytesSync());
... ... @@ -71,7 +71,7 @@ pdf.addPage(Page(
To save the pdf file:
```dart
// On Flutter, use the [path_provider](https://pub.dartlang.org/packages/path_provider) library:
// On Flutter, use the [path_provider](https://pub.dev/packages/path_provider) library:
// final output = await getTemporaryDirectory();
// final file = File("${output.path}/example.pdf");
final file = File("example.pdf");
... ...
... ... @@ -7,8 +7,8 @@ See the example on how to use the plugin.
<img alt="Example document" src="https://raw.githubusercontent.com/DavBfr/dart_pdf/master/printing/example.png" width="300">
This plugin uses the `pdf` package <https://pub.dartlang.org/packages/pdf>
for pdf creation. Please refer to <https://pub.dartlang.org/documentation/pdf/latest/>
This plugin uses the `pdf` package <https://pub.dev/packages/pdf>
for pdf creation. Please refer to <https://pub.dev/documentation/pdf/latest/>
for documentation.
[![Buy Me A Coffee](https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png "Buy Me A Coffee")](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee")
... ... @@ -55,7 +55,7 @@ pdf.addPage(Page(
})); // Page
```
To save the pdf file using the [path_provider](https://pub.dartlang.org/packages/path_provider) library:
To save the pdf file using the [path_provider](https://pub.dev/packages/path_provider) library:
```dart
final output = await getTemporaryDirectory();
... ...