Flutter Pdf Viewer performance - performance

I'm creating an educational application for poor students who have android devices running on Android 4.1 and above.
I tried lots of packages but
most of them make the app crash and the rest take long to load the file and the application becomes heavy to use.
Is there a package or a way to improve the the performance?
I don't want to convert the pdf pages to images because this will make the size of the app very big to download.
These are the packages that I used:
flutter_full_pdf_viewer: ^1.0.6
pdf_image_renderer: ^0.5.0
advance_pdf_viewer: ^1.2.2
flutter_cached_pdfview: ^0.3.5 #min API Level 20
printing: ^5.2.1
pdf_flutter: ^1.1.4
flutter_pdf_viewer: ^0.6.1
native_pdf_view: ^4.0.1
flutter_pdfview: ^1.1.0
`

If you are facing issues with every pdf viewer then my suggestion would be to not use your app pdf viewer instead if possible you can use the default pdf viewer which generally comes preinstalled in devices. And you would need a way to know if a phone has an app that can open pdf files or not and in case it is not there then use your app pdf viewer.
The second option would be to split the pdf files into multiple pdf files like chapters, etc. I think this option is very much viable.
Also, you can try this package syncfusion_flutter_pdfviewer. I'm using it as of now and it is good.

Related

How to resize image file on Xamarin.forms. (+ writeableBitmap package can't be added)

I'm making iOS and Android app using with Xamarin.forms. (PCL project)
I need to resize my image file from 'MediaFile class' that is returned from 'CrossMedia.Current.PickPhotoAsync ()'.
What's your best way to do it?
and I have searched long time and noticed that many people uses 'writeableBitmap'.
But this 'writeableBitmap' nuget package can not be added because Xamarin platform is updated?
I got great answer from here.
https://forums.xamarin.com/discussion/comment/199212#Comment_199212
It's using DependencyService and it works beautifully.
After applied DependencyService, I got a question.
In my thinking, image file is not dependent so why don't we process it just in 'forms' using with SOME image process library in .net? (I'm not a .net developer but I believe that there is many library to process image file)
I suspect that we should have done because we want to use built-in image processing library(like UIKit) so that we could avoid adding new one?
Am I correct?

What is the best resource for placeholder image files in various formats?

I'm developing a cross-platform desktop application that handles a range of image files: anything from .jpg, .xpm through to .tiff. The application even needs some .ico files because it runs in the systray and I want to see that the icons change with changing application states.
As a developer I don't want to spend even ten minutes searching for files.
Is there a definitive one-stop-shop site for placeholder / fake images so that developers can use these just get on with their work, with the intention that they'd be later replaced by a designed image before release?
if you love kittens here you have resource with cute kittens images:
http://placekitten.com/ ;)
yeah there are some resources out there, which you'll find by using Google.
Here's one: http://placehold.it/
You could check out http://lorempixel.com/ - A play on Lorem Ipsum.. only... for pictures instead of typeset.

Converting an Image type PDF to an OCR enabled PDF

I'm not sure if my title is overly descriptive of what I'm trying to do so I will try and elabarate.
I've been asked to develop a small application where someone can upload a PDF to the website. The website is coded in ASP classic but I don't mind going down the route of .net.
Once uploaded the code needs to check if the PDF is text based if it is not it needs to then convert the document over to the text type PDF.
Does anyone have an idea of a component that can do this image PDF to text PDF conversion? So far i've looked into:
http://pages.cs.wisc.edu/~ghost/
http://www.websupergoo.com/abcocr-1.htm
I didn't overly understand what the ghost thing was doing and the websupergoo solution appeared to be converting images into text files?
I think you could use one of several websites that let you upload an image and send you back an OCR'ed data. Try www.ocrsdk.com, it is a cloud based OCR SDK recently launched by ABBYY. It's now in closed beta so it's completely free to use.
If you can afford a commercial option, you could use Amyuni PDF Creator .Net with asp.net, or Amyuni PDF Creator ActiveX if you want to stay on asp-classic. Take a look on the OCR module for PDF-Image to PDF-Text processing.
Usual disclaimer applies

How to use the existing Png-Shell-Thumbnail for my file types?

I am currently writing an application working with specially prepared image data. Another tool prepares the images (basically PNGs with additional data stored in the meta-data section). Now my tool works with these files, but not with all PNGs, so "we" decided to use a different file extension. So far, so good.
Now, because I am a lazy sack I implemented some file type registration to allow double-clicking on the file and opening it in my application (no problem at all).
And here is my Question:
It would be cool if the windows explorer could still show me the thumbnail previews for my files. Since they basically are still PNG files, it should be possible without writing my own shell extension (at least I believe so).
I quickly tried to copy all registry keys and values from HKCR.png to HKCR.mInDat (my file name ext) and it worked. However, I would prefere knowning what I am doing ;-)
Which of the registry settings are responsible for the thumbnail preview control and which can I use to get the preview for my file types?
I tried to google it, but I failed, since it seems I am unable to come up with the right buzz-words to find the info I need. Please, help me.
Thank you!
Yours,
3of4
Simple:
[HKEY_CLASSES_ROOT\.apng]
#="apng"
"Content Type"="image/png"
"PerceivedType"="image"
[HKEY_CLASSES_ROOT\apng\shellex\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
#="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"

How to create Custom Spalsh screen while Silverlight downloader download Application Library Cache files?

I have created a sample application suing Application cache, My some files are located on server. its working fine. But Now I have added appx 10 MB ZIP file and now want to downlaod, Silverlight downloader show 100% in xap download and then no progress show just circle appears.
I have tried the http://pagebrooks.com/archive/2009/02/19/custom-loading-screens-in-silverlight.aspx same and its working fine for XAP only. But I need it for "Application cache" files downloads
So is there any option to create my custom UI to show it at that time.Please let me know,
Thanks in advance,
Laxmilal Menaria
There is a Silverlight TV episode dedicated to a custom preloader... start from here...
http://johnpapa.net/silverlight/customer-preloader-silverlight-tv-006/
And see also this post:
http://elegantcode.com/2010/03/05/creating-a-custom-silverlight-pre-loader/
HTH
EDIT:
OK now I got you. This seems like an open topic.
A solution is to provide your own logic:
this is a good blog post by tim heuer
http://timheuer.com/blog/archive/2008/09/24/silverlight-isolated-storage-caching.aspx
Otherwise look for MEF and dynamically load XAP's (this would be my recommended way, too)
Because you got way much more control
check out these article
http://www.codeproject.com/KB/silverlight/MEFDynamicLoading.aspx
http://www.davidezordan.net/blog/?p=1734
and gblock the mef master himself
http://johnpapa.net/silverlight/silverlight-tv-11-dynamically-loading-xaps-with-mef/
This open's even possibilities to cache, load on demand and split up you app in portions...
Hope I got you right this time...

Resources