Please help to work with FPK zipped files.

Somendra Panishankar's Avatar

Somendra Panishankar

18 Jun, 2012 08:38 PM

Hi Support Team,

I'm working on usage of fpk files (i.e. zipped file carrying pdf file and annotated files on same level). Please provide me step by step documentation for the same to work with multimedia sample project. I've the multimedia sample project downloaded from GitHub. Now I need to continue from there.

Thanks in advance...

  1. 1 Posted by Nicolò on 22 Jun, 2012 10:41 AM

    Nicolò's Avatar


    To sum it up: in the url annotation you specify the relative path of the resources to the resourceFolder of the MFDocumentManager.

    Let's suppose you compress a folder such a way that, once uncompressed into /Library/Document001, it will look like this


    You can then create the MFDocumentManager with the path to document_001.pdf as usual. Then, if you have added annotations like fpkv://video/video_02.mp4, you set the MFDocumentManager's resourceFolder to /Library/Document001. The kit will look for the video at /Library/Document001/video/video_02.mp4.

    FPK archives (zip archive) are comfy because you can add anything you need into them, pdf and multimedia alike, and unzip them in a specific document folder. This also mean you can delete the folder and remove all the unneded file at once.

    Yo uncompress the fpk/zip file you can use a third party library based on libz, like ZipArchive. You'll find the static library and the header, and the required minizip files, in the Third parties folder of the kit project. Code samples is in BookItemView's -handleFPKFile: method.

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