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"?>
<Pdf xmlns="Aspose.Pdf" DestinationType="FitBox">
<Section PageSize="A4" PageMarginTop="1.5cm" PageMarginRight="1.5cm" PageMarginLeft="1.5cm" PageMarginBottom="1.5cm" >
<Text>
<Segment> test</Segment>
</Text>
<Text>
<Segment>word1</Segment>
<Segment> word2</Segment>
</Text>
<Text>
<Segment>word1 </Segment>
<Segment>word2</Segment>
</Text>
</Section>
</Pdf>
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!