Skip to content
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

Not able to create thumbnail for pdf from storage. #16

Open
Appstute-Prerna opened this issue Jun 16, 2023 · 1 comment
Open

Not able to create thumbnail for pdf from storage. #16

Appstute-Prerna opened this issue Jun 16, 2023 · 1 comment
Labels
waiting-for-response Further information is requested

Comments

@Appstute-Prerna
Copy link

When I try to pick pdf from application storage and convert it into bytes as :
var bytes = File().readAsBytesSync().buffer.asUint8List();

And use this bytes in the thumbnail generation as:
Thumbnail(
dataResolver: () async {
return bytes;
},
mimeType: application/pdf,
widgetSize: 100,
)

It's not creating thumbnails for pdf.

Any help would be appreciated. Thanks.

@MartinHlavna MartinHlavna added the waiting-for-response Further information is requested label Nov 24, 2023
@MartinHlavna
Copy link
Member

Hello,
this should work. Maybe there is problem with that particular file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-response Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants