Fix pdf not displaying in Firefox bug.

Now uses regular expression to search for object offset values.