Closed re1naldo closed 7 years ago
@re1naldo How you fix this? I have the same issue.
@mile-janev Couldn't fix this. I had to install external PDF viewer in order to display PDF correctly.
You need to check and control this via your PDF Content, Characters, and Content Formatting that you are rendering, which should be understood by all PDF viewers.
For example, the PDF on the demo page uses simple formatting and normal roman characters and content formatting, that will be understood by most PDF viewers.
Configuration:
Controller:
The script above works well in desktop browsers (Chrome, Opera, Firefox, IE) and mobile browsers (Firefox, Opera). However, it showed an error when I opened the page using Chrome mobile (Android):
Cannot display PDF (index.php is of invalid format)
Could this be related to Google Drive PDF Viewer issue (https://productforums.google.com/forum/#!topic/drive/xkkVSoLSIxo;context-place=topicsearchin/drive/category$3Adrive-mobile-app%7Csort:relevance%7Cspell:false)? I opened the mPDF demo page (http://demos.krajee.com/site/mpdf#demo) and it was displayed properly on Chrome mobile. Did I make a mistake in the configuration?
Yii: 2.0.9 Chrome mobile: 52.0.2743.98