Spire.Office 10.10.0 のリリースをお知らせいたします。このバージョンでは、Spire.Doc が Word ファイルから特定のページを抽出して別ファイルとして保存する機能をサポートしました。 Spire.XLS は Office のクラウドフォントキャッシュの読み取りに対応し、Spire.Presentation はオーディオのフェードインおよびフェードアウトの時間を設定できるようになりました。また、Spire.PDF ではタイムスタンプサービスの URL 検証機能が追加されています。さらに、既知の不具合が多数修正されています。詳細は以下をご覧ください。
本バージョンには、以下の最新バージョンのコンポーネントが含まれています:Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer。
DLL バージョン:
- Spire.Doc.dll v13.10.3
- Spire.Pdf.dll v11.10.4
- Spire.XLS.dll v15.10.3
- Spire.Presentation.dll v10.10.7
- Spire.Barcode.dll v7.4.1
- Spire.Email.dll v6.6.3
- Spire.DocViewer.Forms.dll v8.9.4
- Spire.PdfViewer.Asp.dll v8.2.6
- Spire.PdfViewer.Forms.dll v8.2.6
- Spire.Spreadsheet.dll v7.5.2
- Spire.OfficeViewer.Forms.dll v8.8.0
- Spire.DataExport.dll v4.9.0
- Spire.DataExport.ResourceMgr.dll v2.1.0
ここで Spire.Office 10.10.0をダウンロードする:
このリリースで行われた変更点の一覧は以下のとおりです
Spire.Doc
| カテゴリー | ID | 説明 |
| 新機能 | SPIREDOC-11429 | ドキュメントから指定したページ範囲を抽出するための ExtractPages(int index, int count) メソッドを追加しました。
Document doc = new Document();
doc.LoadFromFile("sample.docx");
Document extractPage = doc.ExtractPages(0, 1);
extractPage.SaveToFile("result.docx"); |
| バグ修正 | SPIREDOC-11174 | Word から PDF への変換時にレイアウトが正しく表示されない問題を修正しました。 |
| バグ修正 | SPIREDOC-11408 | Word から PDF への変換時に表のスタイルが正しくレンダリングされない問題を修正しました。 |
| バグ修正 | SPIREDOC-11527 | Word から PDF への変換時にフォントが正しく表示されない問題を修正しました。 |
| バグ修正 | SPIREDOC-11541 | Markdown ストリームを読み込む際に “System.NotSupportedException” 例外が発生する問題を修正しました。 |
| バグ修正 | SPIREDOC-11544 | Word から PDF への変換時にテキスト位置がずれる問題を修正しました。 |
| バグ修正 | SPIREDOC-11552 | ページ数を取得する際に “System.ArgumentException: Parent cannot be null” 例外が発生する問題を修正しました。 |
| バグ修正 | SPIREDOC-11553 | Word ドキュメントを保存する際、表内の編集制限領域が正しく保持されない問題を修正しました。/td> |
Spire.XLS
| カテゴリー | ID | 説明 |
| 新機能 | SPIREXLS-5979 SPIREDOC-10058 |
システムフォントディレクトリおよびメモリ内フォントに加えて、Office のキャッシュされたクラウドフォントをデフォルトで読み取る機能を追加しました。 |
| 仕様変更 | - | AddDigitalSignature() および IDigitalSignatures.Add() メソッドのパラメータリストを変更しました。
旧: AddDigitalSignature(X509Certificate2 certificate, string comments, DateTime signTime) 新: AddDigitalSignature(string certificatePath, string certificatePassword, string comments, DateTime signTime) |
| バグ修正 | SPIREXLS-5908 | Excel ファイルを PDF に変換する際に、余分な空白ページが生成される問題を修正しました。 |
| バグ修正 | SPIREXLS-5918 SPIREDOC-10083 |
XLSB ファイルを読み込む際に “ArgumentOutOfRangeException” が発生する問題を修正しました。 |
| バグ修正 | SPIREXLS-5933 | HTML 文字列を追加する際に “FormatException” が発生する問題を修正しました。 |
| バグ修正 | SPIREXLS-5985 | FILTER 関数を含むファイルを Microsoft Excel で開くとエラーが発生する問題を修正しました。 |
Spire.Presentation
| カテゴリー | ID | 説明 |
| 新機能 | SPIREPPT-2988 | オーディオのフェードインおよびフェードアウト時間を設定する機能を追加しました。
// New Append Audio
Presentation pres = new Presentation();
FileStream from_stream = File.OpenRead(inputFile);
RectangleF audioRect = new RectangleF(50, 50, 100, 100);
IAudio audio = pres.Slides[0].Shapes.AppendAudioMedia(from_stream, audioRect);
// Set the duration of the starting fade for 13s
audio.FadeInDuration = 13000f;
// Set the duration of the ending fade for 40s
audio.FadeOutDuration = 10000f;
pres.SaveToFile(outputFile, FileFormat.Pptx2013);
// Retrieve existing documents
FileStream from_stream = File.OpenRead(inputFile);
Presentation presentation = new Presentation();
presentation.LoadFromStream(from_stream, FileFormat.Auto);
foreach (IShape shape in presentation.Slides[0].Shapes)
{
if (shape is IAudio)
{
IAudio audio = shape as IAudio;
// Set the duration of the starting fade for 13s
audio.FadeInDuration = 13000f;
// Set the duration of the ending fade for 20s
audio.FadeOutDuration = 20000f;
}
}
presentation.SaveToFile(outputFile, FileFormat.Pptx2013); |
| 新機能 | SPIREPPT-2990 | オーディオのトリミング(切り取り)機能を追加しました。
// New Append Audio
Presentation pres = new Presentation();
FileStream from_stream = File.OpenRead(inputFile);
RectangleF audioRect = new RectangleF(50, 50, 100, 100);
IAudio audio = pres.Slides[0].Shapes.AppendAudioMedia(from_stream, audioRect);
// Set the start trimming time 8 seconds
audio.TrimFromStart = 8000f;
// Set the end trimming time 13 seconds
audio.TrimFromEnd = 13000f;
pres.SaveToFile(outputFile, FileFormat.Pptx2013);
// Retrieve existing documents
FileStream from_stream = File.OpenRead(inputFile);
Presentation presentation = new Presentation();
presentation.LoadFromStream(from_stream, FileFormat.Auto);
foreach (IShape shape in presentation.Slides[0].Shapes)
{
if (shape is IAudio)
{
IAudio audio = shape as IAudio;
// Set the start trimming time 8 seconds
audio.TrimFromStart = 8000f;
// Set the end trimming time 13 seconds
audio.TrimFromEnd = 13000f;
}
}
presentation.SaveToFile(outputFile, FileFormat.Pptx2013); |
| 新機能 | SPIREPPT-3002 | 表の透明度を設定する機能を追加しました。
table.Fill.Transparency = 0.5f; // Value range is 1-0, table default color is black // Need to set specific table color, set color code as follows: table[0, 0].FillFormat.FillType = Spire.Presentation.Drawing.FillFormatType.Solid; table[0, 0].FillFormat.SolidColor.Color = Color.Orange; |
| 仕様変更 | — | AddDigitalSignature メソッドの使用方法を調整しました。
Presentation ppt = new Presentation();
ppt.LoadFromFile("in.pptx");
//Add a digital signature,The parameters: string certificatePath, string certificatePassword, string comments, DateTime signTime
ppt.AddDigitalSignature("test.pfx", "e-iceblue", "111", DateTime.Now);
ppt.SaveToFile("result.pptx", Spire.Presentation.FileFormat.Pptx2016);
ppt.Dispose(); |
| バグ修正 | SPIREPPT-2887, SPIREPPT-2954, SPIREPPT-2989 | PPT から PDF に変換する際に内容が正しく表示されない問題を修正しました。 |
| バグ修正 | SPIREPPT-2997 | テンプレートを使用して PPT を作成する際の保存時間を最適化しました。 |
Spire.PDF
| カテゴリー | ID | 説明 |
| 新機能 | SPIREPDF-7465 | タイムスタンプサービスの URL 検証機能を追加しました。
TSAHttpService timestampService = new TSAHttpService("http://time2.certum.pl");
TSAResponse response = timestampService.Check();
//if it is success to receive tsa token
if (response.Success)
{ formatter.TimestampService = timestampService; } |
| バグ修正 | SPIREPDF-3890, SPIREPDF-5888, SPIREPDF-6680 | PDF から Word への変換精度を改善しました。 |
| バグ修正 | SPIREPDF-5657 | PDF を画像に変換した後に内容が欠落する問題を修正しました。 |
| バグ修正 | SPIREPPT-2418 | システムの地域言語がトルコ語に設定されているときに PPTX ドキュメントをロードすると、プログラムが「Microsoft PowerPoint 2007 file is corrpt.」をスローする問題が修正されました。 |
| バグ修正 | SPIREPDF-6451 | XPS から PDF に変換する際に内容が失われる問題を修正しました。 |
| バグ修正 | SPIREPDF-7213 | 垂直方向のハイライトテキストが正しくレンダリングされない問題を修正しました。 |
| バグ修正 | SPIREPDF-7378 | PDF ドキュメントを結合する際に例外が発生する問題を修正しました。 |
| バグ修正 | SPIREPDF-7680 | コンテンツ置換時のフォントレンダリング効果を改善しました。 |
| バグ修正 | SPIREPDF-7693 | タイムスタンプ追加時にエラーが発生する問題を修正しました。 |
| バグ修正 | SPIREPDF-5303, SPIREPDF-7247, SPIREPDF-7719 | PDF から Tiff への変換時にレンダリング結果が一貫しない問題を修正しました。 |
| バグ修正 | SPIREPDF-7729 | PDF ドキュメントの読み込み時に “NullReferenceException” が発生する問題を修正しました。 |
Spire.PDFViewer
| カテゴリー | ID | 説明 |
| 新機能 | SPIREPDFVIEWER-616 | 「前を検索(Find Previous)」および「次を検索(Find Next)」機能を追加しました。これにより、pdfDocumentViewer1.SearchText() メソッドは非推奨となり、代わりに pdfDocumentViewer1.Find() メソッドが使用されます。
private void Form1_Load(object sender, EventArgs e)
{
string pdfDoc = @"test.pdf";
if (File.Exists(pdfDoc))
{
this.pdfDocumentViewer1.LoadFromFile(pdfDoc);
this.pdfDocumentViewer1.Find("FindedText", Color.Empty);
}
}
private void before_Click(object sender, EventArgs e)
{
this.pdfDocumentViewer1.FindPrevious();
}
private void next_Click(object sender, EventArgs e)
{
this.pdfDocumentViewer1.FindNext();
} |






