I deal with dynamic input text, so pages must be dynamically created. If page 1 is already full, it should be written to a new page, so this means that I can have page 2, page 3, etc. Depending on the data being processed.
My text is currently truncated. Page 1 only, other data not recorded.
My current code is below:
theDoc.Page = theDoc.AddPage();
theDoc.AddImageHtml(html, true, 826, true);
while (theDoc.GetInfo(theID, "Truncated") == "1")
{
theDoc.Page = theDoc.AddPage();
theDoc.AddImageHtml(html, true, 826, true);
}
String pdfFilePath = WebConfigurationManager.AppSettings["pdfFilePath"];
Guid fileName = Guid.NewGuid();
pdfLink = pdfFilePath + fileName.ToString() + ".pdf";
theDoc.Save(pdfLink);
theDoc.Clear();
the html variable contains all the data (web page), maybe something in my while loop. Any help is appreciated! Thanks
source
share