ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.72k stars 1.07k forks source link

Bug pdf conversion API rendering of a pptx #1618

Closed avanhovedev closed 2 years ago

avanhovedev commented 2 years ago

Do you want to request a feature or report a bug? Bug

What is the current behavior? When i'm using the PDF converter API, i have render problems on my pptx file(see attachments) image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. I will give u my file and can you test to convert the document into PDF using API

What is the expected behavior?

image

Did this work in previous versions of DocumentServer? No

DocumentServer version: 7.0.0

Operating System: Microsoft Windows 10

Browser version: Google Chrome 91

PB Preview OO_INSAL_GoFAST_Tuto_Actions_enmasse.pptx

ShockwaveNN commented 2 years ago

Hi, could you clarify parameters you've used?

I've converted your file via:

curl --location --request POST 'http://localhost/ConvertService.ashx' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "async": false,
    "filetype": "pptx",
    "key": "50ae2df7-f06d-4205-9a68-ea695cfbae1d",
    "outputtype": "pdf",
    "title": "PB.Preview.OO_INSAL_GoFAST_Tuto_Actions_enmasse.pptx",
    "url": "https://github.com/ONLYOFFICE/DocumentServer/files/7959685/PB.Preview.OO_INSAL_GoFAST_Tuto_Actions_enmasse.pptx"
}'

And everything seems fine (I've opened PDF in it Google Chrome and ONLYOFFICE DocumentServer): image

cpot commented 2 years ago

@ShockwaveNN we are checking and give you update next week. It is possible that it is that Onlyoffice PDF export in this case is incompatbile with PDF.js (LO and MS-Office working)

ShockwaveNN commented 2 years ago

incompatbile with PDF.js (LO and MS-Office working)

It may be, I think we got reports of problems with pdf.js earlier, but if file is renders fine in Google Chrome, LibreOffice and Word - this should be reported as bug in pdf.js library

cpot commented 2 years ago

Not exactly, PDF exported from LibreOffice or MS-Powerpoint is correctly displayed by PDF.js, not PDF export from Onlyoffice

ShockwaveNN commented 2 years ago

@cpot Sorry, correct me if I got you wrong, but I've meant another thing

  1. Export pdf from ONLYOFFICE DocumentServer
  2. Open in in GoogleChrome or for example Adobe Acrobat or Okular (my default viewer on KDE) and pdf.js

And if this pdf is OK in Google Chrome, and Okular and not OK in pdf.js - I think it's the problem in pdf.js

I've rechecked resulting pdf in Mozilla firefox (as I understand it uses pdf.js by default) and I confirm that it renders incorrectly, but google chrome and Okular render ok

avanhovedev commented 2 years ago

Hi ! This is the render with firefox :

image

I confirm, so i think it's a pdf.js problem we will see and come back after we fix this bug.

Thanks,

cpot commented 2 years ago

But still, LO and Powerpoint export a correct PDF of this file in PDF.js ....

ShockwaveNN commented 2 years ago

Maybe because they use completely another engine or some specific operations

I thin the best way right now to handle this situation - file an issue to pdf.js and wait for their analyze of this problem

ShockwaveNN commented 2 years ago

I'll close this issue, seems pdf.js team accepted this problem (judging by their tags)

nicozhang commented 1 year ago

The same problem. The pdf.js team seems not accepted this problem.

image