Canvas2D cause mobile phone browser keep refresh

Hi,

May I know why is this happen?

Thanks & Regards,
shihoi

Hi there,

The Canvas2D warning should not cause your mobile browser to refresh:

Are you able to reproduce the issue loading our sample (PDF.js Viewer Demo | PDF.js Express) on the mobile browser?

Best regards,
Kevin Kim

Hi,

In your sample (PDF.js Viewer Demo | PDF.js Express) also have this issue when I using this pdf ([https://member.leafycard.com.my/file/2631928996DA94367167D15A3447D252DFCAF3CDB9236964E123100CF92A0BA4EB168DD28E563A92DE634B4BD0F86F96/1343A4CB3D89C9DC80C8BAE4DD4B05F0C6169BEE6462A2B053CA367E4BE5A560/6062507E31B09B931233A0A5565AB9EE?iWidth=0&iHeight=0]).

May I know how to I get all the canvas tag in the iframe that your API generated after document loaded finish?

I need to set “getContext(‘2d’, { willReadFrequently: true });” to your canvas tag.

Thanks,
shihoi

Hi there,

The PDF you linked doesn’t seem to be retrievable:

In addition, our pdf.js express uses the pdf.js technology, and they also mention that setting that parameter will reduce performance: [optimisation] · Issue #15662 · mozilla/pdf.js · GitHub

Best regards,
Kevin Kim