Levon Alikhanov
Levon Alikhanov

Reputation: 103

Converting XML to PDF on .NET Framework 4.0

Can anyone help to solve this problem.

I can generate pdf files from xml using NFOP, which is a port from the Apache XML Project's FOP Java source to .NET's Visual J#.

But it doesn't work on .NET Framework 4.0.

Does anyone know an alternative solution?

Upvotes: 0

Views: 4281

Answers (1)

Levon Alikhanov
Levon Alikhanov

Reputation: 103

I solved this problem this way:

  1. Created an XSLT which transforms my XML to HTML using .NET XslCompiledTransform Class.
  2. I used the wkhtmltopdf (you can find it here) and my PDF file was ready.

P.S. wkhtmltopdf is a tool that is based on iText libraries.

Upvotes: 3

Related Questions