Dear Aspose Team,
we are using Aspose as rendering engine.
What we are currently experiencing is the following:
When we are rendering a document which contains image-placeholders in text boxes, the resulting document looks good.
But when we are converting the resulting document into png format, some of the images are reverting back to their placeholder image.
I have attached an example. Page 1 is looking fine, page 2 shows the issue after conversion to PNG.
code to reproduce:
[TestMethod]
public void ConvertTextboxContentToPngTest()
{
String sourcefilePath = @“C:\tmp\barcodeIssue_Textbox.docx”;
String targetPath = @“C:\tmp\textboxTest”;
Document doc = new Document(sourcefilePath);
for (int pageIndex = 0; pageIndex < doc.PageCount; pageIndex++)
{
ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.Png)
{ PageIndex = pageIndex, };
//also not working:
//saveOptions.DmlRenderingMode = DmlRenderingMode.DrawingML;
String targetfilePath = String.Format("{0}{1}{2}",targetPath,pageIndex,".png");
doc.Save(targetfilePath, saveOptions);
}
}</span></pre><pre style="font-family: 'Source Code Pro'; font-size: 13px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><br></pre><pre style="font-size: 13px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="font-family: 'Times New Roman'; font-size: medium; white-space: normal;">Thanks for your support!</span></pre><pre style="font-size: 13px; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><span style="font-family: 'Times New Roman'; font-size: medium; white-space: normal;">Kind regards<br>Wolfgang</span></pre></div>
Hi,
Thanks for your inquiry. I tested the scenario and have managed to reproduce the same problem. For the sake of correction, I have logged this problem in our issue tracking system as
WORDSNET-11950. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.
Best regards,
Hello Awais,
thanks for the feedback.
Is there a possibility to get any estimation in regards to when this defect gets processed?
Or is there any workaround we could possibly try?
Also we were able to do a successful test with an older build which uses Aspose.Words 14.2.0.
The resulting rendered documents converts perfectly fine into png, whereas it brings the same problems with the latest Aspose.Words build.
I attached this specific document as well.
Thanks and kind regards
Wolfgang
Hi,
Thanks for the additional information. I am afraid, Aspose.Words 14.2.0 works the same way as the latest version 15.4.0 does. Please see attached ‘14.2.0-barcodeIssue_Textbox-page2.zip’. We will inform you as soon as WORDSNET-11950 is resolved. We apologize for any inconvenience.
Best regards,
Hello again,
thanks for the update.
I am afraid, we are talking about different topics.
I attached a second document, which was created by our application using Aspose.Words 14.2.0
This template is properly converted using aspose.Words 14.2.0.
So in our application everything looked perfectly fine with Aspose.Words 14.2.0
Now, if we even take this older document, created by Aspose 14.2.0 and convert it using ASpose 15.3.0, we get the issue.
We recognized, that there was a big change in regards to the DrawingML type in Aspose.Words.
We had to remove a check for NodeType.DrawingML in our application.
Most probably, this is related to the latest observations.
Please have a look at the second attachment from my side and test this with both Aspose versions to see the difference.
Thanks and kind regards
Wolfgang
Hi,
Thanks for the additional information. Unfortunately, I was unable to see any differences between Aspose.Words’ 14.2.0 and 15.5.0 generated outputs. I have converted ‘working_DCUI_Preview.docx’ to PDFs and PNGs using different versions of Aspose.Words on my end and attached the generated files here for your reference (see Docs.zip). So, the linked issue (WORDSNET-11950) does not seem to be a regression in Aspose.Words. Please let me know if I can be of any further assistance.
Best regards,
The issues you have found earlier (filed as WORDSNET-11950) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.