Hi
I am using Aspose PDF generator v8.5, using the XML method, and I am experiencing an odd problem with paragraph indenting under certain circumstances.
The contributing factors seem to be:
- Set the Section PageGutterSize and PageGutterPlacement attributes.
- Include content that runs to a second page (either by manual page break, or simply overflowing the first)
- On the second page include one or more paragraphs (Text) with the IsKeptWithNext attribute set to true
The problem manifests in the paragraph immediately following the paragraph with the IsKeptWithNext property rendering indented from the left margin. Not even manually setting the MarginLeft attribute will bring the paragraph back into line.
Am I doing something wrong, or is this an obscure bug in the PDF generator? I have attached an XML file that demonstrates the issue.
The C# code I use to transform the XML into PDF is as follows:
LoadAsposeLicense();Pdf pdf = new Pdf(); pdf.BindXML(xmlFileName, null);Document doc = new Document(pdf); doc.Save(pdfFileName); OpenDocument(pdfFileName);
UPDATE: I forgot to mention, I'm using Visual Studio 2010, .NET 4.0.
Thanks in advance for any insight anyone can offer.
Chris Fairall.