Display local PDF

Ask questions and share your skills here

Display local PDF

Postby ueilat » Tue Jul 27, 2010 8:24 am

I have to download a PDF locally (doc folder ok no problem).
Then I have to show it... How can I do?
The needs is to do something similar to iBook
User avatar
ueilat
NimbleKit Expert
 
Posts: 158
Joined: Fri Feb 12, 2010 2:31 am
Location: Torino, Italy

Re: Display local PDF

Postby ueilat » Tue Jul 27, 2010 5:25 pm

solved with a workaround...
if you want to see in html a document folder file use (for example a downloaded image)
Code: Select all
<img src="../Documents/image.jpg">
User avatar
ueilat
NimbleKit Expert
 
Posts: 158
Joined: Fri Feb 12, 2010 2:31 am
Location: Torino, Italy

Re: Display local PDF

Postby mliga666 » Tue Jul 27, 2010 9:28 pm

Really? I needed that and also opened a feature request to have an accessibile path to use downloaded images or html from document folder...
Sunny, it's ok to go that way?
mliga666
NimbleKit Expert
 
Posts: 135
Joined: Thu Dec 03, 2009 8:38 pm

Re: Display local PDF

Postby sunny » Thu Jul 29, 2010 8:53 am

if it works then sure, I did not know it works that way :)
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Display local PDF

Postby ueilat » Thu Jul 29, 2010 2:36 pm

It works in development environment, also in iphone physical installation.
I'll do next week in production with this version, so I hope that in production environment there aren't different permission rules..
considering this workaround, do you think is possible to have gotopage and/or NKMoveToPageAnimated(pageName, animation) working with this kind of local links??
User avatar
ueilat
NimbleKit Expert
 
Posts: 158
Joined: Fri Feb 12, 2010 2:31 am
Location: Torino, Italy

Re: Display local PDF

Postby sunny » Thu Jul 29, 2010 2:41 pm

nope, unfortunately it's a little different approach used there
User avatar
sunny
Staff
 
Posts: 1787
Joined: Sat May 30, 2009 5:18 am
Location: kiev, Ukraine

Re: Display local PDF

Postby Big-O » Thu Jul 29, 2010 3:04 pm

Hmmm, that path trick is interesting. I wonder if this is how Apple intended things to work or if they are going to change that without warning.
I am a small and fragile flower.

-- Big-O
User avatar
Big-O
NimbleKit Expert
 
Posts: 310
Joined: Thu Sep 24, 2009 4:02 am

Re: Display local PDF

Postby ueilat » Thu Jul 29, 2010 3:04 pm

ok
so new request that solve everything
can we implement a "web function" that open a new window?
I mean a command like
NKOpenWeb(url, title, color, tabbar)
where url is obviously the link (local or remote)
title and color is related to the navigationcontroller setup (that is the standard with automatically a button to close the page
tabbar is true/false and decide if to show the bottom tabbar where you have button previous next stop reload

this cover internal webbrowsing feature and possibility to display document folders pages

the perfection will be that when you launch the command it open immediately and when loading there is an indicator in the top that show the page is loading....
is too much this??
User avatar
ueilat
NimbleKit Expert
 
Posts: 158
Joined: Fri Feb 12, 2010 2:31 am
Location: Torino, Italy

Re: Display local PDF

Postby ryubr » Fri Jul 30, 2010 3:03 am

Hello guys,

Why not use the object html tag to display the pdf? It will load the default pdf visualizer from ios :-) also open the pdf as a page will display the default visualizer :-)
ryubr
 
Posts: 53
Joined: Fri Jun 19, 2009 5:36 am

Re: Display local PDF

Postby ueilat » Fri Jul 30, 2010 10:50 pm

I didn't know such approach
is it possible to customize the viewer? I tried without success. I mean my document is multi page, and this objectshow a non "movable" pdf
User avatar
ueilat
NimbleKit Expert
 
Posts: 158
Joined: Fri Feb 12, 2010 2:31 am
Location: Torino, Italy

Next

Return to How To...

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest