the question is this. I have a list of documents retrieved from an api (jpg, doc, pdf) that come to me in binary format (unit8list). How do I preview doc and pdf files? For images I have already solved using MemoryImage () but I don't know which library or widget to use for .doc / .docx and pdf files. Thanks in advance :D
You can use open_file package to open and view files.
Here is the URL. Check this out :)
https://pub.dev/packages/open_file
The following package should work perfectly for displaying .pdf files: https://pub.dev/packages/advance_pdf_viewer. You can open any file with https://pub.dev/packages/open_file
Related
Is DOCX viewer in flutter possible.
I have tried PDFTron, it has the following drawbacks:
Not a widget
Paid version
If DOCX viewer is not available, then is DOCX to PDF converter available?
Use ConvertAPI, but if you want and offline solution i do not believe i came across one or you can useFFI if you found a native code for conversion
You can take a look to flutter_filereader package. It has a lot of file types. I suggest to you.
I'm working in a project to preview a doc file and search on it. I successfully could open doc file using QLPreviewController but I don't know how to search for words or any thing in this file in iOS
Thanks
Firstly convert doc or docx file into PDF using iOS-htmltopdf
Now there many API available for PDF word searching functionality such as PDFKitten.
Hope its helpful in right direction........
I am developing an Ebook for iPhone that loads ePUB file. I have unzipped the epub file. Now I want to view the content in the unzipped epub file. how would I proceed from here?
Have a read of the ePUB file format (from wikipedia - http://en.wikipedia.org/wiki/EPUB)
This points out the files that are the starting points of the book i.e. the container.xml file will tell you where the main opf files are etc.
ePub files include HTML files, have you tried viewing them in UIWebView, or creating a parser?
Please look at this thread Reading ePub format which describes detail steps(From Euan) and sample project (From Sreelal).
I've got over 400 bookmarks saved as .webloc files. I'd like to move them to the iPhone's goodReader app. goodReader cannot open webloc files. It can sork with pdf, html but not webloc.
Do you know of a way or a program that would take a folder as its input, and convert every single .webloc file in it into a PDF version or a html version - so I can grab the converted files and move them onto iPhone.
Thank you
Try this, it should be able to convert the files to pdf http://files.macscripter.net/joy/files/webloc2pdf.zip
In my iPhone application I'm generating an HTML file. I would like to convert that HTML file to a PDF file programatically. The PDF will then be attached to an email.
Does anyone know (have an example) how to convert the HTML file to a PDF?
maybe you should start from here: http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/dq_pdf.html
I don't know if this is what your looking for it helped me because it's much easier to generate a prepared html doc then PDF for me. I found a library that does that here http://maniacdev.com/2013/09/ios-library-for-easy-pdf-creation-from-an-html-string-or-URL