Spire.PDF 10.12.4 supports setting automatic rotation orientation when performing multi-page printing

Spire.PDF 10.12.4 supports setting automatic rotation orientation when performing multi-page printing

2024-12-18 02:09:25

We are excited to announce the release of Spire.PDF 10.12.4. The latest version supports setting automatic rotation orientation when performing multi-page printing. Besides, some known bugs are fixed successfully in this update, such as the issue that content lost when printing PDF documents. More details are listed below. Here is a list of changes made in this release.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-7034 Supports setting automatic rotation orientation when performing multi-page printing.
PdfMultiPageLayout printParameters = pdf.PrintSettings.SelectMultiPageLayout(1, 2);
printParameters.AutoRotate = true;
pdf.PrintSettings.Duplex = Duplex.Horizontal;
New feature SPIREPDF-7197 Supports retrieving the jump-to page associated with a button.
PdfDocument doc = new PdfDocument();
		doc.LoadFromFile(inputFile);
		PdfFormWidget formWidget = (PdfFormWidget)doc.Form;
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.AppendLine("btnAction:");
		for (int i = 0; i < formWidget.FieldsWidget.Count; ++i)
		{
				var field = formWidget.FieldsWidget[i] as PdfButtonWidgetFieldWidget;
				if (field.Actions.MouseUp != null && field.Actions.MouseUp is PdfNamedAction)
				{
					var mouseUp = (PdfNamedAction)field.Actions.MouseUp;
					stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseUp-" + mouseUp.Destination.ToString());
				}
				else if (field.Actions.MouseDown != null && field.Actions.MouseDown is PdfNamedAction)
				{
					var mouseDown = (PdfNamedAction)field.Actions.MouseDown;
					stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseDown--" + mouseDown.Destination.ToString());
				}
				else if (field.Actions.MouseDown != null && field.Actions.MouseDown is PdfUriAction)
				{
					var mouseDown = (PdfUriAction)field.Actions.MouseDown;
					stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseDown--" + mouseDown.Uri.ToString());
				}
				else if (field.Actions.MouseUp != null && field.Actions.MouseUp is PdfUriAction)
				{
					var mouseUp = (PdfUriAction)field.Actions.MouseUp;
					stringBuilder.AppendLine(formWidget.FieldsWidget[i].Name + "-MouseUp-" + mouseUp.Uri.ToString());
				}

		}
		File.WriteAllText(outputFile, stringBuilder.ToString());
		doc.Dispose();
Bug SPIREPDF-7169 Fixes the issue that content was lost when printing PDF documents.
Bug SPIREPDF-7182 Fixes the issue that colors were incorrect when printing PDF documents.
Bug SPIREPDF-7185 Fixes the issue that form field flattening failed.
Bug SPIREPDF-7195 Fixes the issue that the System.NullReferenceException: 'Object reference not set to an instance of an object.' occurred when converting PDF to SVG.
Bug SPIREPDF-7203 Fixes the issue that text content missed when converting PDF to images.
Bug SPIREPDF-7208 Fixes the issue that the generated PDFA documents did not comply with PDF version standards.
Bug SPIREPDF-7232 Fixes the issue that only the watermark on the first page could be deleted when removing PdfWatermarkAnnotationWidget.
Bug SPIREPDF-7240 Fixes the issue that the System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' occurred when converting PDF to PDFA3A.
Click the link to download Spire.PDF 10.12.4:
More information of Spire.PDF new release or hotfix: