-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
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
Screenshot parts of the PDF #48
Comments
On the bottom of screenshot Readme,
I'm not sure what they describing by the word "Platform Views" but it does not seem to support Texture, which is heavily used in pdf_render plugin:
But I'm not sure what really impacts on the screenshot feature so far. |
By the way, if you just need some kind of document image, pdf_render also provides low and raw level API that renders page image one by one. It can generate dart:ui Image so that it can be saved to PNG file or anything: ...
final pageImage = await page.render();
final image = await pageImage.createImageDetached();
final pngData = await image.toByteData(ImageByteFormat.png); |
Thanks this helped. Thanks a ton again |
Hey, firstly great plugin. it's working pretty smooth for most of what I need.
However I am stuck when I try to capture screenshot of whatever is displaying on the screen as an image.
I tried wrapping PDFViewer with the Screenshot plugin (https://pub.dev/packages/screenshot) but it just shows me empty screen without any text
My code
When I take screenshot it shows like this.
As you can see, the outline, borders, drop shadows et al are captured but the actual content inside the PDF is missing from the screenshot. Any tips on how to go about resolving this ?
The text was updated successfully, but these errors were encountered: