-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview for docx files, issues with formating #962
Comments
Thank you very much for posting my issue Adrien, perfectly resumed. I will monitor the progress of the topic and hoping for a soon resolution - thank you all in advance! |
We use the webview of safari which allows to make a direct rendering of the office file in native. A solution would be to do as on Android (which does not allow native rendering) to download the PDF preview of the file through the onlyoffice api. But it might be less good for other files. |
Okay, I get it. Many thanks for your quick feedback. I use the iOS app. I tested just to see what is for OneDrive and Dropbox and they display it both just fine, like every other Word, never seen any formatting/presentation glitches, I assume they using their own proprietary API that offers a native-rendering? Can you test if the result is good by using the ONLYOFFICE API? Or tell me if I can do it on my own (but I don't think that possible)? Doc is attached. You mean the Safari preview is pretty good and displays most of the files fine... Something native remains better and more efficient I think. |
Native rendering is the same theoretically as apple's "pages". To use onlyoffice, press the "edit" button. This will open a webview that displays onlyoffice. |
My apologies for late feedback two days after... At least meantime I did extra tests trying with the Pages Apple suite and ONLYOFFICE too. Verdict Pages displays it quite well but far from perfect: titles disappear (not displayed - like that nothing is written in place) strangely, unexpected spacing between paragraphs, shifted images, and these looks so basic things in terms of formatting, it's acceptable for a preview but incomparable to OneDrive or Dropbox which are really very good, I would prefer to have this result too on your app. On the other hand, OK for OneDrive because it uses Office (there are some very slight discrepancies but that's nothing) but yes Dropbox displays it identically too, exactly the same as OneDrive like it used the same technology, whereas not at all, it's their own. And that's perfect. So I assume that's possible/achievable. Ah yes, that simple, I tried ONLYOFFICE and it's the worst of all. What can and do you propose to do to correct at best this bug? |
Ok, so yes only the mobile version has problems and is not very successful, personally I never edit documents on mobile, use just as preview, but thanks for the issue, I am aware that a lot of 'others also edit so it will be very useful and avoid reopening the same problem ;) Wow the dream, we are approaching the goal, indeed it is the top of the top here! Wonderful congratulations! I will love this result, tip top, you gave me hope with this answer that it will be solved soon! So that's great. Another small question concerning the other possible files. If we implemented the solution that you propose as on Android, by downloading the PDF preview via the ONLYOFFICE API, if the result is impeccable and the text selectable, that's fine for me. Which seems to be perfectly the case. I basically thought that the preview would be identical to the edition, fortunately not... You said for some other files it may be less good, we are only talking about Office files I imagine .docx, .doc, .xlsx, .pptx etc.)? Why/How less good? Looks great for this Word so other simpler files will probably show up fine too. To answer your question, only with this file for my part, I tested a dozen other Words before answering you, and they are all displayed well currently. If it manages to display this Word well, which has less common formatting than the norm and is more complex, I tell myself that the rest should logically be fine. Just FYI, from what I've seen native rendering through Safari and Pages doesn't seem to be the same, Pages renders much better but not super either. If in the meantime, you can active the preview with ONLYOFFICE on the iOS app, I ask for nothing better :) Thank you very much for this topic follow-up and next efforts ! |
Hello,
Here is an example of a DOCX document that displays perfectly previewed in Dropbox and OneDrive.
However, on the kDrive app (the 4.2.7), the formatting is completely off.
Attached is the document in question and illustrations of the problem.
Problème rendu doc kDrive.docx
![kDrive](https://user-images.githubusercontent.com/85635056/214069937-2060fd91-afed-4a12-9ffa-c74992b69205.png)
![OneDrive](https://user-images.githubusercontent.com/85635056/214069969-79128fa1-792c-4083-a881-015d9b02e1bb.png)
![Dropbox](https://user-images.githubusercontent.com/85635056/214070012-664216cf-03ce-4197-a38a-b0da7dd17ad2.png)
Thanks for your attention
The text was updated successfully, but these errors were encountered: