We are excited to announce the release of Spire.PDF 9.4.0. This version supports automatic font size setting for textbox form fields. Besides, it enhances the conversion from OFD to PDF and PDF to images. What’s more, many issues are fixed in this version, such as the issue that the content overlapped after replacing text. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREPDF-5747 | Supports automatic font size setting for textbox form fields.
PdfDocument pdf = new PdfDocument(); pdf.LoadFromFile(input); PdfFormWidget formWidget = pdf.Form as PdfFormWidget; foreach(PdfField field in formWidget.FieldsWidget.List) { if(field is PdfTextBoxFieldWidget) { PdfTextBoxFieldWidget textBoxField = field as PdfTextBoxFieldWidget; if(textBoxField.Name == "Name of the Company") { textBoxField.Font = new PdfTrueTypeFont(new Font("Arial", 16), true); textBoxField.FontSizeAuto = true; textBoxField.Text = "e-iceblue"; } } } pdf.SaveToFile(output); |
Bug | SPIREPDF-5785 | Fixes the issue that the content overlapped after replacing text. |
Bug | SPIREPDF-5801 | Fixes the issue that the text effect of setting adaptive font was incorrect. |
Bug | SPIREPDF-5804 | Fixes the issue that the converted OFD file was blank when opened with Jinrui OFD reader and Chaoyue ofd reader to view the content. |
Bug | SPIREPDF-5825 | Fixes the issue that the memory overflowed when converting PDF to images. |
Bug | SPIREPDF-5835 | Fixes the issue that the stamp was incorrect when converting OFD to PDF. |
Bug | SPIREPDF-5841 | Fixes the issue that the program threw AccessViolationException when converting PDF to images. |
Bug | SPIREPDF-5850 | Fixes the issue that the value of getting new metadata is null. |
Bug | SPIREPDF-5852 | Fixes the issue that the memory released mechanism of the PdfTrueTypeFont object. |
Bug | SPIREPDF-5864 | Fixes the issue that the program threw System.IndexOutOfRangeException when converting OFD to PDF. |
Bug | SPIREPDF-5868 | Fixes the issue that the colors were rendered incorrectly when converting PDF to images. |
Bug | SPIREPDF-5869 | Fixes the issue that the “checked” property in PdfCheckBoxWidgetFieldWidget was invalid. |
Bug | SPIREPDF-5876 | Fixes the issue that the content of the picture inside was lost when converting PDF to images. |
Bug | SPIREPDF-5881 | Fixes the issue that the the program threw System.NullPointerException when the Galaxy Kylin ARM system extracted PDF text. |
Click the link to download Spire.PDF 9.4.0:
More information of Spire.PDF new release or hotfix: