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


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();

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

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


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