convert icon indicating copy to clipboard operation
convert copied to clipboard

base64 to pdf loss of information

Open pierre-gancel opened this issue 4 years ago • 1 comments

When decoding a base64 through the website : https://www.base64decode.org I can see the all info, including fields added by a legal partner (right column in table below). When I display the same base64 within flutter_full_pdf_viewer, info is hidden.

Screenshot 2021-05-20 at 12 19 04 Screenshot 2021-05-20 at 12 20 21

It seems some information is lost in the decoding process, this is how the base64 is treated :

String normalized = base64.normalize(base64Raw);
Uint8List decodedBytes = base64Decode(normalized);
return await writeFile(decodedBytes);

Pdf is displayed within a FutureBuilder using : PDFViewerScaffold(path: snapshot.data)

Thank you for this package and for any kind of support

pierre-gancel avatar May 20 '21 10:05 pierre-gancel

solved it temporarily by opening the pdf with https://pub.dev/packages/open_file

flutter-painter avatar May 20 '21 14:05 flutter-painter