javascript - PDF.JS in Mobile apps Access-Control-Allow-Origin issue -


I am trying to develop an app for mobile devices using Sechecha and Cordova. As PDF support is not available in the browsers of Android, I decided to use PDF. Js This is working fine while loading local PDF files, but when trying to open remote files it is throwing an error

  http: //   

Please tell me about how to fix this problem. Is there any way to fix this in PDF? Js I need a PDF file locally because the app also requires offline capability.

thanks in advance

when downloading PDF.js document for WebWorkers If using, then the problem is happening. Corrections in WebWorkers is a complete mistake in the whole browser. (CORS is a mistake IMHO.)

This will not work:

& lt; Solution: Ajax itself with Feedback type arraybuffer , then PDF to access original = "*" subdomain = "true" />

Give feedback on JS:

  .success (buffer) {PDFJS.getDocument (buffer);})    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -