We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Re: Nonbreaking spaces gets converted to squares when saving as pdf

Hi,


we have the same issue too. And we very need the fix.
Hi Igor,

Thanks for your inquiry. Could you please attach your input Word document and PDF file showing the undesired behavior here for testing? We will investigate the issue on our end and provide you more information.

Best regards,

Hi Awais,


Thank you for your answer. I attached input data and results.
Non-breaking spaces gets converted to breaking spaces when I convert to PDF.

private static Document GenerateDoc(byte[] template, string xml)
{
var dataSet = new DataSet();

var xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xml);

XmlReader xmlReader = new XmlNodeReader(xmlDoc);
dataSet.ReadXml(xmlReader);

Document doc;
using (Stream stream = new MemoryStream(template))
{
doc = new Document(stream);
doc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveUnusedRegions | MailMergeCleanupOptions.RemoveUnusedFields;
doc.MailMerge.ExecuteWithRegions(dataSet);
}
return doc;
}


public byte[] GenerateWord(byte[] template, string xml)
{
var doc = GenerateDoc(template, xml);

using (var ms = new MemoryStream())
{
doc.Save(ms, SaveFormat.Docx);
return ms.ToArray();
}
}


Best regards,
Igor Shubin

Hi Igor,


Thanks for your inquiry. When converting your “result.docx” to PDF using Aspose.Words, I can see star symbols in second and third columns are not rendering on single lines as can be seen in attached “msw-2013.pdf”. Please confirm, if this is the issue you’re talking about?

Best regards,

Hi Awais,


Thank you for your response. The bug is - non-breaking spaces between stars in pdf doesn’t work correctly. But works in doc.

Best regards,
Igor Shubin

Hi Igor,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.2.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-11681. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

Hello,


Could we please have an update with regards to the fix terms? This fix is becoming a blocker for our Aspose usage.

Thank you,
Sigma Software Team
Hi Igor,

Thanks for your inquiry. Unfortunately, your issue is not resolved yet. Our product team has completed the analysis of this issue and the root cause has been identified. However, the implementation of the fix of this issue has been postponed till a later date.

We have also asked the ETA of this issue from our product team and will update you as soon as any estimates are available. We apologize for your inconvenience.

Best regards,

Hi Awais,


Any news on the ETA of this issue? This is getting really serious for us and is significantly affecting our Aspose experience.

We admit we weren’t expecting to communicate this issue for months…

Thanks,
Theo Ruzhynskyi
Project Manager
Sigma SE

Hi Theo,


Thanks for your inquiry. Unfortunately, this issue is not resolved yet. Our product team has completed the analysis of this issue and the root cause has been identified. Aspose.Words incorrectly breaks the lines because it currently ignores non-breaking spaces between the star symbols. Non-breaking spaces change the line breaking logic, but Aspose.Words currently does not handle them. There is no ETA available and the implementation of the fix of this issue has been postponed till a later date. We will inform you via this thread as soon as this issue is resolved. We apologize for your inconvenience.

Best regards,

Hello,

Any updates here? This issue is still blocking our businesses.

Thank you,
Theo Ruzhynskyi

Hi Theo,


Thanks for being patient. Unfortunately, your issue is still not resolved. We have passed your concern to our product team and will keep you informed of any developments. We apologize for your inconvenience.

Best regards,