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

Free Support Forum - aspose.com

Import Xml using Aspose.PDF

This bug still occures in last version,

Invalid XML header is still generated: <?xml version="1.0" encoding="utf-8"?>

Package .NET Aspose.PDF 22.4

Can you please help us ?

Current hack:

                var xfdfStr = Encoding.UTF8.GetString(xfdfMs.ToArray()).Trim('?').Replace("<?xml","<xml").Replace("?>",">"); // Fix ASPOSE Bug for UTF8 encoding



To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input PDF and XML documents.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.