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

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

share_pdf #

A new Flutter package to share pdf across the media

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
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path_provider, share_plus

More

Packages that depend on share_pdf