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

Free Support Forum - aspose.com

Generate PDF from XML using Aspose.PDF for .NET - PDF is limiting to single page

Hi,

I have an xml Document which is of 6 Pages. when I am trying to convert pdf. Content is limiting to single page pdf and overrlapping. Below is the code snippet
Aspose.Pdf.License lic = new Aspose.Pdf.License();
lic.SetLicense(“Aspose.Pdf.lic”);

                Aspose.Pdf.Generator.Pdf scenarioExportPDF = new Aspose.Pdf.Generator.Pdf();
                XmlDocument xmlDoc = new XmlDocument();
                scenarioExportPDF.PageSetup.Margin.Left = 0;
                scenarioExportPDF.PageSetup.Margin.Right = 0;
                xmlDoc.LoadXml(exportScenaroioXML);
                scenarioExportPDF.BindXML(xmlDoc, null);
                scenarioExportPDF.Save(msExportScenarioStream); // save to stream     

Aspose File version: 11.4.0.0
Expected is 6 pages of PDF
Appreciate your help!.

@rkbhuvanagiri

Would you kindly share your sample XML file with us? We will test the scenario in our environment and address it accordingly.