您好:
Aspose.Pdf.Text.TextState中的HorizontalScaling,是否能做到分散對齊(Disperse)??
使用的Aspose.pdf版本為Version: 20.9
謝謝
您好:
Aspose.Pdf.Text.TextState中的HorizontalScaling,是否能做到分散對齊(Disperse)??
使用的Aspose.pdf版本為Version: 20.9
謝謝
您好:
'Share The Source Code*********
Dim doc As New Aspose.Pdf.Document
Dim page As Aspose.Pdf.Page
Dim pTable As New Aspose.Pdf.Table
page = doc.Pages.Add
pTable.ColumnWidths = “50 50 50 50 50 50”
pTable.Border = New Aspose.Pdf.BorderInfo(BorderSide.All, 0.5F, Color.FromRgb(System.Drawing.Color.Blue))
pTable.DefaultCellBorder = New Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, 0.5F, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Red))
Dim row As Aspose.Pdf.Row
Dim textstate1 As New Aspose.Pdf.Text.TextState
textstate1.HorizontalAlignment = HorizontalAlignment.center
row = pTable.Rows.Add
row.Cells.Add(“欄位1”)
row.Cells.Add(“欄位2”)
row.Cells(1).DefaultCellTextState = textstate1
row.Cells.Add(“欄位3”)
row.Cells.Add(“欄位4”)
row.Cells.Add(“欄位5”)
row.Cells.Add(“欄位6”)
doc.Pages(1).Paragraphs.Add(pTable)
Dim resultName As String = “test_001.pdf”
Dim PrnDir As String = SystemPath & “\reportData”
’ 判斷路徑是否存在,無則建立 必要項
Dim DirectoryInfo = New DirectoryInfo(PrnDir)
If Not DirectoryInfo.Exists Then DirectoryInfo.Create()
doc.Save(PrnDir & resultName, Aspose.Pdf.SaveFormat.Pdf)
'Share The Source Code*********
您好:
感謝您建議的方法,有實作於cell 與 文字中的HorizontalAlignment.FullJustify與HorizontalAlignment.Justify,目前仍是無法達到我想要的功能。
是否有Simple code,對於HorizontalAlignment.FullJustify的效果展示??
謝謝
我们可以注意到我们的API既不尊重Jsutify也不支持FullJustify对齐方式。因此,我们在问题管理系统中将问题记录为PDFNET-48779。我们将进一步调查其详细信息,并让您了解其解决状态。请给我们一些时间。
我们对造成的不便很抱歉。