XSL:FO Formatting issues .Net PDF

Aspose.PDF 23.9.0

We are trying to certify Aspose.PDF to replace our existing ibex/pdfsharp libraries, and we have noticed some very different formatting coming back from the pdfs we generate with Aspose. Attached is an xslt that has worked for us in the past that seems to be causing problems with Aspose. In the PDF that is generated (also attached), the title and bullet point items seem to be pushed far to the right. The only way we have been able to fix is to delete entire table cells.

Is there some configuration issue we need to set for our xslt file? Right now we are using the XSLCompileTransform api consistent with this code snipped below

Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense("Aspose.PDF.NET.lic");

XmlWriterSettings settings = new XmlWriterSettings
{
    OmitXmlDeclaration = true,
    Indent = false
};

XslCompiledTransform transform = new XslCompiledTransform(true);

using (XmlReader reader = XmlReader.Create(new StringReader(File.ReadAllText(xsltPath))))
{
    transform.Load(reader);
}

string transformedFoXsl = string.Empty;

using (MemoryStream xml = new MemoryStream())
using (UTF8StringWriter xmlWriterResults = new UTF8StringWriter())
using (XmlWriter xmlWriter = XmlWriter.Create(xmlWriterResults, settings))
{
    xmlDoc.Save(xml);
    xml.Position = 0;

    using (XmlReader reader = XmlReader.Create(xml))
    {
        transform.Transform(reader, xsltArgumentList, xmlWriter);
    }

    transformedFoXsl = xmlWriterResults.ToString();
}

File.WriteAllText(xsltFileName, transformedFoXsl);

using (var AsposePdfDocument = new Document(xsltFileName, new XslFoLoadOptions()))
{
    string outputPdfFileName = Path.ChangeExtension(Path.GetTempFileName(), "PDF");
    AsposePdfDocument.Save(outputPdfFileName, SaveFormat.Pdf);
}

tmpE4D1.PDF (195.6 KB)

Resulting pdf

xslt.zip (20.1 KB)

@juleshnihc

Would you please also share the expected/desired PDF result for our reference? It would help us in investigating the case accordingly.

Yes, attached is a new set of files

SupportFiles2.zip (176.6 KB)

@juleshnihc

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55660

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hello. Is there an update on this ticket?

Thanks

Jules

@juleshnihc

Sadly, the earlier logged ticket has not been yet resolved due to other issues in the queue. We will definitely prioritize the issue on first come first serve basis and as soon as we have some update regarding ticket resolution, we will inform you. Please spare us some time.

We are sorry for the inconvenience.

Hello,

Are there any updates to this xsl:fo formatting issue?

Thanks,

Jules

@juleshnihc

We are afraid that the earlier logged ticket has not been yet resolved. However, we will surely inform you as soon as we make some progress towards its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.