PDF and Buzztouch

How to display PDF non-working BTv1.5 (Android) PDF Screen

Possible Solutions:
Convert to HTML

Link via URL

Edit your PDF

Using Acrobat Pro: open the  PDF. Go to Document > Reduce file size

How to email/SMS a PDF Doc from Buzztouch apps:

The email button in the bottom toolbar of buzztouch will use the viewed document as the attachment. I don’t think you can use the built-in function at buzztouch to show one page, and email a different one.

Yes, you can by
create a Right Nav Bar button and link to a share screen and place link to pdf file.
User sees HTML doc (BT Android PDF screen doesn’t work)
but emails link to pdf posted online (website or Dropbox).

Problem: PDF file load time (local, not downloaded) iOS

I’ve got several PDFs in my latest app that are all around 440kb in size. I have them loaded in xCode to be included in the build, and in the xCode simulator, I get the pinwheel for about 1.5 seconds (not bad). This is regardless of if I’ve click on it before (not caching?). I can click on a PDF, go back and click it again, and it still has the delay. The real problem is when I load it on a real device. The pinwheel (load time) is a LOT longer.

Is this normal behavior? is 440kb that big of a task for the iphone to load? or is it inherent to PDFs?

Kinda both things. UIWebViews in iOS are notoriously slow when loading largish files. The trouble with PDF (and any other binary data) is that the UIWebView does not load it progressively like it can and does with HTML. This means it must load it all into memory, then display it. I don’t know of any work-arounds for this short of creating a cool custom view to show a little dancing monkey on top of the pdf while it’s loading. This cold be entertaining enough to help you forget about the slow load.

Its actually just a single page 8.5×11 document. I wanted to keep it in PDF form vs. html so the user could use the email button to send the PDF as-is to someone. Maybe I need to look into compression for the PDFs. They only have a header and a table on plain white background. Maybe its the way I am exporting them. (I used Photoshop’s PDF export function -using the ‘economy’ setting).

***************
PDF study by @Moto110 6/1/12

I have done some testing and this is what I found.

I created a 14mb test PDF so that it was big enough to have a noticeable difference between opening local or downloading every time I access the screen. Just for reference I’m on a 90mb down internet connection via Wi-Fi on iPhone 4S

1. I added this PDF Document via the PDF Document screen using a URL and setting the document properties setting “Force Refresh” to “No, allow caching”. I tested this multiple times by accessing the PDF document URL screen and waiting about 14 seconds each time as the document was downloaded.

2. I added the same PDF Document via a Custom HTML screen and embedded the PDF in the HTML code. This option took just as long as option one and did not produce a desirable display of the PDF.

3. I added a the same PDF Document via a third PDF Document screen using the Local “BT_Docs” folder option and the file opens within about half a second. I do see the spinning “Loading” icon for a brief moment.

Now that these screens have been loaded on my device I turned on Airplane mode and accessed the PDF screens again.

Here is what I found:

1. Option one displays a network connectivity error and does not load the PDF document.

2. Option two Embedding the PDF in Custom HTML does show the couple lines of HTML text I added before the PDF embed code, but does not display the embedded PDF and gaves a network error.

3. Option three storing the PDF document in the “BT_Docs” folder works as expected displaying the 14mb PDF file within a second or less.

I think I know what I need to do and that is store the PDF local and hope that I don’t need to update it frequently.

On a side note I found this really good website for generating code to embed PDF documents in HTML. It might help someone else on a different app project.

Here is the link:

http://pdfobject.com/generator.php

*******************

My reply:

Try posting PDF on a website/Dropbox and access via Custom URL webpage screen.

Not saying it’ll be better than embedding, just an option.

You can also use Launch Native App (browser) and test the result.

On the sidenote: embedding images into HTML is a useful tool. Hadn’t tried it with the various doc types.

Plus, you could also convert the PDF to HTML.

Fred

********************
PDF & iOS

PDF.js

Section 508

Your Guide to Accessible PDF

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s