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

Free Support Forum - aspose.com

Leading spaces were missed after data has been exported to pdf

Hi Guys,
Could you please assist with next:
Leading spaces were missed after pdf was created.
For example I have this xml markup:
<?xml version="1.0" encoding="utf-8"?>
test
word1
word2
word1
word2
I expected the output should be like that:
test
word1 word2
word1 word2
But in fact the result has the next view:
test
word1word2
word1 word2
Only trailing spaces are left. All leading spaces were removed. Is that correct? How I can bypass such behaviour?
Pdf was created in such way:
var pdf = new Aspose.Pdf.Generator.Pdf();
pdf.BindXML("leadingspacetest.xml", null);
pdf.Save("leadingspacetest.pdf");
Test files are attached.
Thanks in advance!

Hi Bazaleev,

Thanks for your inquiry. While testing the scenario with your shared document, we have managed to reproduce the issue with latest version of Aspose.Pdf for .NET 9.8.0. We have logged a ticket PDFNEWNET-37852 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,