"Scale to fit" in xlsx

Integration questions/issues
Post Reply
nikoloza
Posts: 1
Joined: Sun May 05, 2019 12:22 pm

"Scale to fit" in xlsx

Post by nikoloza » Sun May 05, 2019 12:48 pm

I'm playing with document server and Conversion API and encountered a problem with xlsx files that have "Scale to fit" set (Width=1, Height=1 in my case). It seems that API doesn't look at this setting and two pages are exported to the PDF file (See attached screenshot).

The desktop version handles same file correctly and result is exactly one page.

Here're the curl request and response:
----

Code: Select all

curl -k --header "Content-Type: application/json" --header "Accept: application/json"   --request POST   --data '{ "async": false, "filetype": "xlsx", "key": "Khirz6TTTdRd9", "outputtype": "pdf", "title": "file.xlsx", "url": "http://example.com/file.xlsx" }'   https://localhost:5443/ConvertService.ashx

{"fileUrl":"https://localhost:5443/cache/files/conv_Khirz6TTTdRd9_pdf/output.pdf/file.pdf?md5=9Ez3BZjqiCEJoKK2pXsmMQ==&expires=1557059354&disposition=attachment&ooname=output.pdf","percent":100,"endConvert":true}
----

The DocumentServer was dowloaded from univention's website that shows version # 5.2.4.94
The desktop version is: 5.2.83.480

Any comments/ideas are welcome!

Nikoloz
Attachments
AcroRd32_2019-05-05_16-29-59.png
AcroRd32_2019-05-05_16-29-59.png (210.87 KiB) Viewed 31 times

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

Re: "Scale to fit" in xlsx

Post by Carl » Mon May 06, 2019 6:35 am

Hello,

Current Document Server version is 5.2.8. Please update it and let me know if the issue persists.

Post Reply