We're pleased to announce the release of Spire.PDF 11.4.10. This version supports printing using .NET Standard DLL and retrieving PdfHideAction in buttons. Moreover, some known issues that occurred when converting PDF to images and saving files have also been successfully fixed. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | SPIREPDF-7372 | Supports retrieving PdfHideAction in buttons.
//Initialize an instance of the PdfDocument instance
PdfDocument doc = new PdfDocument();
//Load a PDF document
doc.LoadFromFile(inputFile);
//Initialize an instance of the StringBuilder class
StringBuilder sb = new StringBuilder();
//Get the form from the document
PdfFormWidget formWidget = doc.Form as PdfFormWidget;
//Iterate through all fields in the form
for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
{
PdfField field = formWidget.FieldsWidget.List[i] as PdfField;
//Get the ButtonField
if (field is PdfButtonWidgetFieldWidget)
{
PdfButtonWidgetFieldWidget buttonField = field as PdfButtonWidgetFieldWidget;
// Get the field name
string filename = buttonField.Name;
// Get the action
PdfAction action = buttonField.Actions.MouseDown;
if (buttonField.Actions.MouseDown != null && buttonField.Actions.MouseDown is PdfHideAction)
{
var btnAction = (PdfHideAction)buttonField.Actions.MouseDown;
sb.AppendLine(filename + "-MouseDown-Hide-" + btnAction.IsHide.ToString());
sb.AppendLine(filename + "-MouseDown-fname-" + btnAction.FieldName[0].ToString());
}
}
}
File.WriteAllText(outputFile, sb.ToString());
doc.Dispose();
|
| New feature | SPIREPDF-7376 SPIREPDF-7391 SPIREPDF-7467 | Supports printing on Windows and Linux systems using .NET Standard DLL.
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(pdffile);
doc.PrintSettings.SelectPageRange(1, 5);
if(doc.PrintSettings.CanDuplex)
{
doc.PrintSettings.Duplex = PdfDuplex.Vertical;
}
doc.Print();
|
| Bug | SPIREPDF-7361 | Fixes the issue that adding PdfTextMarkupAnnotation produced incorrect effects. |
| Bug | SPIREPDF-7380 | Fixes the issue where the text was garbled when converting PDF to images. |
| Bug | SPIREPDF-7388 | Fixes the issue where the application threw the “NullReferenceException” when accessing PdfDocumentLinkAnnotationWidget.Destination. |
| Bug | SPIREPDF-7414 | Fixes the issue where the text was truncated when entering multi-line content into PdfTextBoxField. |
| Bug | SPIREPDF-7420 | Fixes the issue where the application threw the “PdfDocumentException” when using the PdfDocument.IsPasswordProtected() method. |
| Bug | SPIREPDF-7424 | Fixes the issue where the application threw the “ArgumentOutOfRangeException” when converting PDF to images. |
| Bug | SPIREPDF-7426 | Fixes the issue that the/DA structure was incorrect in TextBox fields. |
| Bug | SPIREPDF-7429 | Fixes the issue where the application threw the "Empty convert-string" error when saving PDF documents. |
| Bug | SPIREPDF-7431 | Fixes the issue where the result was incorrect when setting FieldsWidget.BorderColor = PdfRGBColor.Empty. |
Click the link to download Spire.PDF 11.4.10:
More information of Spire.PDF new release or hotfix: