We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, thank you for the plugin.
can you add classes, like to use conditions for the classes, ex:
import 'dart:io'; import 'package:htmltopdfwidgets/htmltopdfwidgets.dart';
void main() { createDocument(); }
boolean signedin = true; const htmlText = '''<p style=" signedin == true "green;" ? "red;" "> status
createDocument() async { var filePath = 'example.pdf'; var file = File(filePath); final newpdf = Document(); List widgets = await HTMLToPdf().convert(htmlText); newpdf.addPage(MultiPage( maxPages: 200, build: (context) { return widgets; })); await file.writeAsBytes(await newpdf.save()); }
The text was updated successfully, but these errors were encountered:
@PRQAE sure i will work on that and will implement that feature if you have time and you can implement that feature and submit a pr
Sorry, something went wrong.
@alihassan143 You implement CSS class in this plugin
No branches or pull requests
hi, thank you for the plugin.
can you add classes, like to use conditions for the classes, ex:
import 'dart:io';
import 'package:htmltopdfwidgets/htmltopdfwidgets.dart';
void main() {
createDocument();
}
boolean signedin = true;
"''';const htmlText = '''<p style=" signedin == true "green;" ? "red;" "> status
createDocument() async {
var filePath = 'example.pdf';
var file = File(filePath);
final newpdf = Document();
List widgets = await HTMLToPdf().convert(htmlText);
newpdf.addPage(MultiPage(
maxPages: 200,
build: (context) {
return widgets;
}));
await file.writeAsBytes(await newpdf.save());
}
The text was updated successfully, but these errors were encountered: