share_pdf 1.0.1 copy "share_pdf: ^1.0.1" to clipboard
share_pdf: ^1.0.1 copied to clipboard

A new Flutter package where you can give a pdf url from API, web and you can share a pdf file in any media, not just an url, it will be shared as an pdf file

share_pdf #

A new Flutter package where you can give a pdf url from API, web and you can share a pdf file in any media, not just an url, it will be shared as an pdf file

Android #

Go to your app/build.gradle & change compileSdkVersion to 34
change your kotlin version to 1.8.0 in android/build.gradle


 ext.kotlin_version = '1.8.0'

add the following permission in your manifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Usage #

  SharePDF sharePDF = SharePDF(
  url: "https://pdfobject.com/pdf/sample.pdf",
  headerText: "Header text goes here",
  subject: "Subject Line goes here",
);
await sharePDF.downloadAndShare();
3
likes
150
points
226
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package where you can give a pdf url from API, web and you can share a pdf file in any media, not just an url, it will be shared as an pdf file

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

dio, flutter, path_provider, share_plus

More

Packages that depend on share_pdf