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

Free Support Forum - aspose.com

Im getting an error when saving to this pdf

Im getting an error when writing to the pdf on this code.
On the attached files.
Using version 7 of aspose.pdf , it is hanging on the pdf.Save(ms);

var pdf = new Pdf();
var section = pdf.Sections.Add();

using (StreamReader r = File.OpenText(fileToCombine))
var htmlText = replaceUnsupportedFontsInHTMLText(r.ReadToEnd());
var text2 = new Text(section, htmlText);
text2.IsHtmlTagSupported = true;

var ms = new MemoryStream();
var pdfDocument = new Document(ms);
foreach (Page page in pdfDocument.Pages)

When i download version 9
it is not hanging but it breaking on document.Pages.Add(page);
{“At most 4 elements (for any collection) can be viewed in evaluation mode.”}

Hi Edmund,

Thanks for your inquiry. You are getting the evaluation mark because either you have not applied license properly or testing the API without any license. If you have a valid license then please double check its implementation. Otherwise make a request for 30 days temporary license to evaluate our product without any limitation. Hopefully your issue will be resolved.

Please feel free to contact us for any further assistance.

Best Regards,