Spire.PDFViewer 7.12.3のリリースをお知らせいたします。このバージョンでは、WinFormプロジェクトで「Ctrl+スクロール」によるズームをサポートしています。また、テキストコンテンツが表示できない問題が修正されました。詳細は以下の内容を読んでください。
このリリースで行われた変更のリストは次のとおりです
カテゴリー | ID | 説明 |
New feature | SPIREPDFVIEWER-579 | WinFormプロジェクトで「Ctrl+スクロール」によるズームをサポートしています。
this.KeyPreview = true; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown); this.KeyUp += new System.Windows.Forms.KeyEventHandler(Form1_KeyUp); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(Form1_MouseWheel); private bool m_PressCtrl = false; private float m_ZoomFactor = 1.0f; private void Form1_KeyDown(object sender, KeyEventArgs e) { m_PressCtrl = e.Control; } private void Form1_KeyUp(object sender, KeyEventArgs e) { m_PressCtrl = false; } private float[] array = new float[] { 0.5f, 0.75f, 1f, 1.25f, 1.5f, 2f, 4f }; private int index = 2; private void Form1_MouseWheel(object sender, MouseEventArgs e) { if (m_PressCtrl) { if (e.Delta > 0) { index = index < 6 ? index + 1 : 6; } if (e.Delta < 0) { index = index == 0 ? 0 : index - 1; } this.pdfViewer1.SetZoomFactor(array[index]); } } |
Bug | SPIREPDFVIEWER-577 | テキストコンテンツが表示できない問題が修正されました。 |
ここで Spire.PDFViewer 7.12.3をダウンロードする