Online viewing

sergeypopenko's Avatar


07 Sep, 2015 04:57 PM

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?

  1. Support Staff 1 Posted by Matteo on 08 Sep, 2015 09:15 AM

    Matteo's Avatar

    Hi Sergey,
    what do you mean 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.

    Best regards,

  2. 2 Posted by sergeypopenko on 08 Sep, 2015 09:31 AM

    sergeypopenko's Avatar

    Thanks for your quick reply.

    " 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?


  3. 3 Posted by sergeypopenko on 08 Sep, 2015 09:32 AM

    sergeypopenko's Avatar

    Thanks for your help guys!

  4. Support Staff 4 Posted by Matteo on 08 Sep, 2015 09:38 AM

    Matteo's Avatar

    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.

    Best regards,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

15 Apr, 2020 04:25 AM
26 Feb, 2020 07:23 AM
27 Jun, 2019 06:08 AM
23 Nov, 2018 01:54 PM
14 Nov, 2018 04:37 PM