Add some text in PDF

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I have simple requirment of adding few static text to PDF invoices, somebody please help..
13 years ago
where do you need the text to appear ?
13 years ago
Below the Date on the top right.
13 years ago
using Visual Studio

find PDFHelper.cs in

nopCommerce_1.80_Source\Libraries\Nop.BusinessLogic\Utils

and find the line you want and add the text in bold

            ordRow[rownum].AddParagraph(SettingManager.StoreUrl.Trim(new char[] { '/' })).AddHyperlink(SettingManager.StoreUrl, HyperlinkType.Url);
            ordRow[rownum].AddParagraph(String.Format(LocalizationManager.GetLocaleResourceString("PDFInvoice.OrderDate", languageId), DateTimeHelper.ConvertToUserTime(order.CreatedOn, DateTimeKind.Utc).ToString("D")));

            ordRow[rownum].AddParagraph("your custom text");

            if(File.Exists(PDFHelper.LogoFilePath))
            {
                ordRow[0].AddImage(PDFHelper.LogoFilePath);
            }


You will need to recompile the solution for the change to take effect

- hayden
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.