xlogI125’s blog

パソコン作業を効率化したい

DocuWorks 9 操作メモ: OLE (アノテーションツールバーの設定)

バージョン: DocuWorks Desk Version 9.0.11 (Windows11, 2023年11月頃)

DocuWorks Viewer 操作メモ

OLE (アノテーションツールバーの設定)

用途例
  • DocuWorks入れ物自体へのDocuWorks文書の貼り付け
  • ビットマップファイルの貼り付け
    • A.xdw : ユーザー定義の用紙サイズで作成したDocuWorks文書(A.xdw)に「未設定OLE」で貼り付ける
    • B.bmp : A.xdw を イメージ変換出力 してビットマップファイル(B.bmp)を作成する
    • C.xdw : 目的のDocuWorks文書(C.xdw)にビットマップファイル(B.bmp)を「未設定OLE」で貼り付ける

テキスト検索、ベクター画像の維持といった細かいことは気にしない。文書を紙に印刷 → ハサミと糊で切り貼り → スキャン という作業よりは効率的。

クリップボードにコピーしたデータの形式を確認 (PowerShell)

# PowerShell 5.1, Windows 11 (2023年11月頃)

$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest

Add-Type -AssemblyName System.Drawing
Add-Type -AssemblyName System.Windows.Forms

Invoke-Command -NoNewScope -ScriptBlock {
  # クリップボードのデータを取得
  $iDataObject = [System.Windows.Forms.IDataObject][System.Windows.Forms.Clipboard]::GetDataObject()

  # 形式を表示
  $formats = [string[]]$iDataObject.GetFormats($true)
  $formats | Write-Host -ForegroundColor Yellow

  # テキストを表示
  $format = [System.Windows.Forms.DataFormats]::UnicodeText
  $obj = [object]$iDataObject.GetData($format)
  $obj | Out-String | Write-Host -ForegroundColor Cyan

  # Imageオブジェクトのプロパティを表示
  $image = [System.Drawing.Image][System.Windows.Forms.Clipboard]::GetImage()
  $image | Format-List | Out-String | Write-Host -ForegroundColor DarkYellow
  if ($null -ne $image) {
    $image.Dispose()
  }
}

DocuWorks Desk 操作メモ

PDFへの変換は"DocuWorks PDF"か"イメージ変換出力"が無難

以下の場合、DocuWorks文書からPDF文書への変換は"DocuWorks PDF"か"イメージ変換出力"が無難。