public virtual void PdfNamesTest() { PdfPrimitivesTest.RandomString rnd = new PdfPrimitivesTest.RandomString(16); for (int i = 0; i < 10000000; i++) { new PdfName(rnd.NextString()); } }
private PdfArray GeneratePdfArrayWithNames(PdfDocument doc, bool indirects) { PdfArray array = (PdfArray) new PdfArray().MakeIndirect(doc); PdfPrimitivesTest.RandomString rnd = new PdfPrimitivesTest.RandomString(6); for (int i = 0; i < DefaultArraySize; i++) { array.Add(new PdfName(rnd.NextString()).MakeIndirect(indirects ? doc : null)); } return(array); }