You are not logged in.
Pages: 1
Server: Ubuntu 11.04 + LAMP + LibreOffice
When i enter on server from iPad i can't open PDF or doc Files
.Doc error Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/eyeOSe627b3ded9/apps/eyeVisor/events.eyecode on line 82 Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/eyeOSe627b3ded9/apps/eyeVisor/events.eyecode on line 83
.PDF Not Open on touch!
Offline
Hi Jakal, welcome to oneye.
Firstly, have you followed the instructions to enable LibreOffice on your server? (http://wiki.eyeos.org/Setting_Up_Office_Linux) This is probably what's causing the errors. (As you're running Ubuntu, you can safely ignore the bit about xvfb)
Secondly, the OOo/LO connector used within oneye is actually a bit dated as it only really works with OpenOffice 2.x series. Lars has considered trying something else called unoconv which should work better, but this is something you'll have to install and set-up separately.
Any further questions, don't hesitate to ask.
Last edited by s0600204 (2012-02-06 17:42:16)
Offline
When I whant open PDF file on touch I got nothing from iPad, but from pc I got Firefox dialog open/save.
Offline
Welcome back, Jakal.
The reason you're getting nothing on the iPad is most likely down to the fact you don't have a browser plugin for reading .pdf's installed on your iPad. And as Apple have disabled file uploads/downloads in Safari on iOS powered devices, you'll not be getting a dialog to save it to the iPad either.
Fortunately, oneye comes with an alternate method for viewing .pdf's, which should also prevent you from having to download the .pdf to read it in Firefox as well:
Login to oneye
Go to System preferences
Select "PDF Reader" in the section "System"
Where it says "Render Method", switch it to "HTML5 integrated renderer"
Hit "Save Changes"
Now try that .pdf
The one caveat of this method is that the 'HTML5 integrated renderer' is still under development and is, as such, somewhat buggy. It may not display your .pdf correctly... but it should display it.
Any further questions?
Offline
How i can change link to PDF from MSG=download&checknum=blablabla to real PDF link like site.com/file/my.pdf ?
Offline
When I click to PDF file in oneye, in browser address bar I see link site.com/index.php?msg=download&checknum=445667887543 if link will be site.com/file/file.pdf iPad load file in safari or iBook!
Offline
Okay, Jakal, I think I get what you mean.
The simple answer is: "You can't". That "?msg=download&checknum..." thing is part of how oneye works. Normally you shouldn't see it or even be aware of it, but when something goes wrong...
Anyway, I think I've worked out what's happening: if I'm not mistaken, when you click on your .pdf file, Safari attempts to download it instead of using its built-in .pdf viewer. Of course on an iPad the downloading of files is disabled (by Apple) and so it gets stuck (and gives you that "?msg=download&checknum...").
Anyhow, I've looked at the code and it turns out that oneye currently doesn't have support for Safari's built-in .pdf viewer. So I wrote it. Only problem is I don't own an iPad to test the fix. So, if you wouldn't mind, could I humbly ask you to do the following?:
Download this file: http://www.mediafire.com/?qzvwe22wjyga6fw
Go to your install of oneye on the server (that folder entitled eyeOS****, where the asterisks represent semi-random digits)
In this folder navigate to apps/eyePDF/
Copy the downloaded file into this folder
Try your .pdf file again
Tell me what happens, please.
Good luck
(Update: This fix has been committed to svn, r.7345)
Last edited by s0600204 (2012-02-11 18:14:28)
Offline
i update event.eyecode
*When i click on the PDF file from iPad, nothing happens
BUG OR NOT*When i click on iPad Action-->Download as Zip-->Select PDF file i see dialog (Open in iBooks or other program) if i choose iBooks, he no load file!
*When i click on iPad Action-->Download-->Select PDF, nothing happens
Offline
in setting i change Render method from Direct Download to Browser plugin and click to pdf
*from PC PDF open in window COOOL
*from iPad i got (Forbidden You don't have permission to access "link to file"
BUG OR NOT*in user/rt4/root/tmp/ folder alway create a new copy pdf
Last edited by Jakal (2012-02-08 07:01:50)
Offline
I got "." dot after my EYEROOT dir on ubuntu
Offline
PDF and DOC files not list in eyeVisor not drag
Offline
Okay, let's see...
BUG OR NOT*When i click on iPad Action-->Download as Zip-->Select PDF file i see dialog (Open in iBooks or other program) if i choose iBooks, he no load file!
I think I understand what's going on here, but this may be a different bug, and so I have made a note and shall return to it later.
from PC PDF open in window COOOL
Excellent.
from iPad i got (Forbidden You don't have permission to access "link to file"
Not so excellent. Could you copy-paste the "link to file" (from "eyeOS****" to the end), just so we can check its pointing to roughly the right place?
BUG OR NOT*in user/rt4/root/tmp/ folder alway create a new copy pdf
This is part of how the fix works. Don't worry, anything in the /tmp/ folder should be deleted once you close your login session within oneye. Could I ask you to try opening the pdf on your iPad again and then, on the server, in Terminal/xConsole (using the command line) navigate to this folder and use "ls -l", copy-pasting the result here?
I got "." dot after my EYEROOT dir on ubuntu
Okay... well nevermind...
PDF and DOC files not list in eyeVisor not drag
I'm sorry, but I'm really not too sure what you mean by this.
Offline
*from iPad i got (Forbidden You don't have permission to access "link to file"
I fix it just delete .haccess in root dir but thi no good
*I got "." dot after my EYEROOT dir on ubuntu
I fix it just write oneye77777777 as oneye77777777/
*PDF and DOC files not list in eyeVisor not drag
Document load but stay on first page I can't drag document from iPad
Offline
Okay, Jakal, apologies for the wait.
*from iPad i got (Forbidden You don't have permission to access "link to file"
I fix it just delete .haccess in root dir but thi no good
.htaccess files are not generated or used by oneye/eyeos. They are used by apache webserver to permit configuration of itself on a per-directory basis. (see http://httpd.apache.org/docs/2.2/howto/htaccess.html ).
*I got "." dot after my EYEROOT dir on ubuntu
I fix it just write oneye77777777 as oneye77777777/
Fair enough, I guess
*PDF and DOC files not list in eyeVisor not drag
Document load but stay on first page I can't drag document from iPad
If you mean you can't scroll down to the second page - then I'm very sorry but I can't personally help you. Like I said, I don't have an iPad and therefore no way of debugging this myself. So I'm gonna have to leave this to someone else. Sorry.
Offline
*PDF and DOC files not list in eyeVisor not drag
Document load but stay on first page I can't drag document from iPad
When I open .doc and click edit, in text editor text drag on touch very good but in eyevisio text not drag. How do I fix it myself ? In which file edit it?
Offline
Jakal,
The files dicatating the appearance and behaviour of eyeVisor are contained within [eyeroot]/apps/eyeVisor. The application that runs when you click 'edit' is eyeDocs, the files of which can be found in [eyeroot]/apps/eyeDocs.
As to how to fix it, you'll have to figure out for yourself. However, you may wish to consider the following:
Both eyeVisor and eyeDocs use OpenOffice/LibreOffice to translate .doc into .html format for display. However eyeVisor puts the content in an <iframe>, whilst eyeDocs puts it in a <textarea>.
When .pdf files are opened, the application that displays them is eyePdf (not eyeVisor) and this also uses an <iframe> to display it.
eyeNav, otherwise known as "Navigator", uses <iframe>s to display content. Does scrolling work here?
From your descriptions, it sounds like scrolling is being disabled in <iframe>s in iOS' Safari, but not in textareas. Your task is to find out why.
The code that dicatates the appearance and behaviour of <iframe>s in oneye is contained within the file [eyeroot]/system/lib/eyeWidgets/widgets/Iframe.eyecode
Have fun!
Offline
I'll try to fix it myself thx
Offline
Firstly, have you followed the instructions to enable LibreOffice on your server?
Offline
Pages: 1