horiyuki
Forum Replies Created
-
Forum: Plugins
In reply to: [jupdf pdf viewer] jupdf and custom post typesThanks for using jupdf.
I think jupdf is avalable for custom posts.
But I do not test it…Sincerly,
Forum: Plugins
In reply to: [jupdf pdf viewer] Doesn't work on mobile devicesThanks for reporting.
I added css for smart phones mobile devices.
Please check version 0.1.1.And about 403 error, it is caused by something like access denied.
Please ensure that pdf file is available to access from mobile device.Forum: Plugins
In reply to: [jupdf pdf viewer] Not workingnaruhodo…
To display remote hosted pdf document cause touble…
But this problem is very simple.
Please check http headers I posted before.Another solution is for only your www browser.
Restart your www browser with the following options (in chrome case).chrome.exe --allow-file-access-from-files --disable-web-security
Have a fun.
Forum: Plugins
In reply to: [jupdf pdf viewer] Not workingThanks for reporting.
Maybe… Are you tring to load a remote pdf document?
If you want to display remotely-hosted pdf document,
the following configuration values are necessary.Access-Control-Allow-Origin "*" Access-Control-Allow-Headers "range" Access-Control-Expose-Headers "content-range, content-length, accept-ranges" Access-Control-Allow-Methods "GET"
For example, write the following setup at .htaccess file on
the remote host (referenced pdf documents were saved).Header append Access-Control-Allow-Origin "*" Header append Access-Control-Allow-Headers "range" Header append Access-Control-Expose-Headers "content-range, content-length, accept-ranges" Header append Access-Control-Allow-Methods "GET"
Best regards,
References
* Content-Length header exposed in CORS configuration for remote docs breaks PDF viewer #4530 https://github.com/mozilla/pdf.js/issues/4530
* Can I load a PDF from another server (cross domain request)? https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-xhrForum: Plugins
In reply to: [jupdf pdf viewer] Not workingCheck for valid pdf file url in file parameter.
An Example as below.
[jupdf-viewer file=https://whitebase.org/jupdf/perl-sample.pdf]