Julian,
I am facing a weird issue.. the js is loading up fine on one of the
computers and the pdf is displaying normally, but on other computer the
same setup doesn't display pdf.
Error on console shown is -
*(while reading XRef) : TypeError: Cannot call method 'get' of undefined -
pdf.js: 4801*
*
*
sometimes the error shown is
*(while reading XRef) : TypeError: dict is undefined -
pdf.js: 4808*
*
*
The strange thing is - the same setup is working fine at other locations.
Would appreciate any pointers
*
*
*
*
> I was wondering if there is any way of specifying any other parameter
>> (width) etc for the viewport instead of giving scale?
>>
>
> I don't think so. In your case, could you do:
>
> var desiredWidth = ...;
> var viewport = page.getViewport(1.0);
> viewport = page.getViewport(desiredWidth/**viewport.width);
>
> Hope this helps. Don't hesitate to write back in case you have more
> questions!
>
> Very best,
>
> Julian
>
> On Sun Jan 27 16:15:46 2013,
kiran.na...@gmail.com wrote:
>