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
flutter: Exception caught: MissingPluginException(No implementation found for method convertHtmlToPdf on channel flutter_html_to_pdf)
flutter: Object Response is: null
Other exceptions- Caught by printing package (if this helps)
════════ Exception caught by printing ══════════════════════════════════════════
The following _TypeError was thrown while generating a PDF:
type 'Null' is not a subtype of type 'Uint8List'
When the exception was thrown, this was the stack
#0 _MyAppState.generatePdf.<anonymous closure>
#1 Page.postProcess
#2 Document.save
#3 _MyAppState.generatePdf
<asynchronous suspension>
#4 PdfPreviewRaster._raster
<asynchronous suspension>
PageFormat: "PdfPageFormat 595.275590551181x841.8897637795275 margins:56.69291338582677, 56.69291338582677, 56.69291338582677, 56.69291338582677"
════════════════════════════════════════════════════════════════════════════════
My pubspec.yaml
name: testing_packages
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: '>=2.19.6 <3.0.0'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
path_provider: ^2.0.14
flutter_html_to_pdf: ^0.7.0
flutter_full_pdf_viewer: ^1.0.6
printing: ^5.10.3
pdf: ^3.10.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter:
uses-material-design: true
plugin:
platforms:
android:
package: com.afur.flutterhtmltopdf
pluginClass: FlutterHtmlToPdfPlugin
ios:
pluginClass: FlutterHtmlToPdfPlugin
The text was updated successfully, but these errors were encountered:
Similar to #46,
I want to display the converted HTML in my pdf.addPage
I know there was a solution in the 'Specify iOS' #43, but it didnt work for me.
Im using printing package to preview it, but its not the package issue.
I made a new flutter project and tried but didnt work.
I tried other plugins but this package suits me best.
Any ideas? Do check my pubspec.yaml , my conversion and preview.
Those are the points I double checked
This is the response from the try/catch
The entire code:
Other exceptions- Caught by printing package (if this helps)
My pubspec.yaml
The text was updated successfully, but these errors were encountered: