Hello,
we convert XML to PDF with the following code (Input XML and XLS (string in PdfGeneratorStrings.XmlToPdfDefaultXslt) is attached):
var options = new HtmlLoadOptions();
options.PageInfo.Height = PageSize.A4.Height;
options.PageInfo.Width = PageSize.A4.Width;
var xmlContent = File.ReadAllText(InputPackage.FileToConvertFullName);
using(var pdfDocument = new Document(TransformXmltoHtml(xmlContent, PdfGeneratorStrings.XmlToPdfDefaultXslt), options))
{
pdfDocument.Save(PackageGenerationResult.GeneratedPdf);
}
The result is the attached PDF. Only the first tag is displayed and only values in between.
What are we doing wrong?
Files.zip (57.2 KB)
Best regards,
Andy
@AStelzner
Would you please share an expected output PDF document for our reference as well? We will further proceed to assist you accordingly.
Hello,
open the attached XML with a Browser, than you get the expected PDF output by yourself Our XSL ist he IE5 XSL.
I attached a partial screenshot of my browser output.
Expected.zip (73.7 KB)
Kind Regards,
Andy
Additional info:
We want the converted PDF to look just like it does in a browser.
@AStelzner
We have logged an issue as PDFNET-52010 in our issue tracking system for the sake of further investigation. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.
We are sorry for the inconvenience.