Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

IsKeptWithNext not working

$
0
0
Hi,

I seem to be having problems with IsKeptWithNext, it doesn't do anything (in some situations at least).

I am generating the pdf from xml using Aspose.Pdf 6.4 .NET 4 version, test sample xml & pdf are attached, code is as follows:

         Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
         string xmlFile = HttpContext.Server.MapPath("~/App_Data/Test" + id + ".xml");

         pdf.BindXML(xmlFile, null);

         System.IO.MemoryStream ms = new System.IO.MemoryStream();
         pdf.Save(ms);

         return new FileContentResult(ms.ToArray(), "application/pdf") { FileDownloadName = "Test" + id + ".pdf" };

Regards,
Patrick


Viewing all articles
Browse latest Browse all 3131

Trending Articles