Closed ShockwaveNN closed 6 years ago
Tryed http image link - seems fine on 5.1.4, image inserted correctly
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph, oDrawing;
oParagraph = oDocument.GetElement(0);
oDrawing = Api.CreateImage("http://i.imgur.com/FwCrqlU.jpg", 60 * 36000, 35 * 36000);
oParagraph.AddDrawing(oDrawing);
builder.SaveFile("docx", "CreateImage.docx");
builder.CloseFile();
Fixed in https://github.com/ONLYOFFICE/document-server-package/pull/48 verified in 5.1.4.21
localhost/docbuilder?async=false
In DocumentServer Web Documentbuilder 5.1.3 (and earlier) will be created this file (with correct inserted image) CreateImage (2).docx
In DocumentServer Web Documentbuilder 5.1.4 will be created this file without correct image
May be related with new libcurl lib scheme CreateImage (3).docx