Infomaniak / ios-kDrive

https://apps.apple.com/app/infomaniak-kdrive/id1482778676
GNU General Public License v3.0
46 stars 6 forks source link

Preview for docx files, issues with formating #962

Open adrien-pedrina opened 1 year ago

adrien-pedrina commented 1 year ago

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 OneDrive Dropbox

Thanks for your attention

kev57rs3 commented 1 year ago

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!

JorisBodin commented 1 year ago

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.

kev57rs3 commented 1 year ago

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? But, pCloud app faces same issue fyi.

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... I haven't seen/experienced problems with other documents (.xlsx, .txt, .rtf, .pdf) till now on the app indeed. And even, kDrive app displays other Words good (but more simplest in terms of presentation). Only this one is displayed not well at all :( completely distorted while many others are perfectly OK.

Something native remains better and more efficient I think. The fact it downloads a PDF preview thru ONLYOFFICE, all will remains as transparent and fast like a native-use? If yes, then ok for me let's go.

JorisBodin commented 1 year ago

Native rendering is the same theoretically as apple's "pages". OneDrive is Microsoft so they use their word products directly for rendering. Dropbox have developed their own office solution. And they really had to rely on word and not pages.

To use onlyoffice, press the "edit" button. This will open a webview that displays onlyoffice.

kev57rs3 commented 1 year ago

My apologies for late feedback two days after... I would like to do it before like I want this bug fixed at earliest if possible but very busy with work at the moment... :(

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. And I'm sure you can do it, I trust in your team and effort out-coming for customer service.

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. Everything is mixed up, it's unreadable, a disaster.

What can and do you propose to do to correct at best this bug?

JorisBodin commented 1 year ago

The onlyoffice preview works. The computer edition also works. But the mobile edition is effectively all broken. We will make an issue at onlyoffice, it is a product we pay for. Screenshot_20230127-091350 Screenshot_20230127-091343

Do you reproduce with another file or is this one only?

kev57rs3 commented 1 year ago

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? Or the chosen option will force all preview with ONLYOFFICE now and no more Safari even for .pdf, .rtf, .txt, .odt and others?

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 !