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

Free Support Forum - aspose.com

How to style a PDF using XML and XSL

Hey All,

I am using .NET .C# and with a stored proc have created an XML document. I have an XSL-FO stylesheet that I want to apply to that XML doc but am not sure how to do this....

Tried pdf.BindXML(xmlDoc,xsl);

but get ............

[ArgumentException: Illegal characters in path.]
System.IO.Path.CheckInvalidPathChars(String path) +7493237
System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) +85
System.IO.Path.NormalizePath(String path, Boolean fullCheck) +36
System.IO.Path.GetFullPathInternal(String path) +21
System.IO.Directory.GetParent(String path) +27
Aspose.Pdf.Pdf.BindXML(String xmlFile, String xslFile) +17

Any Ideas /tips/ suggestions????

Craig

Hello Craig,

Thanks for considering Aspose.

In order to transform and XML and XSL-FO file into PDF format, please try using Pdf.BindFO(..) method. For more related information, please visit Converting Xsl-Fo to PDF (Beta Version)

In case it does not resolve your problem, please make sure that the path information provided for input files is correct (is accessible). We apologize for your inconvenience.