Online viewing

Hi guys, sometimes viewing online PDF takes really long time. Is
it any configuration could be made to optimise this? Is it any
server side optimisation could be done to optimise this? Do you
have any suggestion how to implement progress indication for period
when KIT cache online PDF data? Also could you please briefly
describe how you work with online PDF?

FastPdfKit can open remote pdf documents if you provide a remote NSURL for the file, but it is absolutely not the best way to handle it as we don’t have any clue on the advancement state, as MFDocumentManger internally uses the NSFileManger api to open the pdf document.

The way to go is to download any remote pdf document before trying to open it with FastPdfKit.

" online PDF” it’s a PDF that is someone hosted remotely and we work with it without download.

My issue is that if PDF file is more than 40-60mb it’s not good experience to download it, especially on circular network. Do you agree?
If we open PDF in browser for example, it doesn’t upload all document but work with it in page by page mode. This solution is very similar how maps works on mobile devices. It is not required to download all country map to show only one city :)

I understand that it’s impossible for now to have the progress bar for period when document cashing but maybe it’s possible to have infinity spinner for that period. To do this I need a trigger that shows me that FastPdf start rendering/presentation document. Is it possible to get such information from API?

Based on how pdf documents specifications are defined, there isn’t a way to open a pdf document before it has been completely downloaded (the pdf format let you, for example, delete a page just appending a tag at the end of the document).
So it’s impossible to securely open it immediately.

On the web you are probably (not sure of the tool you are using as inline pdf document isn’t support natively on the browsers) using a tool that let you see some pages (or image representation of those pages) in a progressive way. You can do the same on iOS, but using images and not a real pdf document.

In order to have the spinner, you can show it when you start the download process and hide it just before opening the pdf document with FastPdfKit.