Hi,
We have a requirement to display the text in pdf document in "Arial". We have multiple text paragrahs (added 20 paragraphs) added to section. If we set "FoneName" of pdf object, it is not reflecting. We tried to set this property for both pdf and section objects. If we set the same property to individual Text object, then it is reflecting in the generated pdf.
Aspose.Pdf.Generator.Pdf testPdf = new Pdf();
Aspose.Pdf.Generator.Section testsec = testPdf.Sections.Add();
testPdf.TextInfo.FontName = "Arial"; -------- not reflecting in pdf document
testsec.TextInfo.FontName = "Arial"l; -------- not reflecting in pdf document
Text text1 = new Text("this is sample test");
text1.TextInfo.FontName = "Arial"l; ----------reflecting in pdf document
testsec.Paragraphs.Add(text1);
Could you please suggest a solution to set font name to all text paragraphs (20 paragraphs) in single line code?
Regards,
Surya
We have a requirement to display the text in pdf document in "Arial". We have multiple text paragrahs (added 20 paragraphs) added to section. If we set "FoneName" of pdf object, it is not reflecting. We tried to set this property for both pdf and section objects. If we set the same property to individual Text object, then it is reflecting in the generated pdf.
Aspose.Pdf.Generator.Pdf testPdf = new Pdf();
Aspose.Pdf.Generator.Section testsec = testPdf.Sections.Add();
testPdf.TextInfo.FontName = "Arial"; -------- not reflecting in pdf document
testsec.TextInfo.FontName = "Arial"l; -------- not reflecting in pdf document
Text text1 = new Text("this is sample test");
text1.TextInfo.FontName = "Arial"l; ----------reflecting in pdf document
testsec.Paragraphs.Add(text1);
Could you please suggest a solution to set font name to all text paragraphs (20 paragraphs) in single line code?
Regards,
Surya