Hello,
This is Naga V
I am trying to convert xsl fo to pdf using aspose.pdf, but I am getting an exception “The given key was not present in dictionary”.
Please let me know how can I fix that.
The version of aspose that I am using is 17.5
Please find my code below-
try
{
Aspose.Pdf.XslFoLoadOptions xoptions = new Aspose.Pdf.XslFoLoadOptions();
xoptions.ParsingErrorsHandlingType = XslFoLoadOptions.ParsingErrorsHandlingTypes.TryIgnore;
string foFile = "sample.fo";
Aspose.Pdf.Document d = new Aspose.Pdf.Document(foFile, xoptions );
d.Save( "output.pdf" );
isRenderingOk = true;
}
catch ( PdfException e )
{
}
catch ( Exception e )
{
}
getting exception “The given key was not present in the dictionary”. please help me in fixing it.
Thanks,
Naga.