Hi,
I am trying to use Aspose.Pdf.HtmlFragment with Aspose.PDF DOM to create PDF where I am passing large string with HTML tags in it.
Aspose PDF performance
seems horrible and I am unable to see PDF file generated at all when HTML string reaches certain length(I guess) , I have waited more than 10 minutes in some instance.
Below is the string that I was using to test it .
PDF is generated as expected until I add text highlighted in red below.
We have use case where our strings that we want to put in PDF at times are very large with inline styles and this issue is giving us a lot of headaches.
Apose version 10.7.0.0 with License version 3.0
Aspose.Pdf.HtmlFragment verbiageContentString = new HtmlFragment(verbiageContentHtmlString);
Aspose.Pdf.Paragraphs paragraphs = curPage.Paragraphs;
paragraphs.Add(verbiageContentString);
//below is the test string used for reference
string verbiageContentHtmlString =
"
NATIONAL
\nPRICE LIST
" +"
To speak with a Customer Service Representative:
" +“
PAYMENT TERMS: Net 10 days from the invoice date. Prices shown are subject to change without notice.
” +"
ORDER DEFINITION: An order is defined as an individual purchase order of at least 5,000 lbs. of product submitted for " +
“delivery to one location for shipment within 10 business days. All orders are subject to confirmation.
"
To speak with a Customer Service Representative:
" +“
PAYMENT TERMS: Net 10 days from the invoice date. Prices shown are subject to change without notice.
” +"
ORDER DEFINITION: An order is defined as an individual purchase order of at least 5,000 lbs. of product submitted for " +
“delivery to one location for shipment within 10 business days. All orders are subject to confirmation.
"
To speak with a Customer Service Representative:
" +“
PAYMENT TERMS: Net 10 days from the invoice date. Prices shown are subject to change without notice.
” +"
ORDER DEFINITION: An order is defined as an individual purchase order of at least 5,000 lbs. of product submitted for " +
“delivery to one location for shipment within 10 business days. All orders are subject to confirmation.
"
To speak with a Customer Service Representative:
" +“
PAYMENT TERMS: Net 10 days from the invoice date. Prices shown are subject to change without notice.
” +"
ORDER DEFINITION: An order is defined as an individual purchase order of at least 5,000 lbs. of product submitted for " +
“delivery to one location for shipment within 10 business days. All orders are subject to confirmation.
"
To speak with a Customer Service Representative:
" +“
PAYMENT TERMS: Net 10 days from the invoice date. Prices shown are subject to change without notice.
” +"
ORDER DEFINITION: An order is defined as an individual purchase order of at least 5,000 lbs. of product submitted for " +
“delivery to one location for shipment within 10 business days. All orders are subject to confirmation.
"
To speak with a Customer Service Representative:
" +“
PAYMENT TERMS: Net 10 days from the invoice date. Prices shown are subject to change without notice.
” +"
ORDER DEFINITION: An order is defined as an individual purchase order of at least 5,000 lbs. of product submitted for " +
“delivery to one location for shipment within 10 business days. All orders are subject to confirmation.
"
END
";