Discussion Forums  >  Uncategorized

Replies: 14    Views: 205

miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
07/14/11 07:26 AM (14 years ago)

PDFs in live app - missing pages

I have some PDFs in my app which are being fed directly from a URL. It's seems that it will only allow the first 3 pages of any PDF to be visable, yet when I click in the button in the app to view it in safari you can see the whole thing. One of the PDFs is only 242KB and the other is 1.44mb. Hope you can help
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/14/11 09:47 PM (14 years ago)
Hi in UK: This is an interesting problem and one I've not heard of before. I can't think off hand what may be causing it? Assuming this is a v1.5, iOS project: a) Are you pulling the PDF from a URL or adding it to the Xcode project directly. b) Is there something funky or special about the way the PDF was created? Not sure what I'm asking here, just wondering if the PDF has form elements or something advanced about the way it's formatted? c) Does the output console show any messages or errors? Load the screen with the console open while connected to Xcode, any messages here? I'll stick with this thread until we get it resolved...we are interested in what could be causing this too ;-)
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
07/15/11 02:19 AM (14 years ago)
Hi David You assumed correctly, it is a v1.5 iOS project. I am pulling the PDF from a URL Nothing special about the PDF, no forms or links. No Error messages, and it ran fine when I had the app loaded directly from Xcode onto my phone or using the iOS iphone simulator. It's only happened since I installed the app directly from the app store. Thanks :-)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/15/11 06:42 PM (14 years ago)
OK, good info. So if it worked in the simulator and not on the device...this is a difficult issue. The simulator is very very reliable in behavior and seems to work exactly as the device may. About the only thing I can imagine trying are... a) Creating a new screen in your app (using the control panel) and connecting it to a temporary menu item. Refresh the app. If it works, remove the previously created screen with the same PDF. Not sure how or why this would work but it's worth trying while we try to diagnose the trouble. b) Totally removing the app from the device and your iTunes library. The one you downloaded form the App Store. Re-install from the App Store...see if it works?
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
07/17/11 03:18 AM (14 years ago)
Hi David I've tried both things this morning and unfortunately still no joy. What I have noticed though is in the Simulator it also shows (in the top left corner) the amount of pages i.e 1 of 8 but it doesn't on the actual app. Michelle
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/18/11 03:35 AM (14 years ago)
Hi again... lets do this. With your permission I can download and test your project. Post something like 'it's ok for buzztouch to download and test my project' along with the exact name of the app (as it appears in your control panel). I'll figure the darned thing out. Funny.
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
07/18/11 10:50 AM (14 years ago)
It's ok for buzztouch to download and test my project 'Wellfield BEC' (v1.5) Thanks David
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
07/24/11 12:36 PM (14 years ago)
Hi David Have you had chance to test the PDFs in the app?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/24/11 01:43 PM (14 years ago)
Oops...totally forgot about this - yikes! I'll be at the desk later this evening and will move it to the top of the list. Expect some details and hopefully a fix this evening. Blushing....sorry ;-)
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
07/24/11 03:23 PM (14 years ago)
No need to apologise, appreciate your help with this. Look forward to the fix :-) Thanks again
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/25/11 12:09 AM (14 years ago)
OK, I think I may have figured it out. I'm working with the Prospectus .pdf, thinking it's the right one because it's 8 pages. I downloaded the app and tested on the simulator...no troubles. I don't have the images you used for button graphics but that's ok, it works with the 'missing image' button graphic ;-). So, clicking a PDF button (prospectus, Policies, etc) revealed no problems. I seached iTunes for Wellfield BEC and couldn't find it. Maybe it only in the UK App Store? So...couldn't test on a device. But...I'm thinking this. After looking at the code, do you think it's taking longer than :25 seconds or so to downoad the PDF? It could on a slow connection. What happens if you refresh the app and test on WiFi or 3G, any difference? The BT_downloader.m file has a :25 second timeout built it. You could search that file for the number 25 and change it o 60 and see what happened? It's about the only thing I can come up with at this point. Last thought...maybe send a link to the app in iTunes, it may work from the US with the proper URL. I think increasing the timeout in BT_downloader.m will do the trick.
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
07/25/11 10:26 AM (14 years ago)
I take it changing the timeout from 25 to 60 will only take effect if I submit an update to the app store for my app? I had previously tried refreshing etc once the PDF had opened and this was on both WiFi and 3G, but that didn't make any difference. Here's the direct link to the app http://itunes.apple.com/gb/app/wellfield-bec/id447463528?mt=8
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/25/11 08:41 PM (14 years ago)
Rats, the URL works for hte landing page but my US Apple Id will not allow me to get a UK store apps. I've not seen this before. Can you decie what App Stores it's in? Seems strange that it's only UK. Yes, updating the timeout will require a re-compile which would then require an update. If you want, before doing this, see if your Apple Control Panel will allow you to make the app availalbe in the US and I'll be happy to continue testing. Else, make the :30 second update.
 
miche
Apple Fan
Profile
Posts: 59
Reg: Jun 07, 2011
Lancashire, UK
3,740
like
08/23/11 08:18 AM (14 years ago)
Hi David Just to let you know the PDfs have started working ok. I'm not sure how, I haven't submitted an update for my app or anything. Thanks for your support on this and I want to take this opportunity to say thank you to Buzztouch for your continuing great work! :-) Michelle
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/23/11 11:09 PM (14 years ago)
Hi @miche: Cool news..kinda forgot about this ;-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.