我想在表格中为PdfpCell设置宽度,我想设计这个我写这段代码PdfPCellcell;PdfGridtableHeader;PdfGridtmpTable;PdfGridtable=newPdfGrid(numColumns:1){WidthPercentage=100,RunDirection=PdfWriter.RUN_DIRECTION_LTR,ExtendLastRow=false};stringimagepath2=HttpRuntime.AppDomainAppPath+"Header.JPG";cell=newPdfPCell(){Border=0,RunDirect
如何使用iTextSharp隐藏表格边框。我正在使用以下代码生成文件:vardocument=newDocument(PageSize.A4,50,50,25,25);//CreateanewPdfWriterobject,specifyingtheoutputstreamvaroutput=newMemoryStream();varwriter=PdfWriter.GetInstance(document,output);document.Open();PdfPTabletable=newPdfPTable(3);varbodyFont=FontFactory.GetFont("Ar
如何使用iTextSharp隐藏表格边框。我正在使用以下代码生成文件:vardocument=newDocument(PageSize.A4,50,50,25,25);//CreateanewPdfWriterobject,specifyingtheoutputstreamvaroutput=newMemoryStream();varwriter=PdfWriter.GetInstance(document,output);document.Open();PdfPTabletable=newPdfPTable(3);varbodyFont=FontFactory.GetFont("Ar
我试图弄清楚如何让PdfPCell中的文本显示在中间。我尝试了很多不同的选择,例如:myCell.VerticalAlignment=Element.ALIGN_MIDDLE;myCell.VerticalAlignment=PdfPCell.ALIGN_MIDDLE;myCell.VerticalAlignment=Rectangle.ALIGN_MIDDLE;Noneofthatworksforme.VerticalAlignmenttakesanint,soItriedtomakealoop,toseeificouldfindtherightnumber,buteverythin