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

Pdf generation taking long time

$
0
0
Hi 

I'm generating a very small document with Aspose Trial version. And it turns out that pdf generation from html is taking 900 milliseconds. 

Please review the code and html and let me know if i'm doing something wrong or this is the actual performance of ASPOSE library for given input and output.

The input html also include a picture for logo.

Code:

string dataDir = Path.GetFullPath("HtmlTemplate.html");                   

                    Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();

                    Aspose.Pdf.Generator.Section section = pdf.Sections.Add();

                    StreamReader sr = File.OpenText(dataDir);

                    Aspose.Pdf.Generator.Text tempText = newAspose.Pdf.Generator.Text(section, sr.ReadToEnd());

                    tempText.IsHtmlTagSupported = true;

                    section.Paragraphs.Add(tempText);

                    pdf.Save(@"C:\NewGenerateFile.pdf");


HTML Input template attached: 1.rar 

Regards,
Deepak

Viewing all articles
Browse latest Browse all 1038

Trending Articles