Conversion API. Docx to PDF issue.

Integration questions/issues
Post Reply
djk81
Posts: 11
Joined: Tue Mar 05, 2019 8:28 am

Conversion API. Docx to PDF issue.

Post by djk81 » Wed Jan 01, 2020 5:49 pm

Hello. Our product is using Conversion API on Onlyoffice.
But Our customer reported some critical issue from that.

When we convert Docx to PDF. There are some page-break problem. It does not look alright.

Please check Attachments.


The original docx's first page ends up with paragraph 1~7, The other ends up on second page.

But the converted PDF shows paragraph 1~9 on first page.

How can i fix this?
Is there some limitation of conversion API?

The important thing is the original conversion of msword. it works great. (The pdf converted by msword's save as.. menu.) you can see this by PNG attachments.


thanks.
Attachments
convert_pdf_by_msword.PNG
convert_pdf_by_msword.PNG (13.43 KiB) Viewed 280 times
docx2pdf.zip
(101.27 KiB) Downloaded 6 times

Carl
Posts: 274
Joined: Thu Apr 12, 2018 10:00 am

Re: Conversion API. Docx to PDF issue.

Post by Carl » Thu Jan 02, 2020 7:38 am

Hello djk81,

Please specify the Document Server version you are using. Also provide an example of request that you send to the conversion service to convert this file.

djk81
Posts: 11
Joined: Tue Mar 05, 2019 8:28 am

Re: Conversion API. Docx to PDF issue.

Post by djk81 » Tue Jan 07, 2020 9:00 am

Here is my reply.

1. Document Server version
-> It is 5.2.2

2. example files
-> Please check the attachements "docx2pdf.zip"

djk81
Posts: 11
Joined: Tue Mar 05, 2019 8:28 am

Re: Conversion API. Docx to PDF issue.

Post by djk81 » Tue Jan 07, 2020 9:05 am

And here is our example source code.

Code: Select all


    post_url = settings.ONLY_OFFICE_SERVER_ADDR + "/ConvertService.ashx"

    tobe_filename = '{}.{}'.format(key, output_type)
    payload = {
            "async": False,
            "filetype": source_filetype, 
            "key": key,
            "outputtype": "pdf", 
            "title": tobe_filename,
            "url": lookup_url
    }
        

Carl
Posts: 274
Joined: Thu Apr 12, 2018 10:00 am

Re: Conversion API. Docx to PDF issue.

Post by Carl » Fri Jan 10, 2020 12:09 pm

Hello,

Current Document Server version is 5.4.2. Please try to reproduce the issue on this version and let me know the result.

djk81
Posts: 11
Joined: Tue Mar 05, 2019 8:28 am

Re: Conversion API. Docx to PDF issue.

Post by djk81 » Mon Jan 13, 2020 3:17 am

It's same on 5.4.2.

djk81
Posts: 11
Joined: Tue Mar 05, 2019 8:28 am

Re: Conversion API. Docx to PDF issue.

Post by djk81 » Mon Jan 13, 2020 4:02 am

And I realized this lateley. This is not only about the conversion API. The doucment-editor has same problem. :shock: :shock:
document_server.jpg
document_server.jpg (193.85 KiB) Viewed 221 times
version.jpg
version.jpg (74.62 KiB) Viewed 221 times

Post Reply