我有一个HTML表,我将itextsharp与HTMLWorker一起用于在PDF上导出
我需要折叠所有行,因为现在行距太远了,我该怎么办?
我试图放入HTML折叠,cellspacing和cellpadding,但没有结果
Document doc = new Document(PageSize.A4, 25, 25, 20, 20);
PdfWriter oPdfWriter = PdfWriter.GetInstance(doc, ms);
HTMLWorker htmlWorker = new HTMLWorker(doc);
htmlWorker.SetStyleSheet(css);
doc.Open();
htmlWorker.StartDocument();
htmlWorker.Parse(txtReader);
htmlWorker.EndDocument();
htmlWorker.Close();
doc.Close();
bPDF = ms.ToArray();