When we edit the file via Spire.PDF, Spire.PDF removes the borders.
Manually edited;
Spire.PDF
- Code: Select all
using (PdfDocument pdfDocument = new PdfDocument())
{
pdfDocument.LoadFromStream(source);
PdfFormWidget formWidget = pdfDocument.Form as PdfFormWidget;
...
for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
{
PdfField field = formWidget.FieldsWidget.List[i] as PdfField;
....
switch (field)
{
case PdfTextBoxFieldWidget textbox:
(value, tagFound) = GetMatchingField(value, tagHash);
textbox.Text = value;
....
pdfDocument.SaveToStream(output, Spire.Pdf.FileFormat.PDF);
Please let us know if there is a workaround or hotfix we can use.
Note: Using .NET 4.8 with Spire.PDF 10.3.7