We are excited to announce the release of Spire.PDF 9.3.4. This version supports embedding fonts into PDF documents and creating "Show/Hide Fields" action. It also optimized the document compression function. Moreover, many known issues are fixed in this version, such as the issue that converting PDF to Word resulted in incorrect content. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREPDF-3933 | Supports embedding fonts into PDF documents.
PdEmbeddedFontConverter converter = new PdEmbeddedFontConverter ("InputFile"); convert.ToEmbeddedFontPdf("resultFile"); |
New feature | SPIREPDF-5396 | Supports creating "show/hide a field" action.
PdfDocument pdf = new PdfDocument(inputFile); pdf.LoadFromFile(inputFile); for (int c = 0; c < pdf.Pages.Count; c++) { PdfFormWidget formWidget = pdf.Form as PdfFormWidget; for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++) { PdfField field = formWidget.FieldsWidget.List[i] as PdfField; if (field is PdfButtonWidgetFieldWidget) { PdfButtonWidgetFieldWidget buttonWidget = field as PdfButtonWidgetFieldWidget; PdfHideAction hideAction = new PdfHideAction(buttonWidget.Name, true); buttonWidget.MouseDown = hideAction; } } } pdf.SaveToFile(outputFile); pdf.Dispose(); |
New feature | SPIREPDF-5769 | Optimizes the compression function.
PdfCompressor compressor = new PdfCompressor("1.pdf"); compressor.Options.TextCompressionOptions.UnembedFonts = true; compressor.Options.ImageCompressionOptions.CompressImage = true; compressor.Options.ImageCompressionOptions.ResizeImages = true; compressor.Options.ImageCompressionOptions.ImageQuality = ImageQuality.Low; compressor.CompressToFile("1_out.pdf"); |
Bug | SPIREPDF-5436 SPIREPDF-5743 | Fixes the issue that converting PDF to Word resulted in incorrect content. |
Bug | SPIREPDF-5519 | Fixes the issue that garbled text and boxes appeared when converting OFD to PDF. |
Bug | SPIREPDF-5702 | Fixes the issue that the created encrypted documents could not be opened on Android mobile devices with Adobe Reader after entering the correct password. |
Bug | SPIREPDF-5730 | Fixes the issue that single selection buttons lost the "default option" function after merging PDF documents. |
Bug | SPIREPDF-5738 | Fixes the issue that highlighted text was obstructed after converting to an image. |
Bug | SPIREPDF-5749 | Fixes the issue that the content was incorrect after converting PDF to images. |
Bug | SPIREPDF-5761 | Fixes the issue that content was incorrect after converting XPS to PDF. |
Bug | SPIREPDF-5766 | Fixes the issue that background color changed after converting PDF to images. |
Bug | SPIREPDF-5788 | Fixes the issue that red seal turned blue after drawing a PDF page as a template onto a new document. |
Bug | SPIREPDF-5790 | Fixes the issue that merging PDFs threw an exception "System.ArgumentOutOfRangeException". |
Bug | SPIREPDF-5797 | Fixes the issue that lines were missing after converting PDF to XPS. |
Bug | SPIREPDF-5798 | Fixes the issue that content was lost after converting PDF to Word. |
Bug | SPIREPDF-5805 | Fixes the issue that converting PDF to SVG threw an exception "System.ArgumentException: 'Parameter is not valid'". |
Bug | SPIREPDF-5809 | Fixes the issue that converting OFD to PDF threw an exception "System.IO.FileNotFoundException". |
Click the link to download Spire.PDF 9.3.4:
More information of Spire.PDF new release or hotfix: