DocumentBuilder icon indicating copy to clipboard operation
DocumentBuilder copied to clipboard

Call `Api.CreateImage` with url result broken file on Windows

Open ShockwaveNN opened this issue 5 years ago • 5 comments

  1. Run this script on Windows
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph, oDrawing;
oParagraph = oDocument.GetElement(0);
oDrawing = Api.CreateImage("https://api.onlyoffice.com/content/img/docbuilder/examples/coordinate_aspects.png", 60 * 36000, 35 * 36000);
oParagraph.AddDrawing(oDrawing);
builder.SaveFile("docx", "CreateImage.docx");
builder.CloseFile();

In result will be created broken file of 1KB size.

This issue only actual on Windows, on centos and ubuntu everything is fine. Also Api.CreateImage will not result broken file if use base64 inside

Tested on:

Windows 10
v5.3.3.30
sdk version:  5.3.3 (build:61)

ShockwaveNN avatar Jul 22 '19 12:07 ShockwaveNN

Has this bug been solved, please?

FFF0220 avatar Oct 14 '20 09:10 FFF0220

Sorry, this issue is still actual in v6.0.0 of DocumentBuilder (will be released very soon) This issue require some addition functions to be implemented on Windows

If this is critical for you - you can use base64 encoding to create image, or use Linux version for thich this bug is not actual

ShockwaveNN avatar Oct 16 '20 09:10 ShockwaveNN

Sorry, this issue is still actual in v6.0.0 of DocumentBuilder (will be released very soon) This issue require some addition functions to be implemented on Windows

If this is critical for you - you can use base64 encoding to create image, or use Linux version for thich this bug is not actual

ok, thanks.

FFF0220 avatar Oct 19 '20 02:10 FFF0220

I've created issue 54528 in our private issue tracker

Nothing changed for issue by itself, but we change our bug tracking guidelines since original issue was filed in 2019 Problem actual in current stable version of DocumentBuilder on windows

ShockwaveNN avatar Dec 14 '21 14:12 ShockwaveNN

bug is not repeated on the version:

windows 10
v7.5.0.128
sdk version:  7.5.0 (build:128)

askonev avatar Oct 31 '23 09:10 askonev