AcroExch.App: GetPreferenceEx メソッド

TOP > AcroExch.App > GetPreferenceEx      [...]


説明

Acrobatアプリケーションアプリケーション本体に関する情報取得や設定の変更が出来ます。

形式

VARIANT GetPreferenceEx(short nType);

引数

  1. 第1引数(short nType):
    アプリケーション情報に関する項目値。
    詳細はIAC.BACを参照。

動作するバージョン

VersionAdobe
Acrobat
備考
4NOAcrobat 4.0    ※Windows 98SE + Excel 2000
5
OK
Acrobat 5.0.5
6
OK
Acrobat 6.0.3 Pro
7OKAcrobat 7.0.9 Pro
Acrobat 7.1.4 Pro
8OKAcrobat 8.2.2 Pro
9OKAcrobat 9.3.2 Extended
10-Acrobat X (10.1.8) Extended
11-Acrobat XI (11.0.04) Extended
  • OK = 動作する。
  • NO = 動作しない。 戻り値が0を返す。
  • - = 未確認。 環境とテスト時間が出来次第、結果を入力します。

サンプル:ExcelのVBA

説明:全てのPreference値を取得する。

  • 参照設定を事前に行う。
  • 以下のサンプルはテスト用です。
    F8キーでステップ実行して動作確認します。
001 Sub AcroExch_App_GetPreferenceEx() 002 003 'Acrobatオブジェクトの定義&作成 004 'Acrobat 4,5,6 の時 005 ' Dim objAcroApp As Acrobat.CAcroApp 006 ' Set objAcroApp = CreateObject("AcroExch.App") 007 008 'Acrobat 7,8,9,10,11 の時 009 Dim objAcroApp As New Acrobat.AcroApp 010 011 '以降はAcrobat全て共通 012 Dim iRet As Integer '戻り値 013 Dim lRet As Long '戻り値 014 Dim vRet As Variant '戻り値 015 Dim bRet As Boolean '戻り値 016 Dim sRet As String '戻り値 017 018 With objAcroApp 019 020 'Acrobatアプリケーションpreferenceを取得する。 021 022 'Public Const avpPrefsVersion = 0 ' Int32 023 vRet = .GetPreferenceEx(avpPrefsVersion) 024 Debug.Print _ 025 "GetPreferenceEx(avpPrefsVersion)=(" & _ 026 .GetPreferenceEx(avpPrefsVersion) & ")" 027 028 'Public Const avpOpenDialogAtStartup = 1 ' boolean 029 bRet = .GetPreferenceEx(avpOpenDialogAtStartup) 030 Debug.Print _ 031 "GetPreferenceEx(avpOpenDialogAtStartup)=(" & _ 032 .GetPreferenceEx(avpOpenDialogAtStartup) & ")" 033 034 'Public Const avpShowSplashAtStartup = 2 ' boolean 035 bRet = .GetPreferenceEx(avpShowSplashAtStartup) 036 Debug.Print _ 037 "GetPreferenceEx(avpShowSplashAtStartup)=(" & _ 038 .GetPreferenceEx(avpShowSplashAtStartup) & ")" 039 040 'Public Const avpShowToolBar = 3 ' boolean 041 bRet = .GetPreferenceEx(avpShowToolBar) 042 Debug.Print _ 043 "GetPreferenceEx(avpShowToolBar)=(" & _ 044 .GetPreferenceEx(avpShowToolBar) & ")" 045 046 'Public Const avpRememberDialogs = 4 ' boolean 047 bRet = .GetPreferenceEx(avpRememberDialogs) 048 Debug.Print _ 049 "GetPreferenceEx(avpRememberDialogs)=(" & _ 050 .GetPreferenceEx(avpRememberDialogs) & ")" 051 052 'Public Const avpShortMenus = 5 ' boolean 053 bRet = .GetPreferenceEx(avpShortMenus) 054 Debug.Print _ 055 "GetPreferenceEx(avpShortMenus)=(" & _ 056 .GetPreferenceEx(avpShortMenus) & ")" 057 058 'Public Const avpDefaultOverviewType = 6 ' Int32 059 lRet = .GetPreferenceEx(avpDefaultOverviewType) 060 Debug.Print _ 061 "GetPreferenceEx(avpDefaultOverviewType)=(" & _ 062 .GetPreferenceEx(avpDefaultOverviewType) & ")" 063 064 'Public Const avpDefaultZoomScale = 7 ' Fixed 065 lRet = .GetPreferenceEx(avpDefaultZoomScale) 066 Debug.Print _ 067 "GetPreferenceEx(avpDefaultZoomScale)=(" & _ 068 .GetPreferenceEx(avpDefaultZoomScale) & ")" 069 070 'Public Const avpDefaultZoomType = 8 ' Int32 071 lRet = .GetPreferenceEx(avpDefaultZoomType) 072 Debug.Print _ 073 "GetPreferenceEx(avpDefaultZoomType)=(" & _ 074 .GetPreferenceEx(avpDefaultZoomType) & ")" 075 076 'Public Const avpShowLargeImages = 9 ' boolean 077 bRet = .GetPreferenceEx(avpShowLargeImages) 078 Debug.Print _ 079 "GetPreferenceEx(avpShowLargeImages)=(" & _ 080 .GetPreferenceEx(avpShowLargeImages) & ")" 081 082 'Public Const avpGreekText = 10 ' boolean 083 bRet = .GetPreferenceEx(avpGreekText) 084 Debug.Print _ 085 "GetPreferenceEx(avpGreekText)=(" & _ 086 .GetPreferenceEx(avpGreekText) & ")" 087 088 'Public Const avpGreekLevel = 11 ' Int32 089 lRet = .GetPreferenceEx(avpGreekLevel) 090 Debug.Print _ 091 "GetPreferenceEx(avpGreekLevel)=(" & _ 092 .GetPreferenceEx(avpGreekLevel) & ")" 093 094 'Public Const avpSubstituteFontType = 12 ' Int32 095 lRet = .GetPreferenceEx(avpSubstituteFontType) 096 Debug.Print _ 097 "GetPreferenceEx(avpSubstituteFontType)=(" & _ 098 .GetPreferenceEx(avpSubstituteFontType) & ")" 099 100 'Public Const avpDoCalibratedColor = 13 ' boolean 101 bRet = .GetPreferenceEx(avpDoCalibratedColor) 102 Debug.Print _ 103 "GetPreferenceEx(avpDoCalibratedColor)=(" & _ 104 .GetPreferenceEx(avpDoCalibratedColor) & ")" 105 106 'Public Const avpSkipWarnings = 14 ' boolean 107 bRet = .GetPreferenceEx(avpSkipWarnings) 108 Debug.Print _ 109 "GetPreferenceEx(avpSkipWarnings)=(" & _ 110 .GetPreferenceEx(avpSkipWarnings) & ")" 111 112 'Public Const avpPSLevel = 15 ' Int32 113 lRet = .GetPreferenceEx(avpPSLevel) 114 Debug.Print _ 115 "GetPreferenceEx(avpPSLevel)=(" & _ 116 .GetPreferenceEx(avpPSLevel) & ")" 117 118 'Public Const avpShrinkToFit = 16 ' boolean 119 bRet = .GetPreferenceEx(avpShrinkToFit) 120 Debug.Print _ 121 "GetPreferenceEx(avpShrinkToFit)=(" & _ 122 .GetPreferenceEx(avpShrinkToFit) & ")" 123 124 'Public Const avpCaseSensitive = 17 ' boolean 125 bRet = .GetPreferenceEx(avpCaseSensitive) 126 Debug.Print _ 127 "GetPreferenceEx(avpCaseSensitive)=(" & _ 128 .GetPreferenceEx(avpCaseSensitive) & ")" 129 130 'Public Const avpWholeWords = 18 ' boolean 131 bRet = .GetPreferenceEx(avpWholeWords) 132 Debug.Print _ 133 "GetPreferenceEx(avpWholeWords)=(" & _ 134 .GetPreferenceEx(avpWholeWords) & ")" 135 136 'Public Const avpNoteColor = 19 ' PDColorValue 137 lRet = .GetPreferenceEx(avpNoteColor) 138 Debug.Print _ 139 "GetPreferenceEx(avpNoteColor)=(" & _ 140 .GetPreferenceEx(avpNoteColor) & ")" 141 142 'Public Const avpNoteLabel = 20 ' char 143 sRet = .GetPreferenceEx(avpNoteLabel) 144 Debug.Print _ 145 "GetPreferenceEx(avpNoteLabel)=(" & _ 146 .GetPreferenceEx(avpNoteLabel) & ")" 147 148 'Public Const avpMaxThreadZoom = 21 ' Fixed 149 lRet = .GetPreferenceEx(avpMaxThreadZoom) 150 Debug.Print _ 151 "GetPreferenceEx(avpMaxThreadZoom)=(" & _ 152 .GetPreferenceEx(avpMaxThreadZoom) & ")" 153 154 'Public Const avpEnablePageCache = 22 ' boolean 155 bRet = .GetPreferenceEx(avpEnablePageCache) 156 Debug.Print _ 157 "GetPreferenceEx(avpEnablePageCache)=(" & _ 158 .GetPreferenceEx(avpEnablePageCache) & ")" 159 160 'Public Const avpFullScreenColor = 23 ' PDColorValue 161 lRet = .GetPreferenceEx(avpFullScreenColor) 162 Debug.Print _ 163 "GetPreferenceEx(avpFullScreenColor)=(" & _ 164 .GetPreferenceEx(avpFullScreenColor) & ")" 165 166 'Public Const avpUnused1 = 24 ' obsolete 167 lRet = .GetPreferenceEx(avpUnused1) 168 Debug.Print _ 169 "GetPreferenceEx(avpUnused1)=(" & _ 170 .GetPreferenceEx(avpUnused1) & ")" 171 ' Fixed: pages whose zoom > this will not be cached 172 173 'Public Const avpMaxPageCacheZoom = 25 174 lRet = .GetPreferenceEx(avpMaxPageCacheZoom) 175 Debug.Print _ 176 "GetPreferenceEx(avpMaxPageCacheZoom)=(" & _ 177 .GetPreferenceEx(avpMaxPageCacheZoom) & ")" 178 ' Int32: pages which take < this to render will not be cached 179 180 'Public Const avpMinPageCacheTicks = 26 181 lRet = .GetPreferenceEx(avpMinPageCacheTicks) 182 Debug.Print _ 183 "GetPreferenceEx(avpMinPageCacheTicks)=(" & _ 184 .GetPreferenceEx(avpMinPageCacheTicks) & ")" 185 ' Int32: overall constraint on storage used by cache 186 187 'Public Const avpMaxPageCacheBytes = 27 188 lRet = .GetPreferenceEx(avpMaxPageCacheBytes) 189 Debug.Print _ 190 "GetPreferenceEx(avpMaxPageCacheBytes)=(" & _ 191 .GetPreferenceEx(avpMaxPageCacheBytes) & ")" 192 193 'Public Const avpUnused2 = 28 ' obsolete 194 lRet = .GetPreferenceEx(avpUnused2) 195 Debug.Print _ 196 "GetPreferenceEx(avpUnused2)=(" & _ 197 .GetPreferenceEx(avpUnused2) & ")" 198 199 'Public Const avpFullScreenChangeTimeDelay = 29 ' Int32 200 lRet = .GetPreferenceEx(avpFullScreenChangeTimeDelay) 201 Debug.Print _ 202 "GetPreferenceEx(avpFullScreenChangeTimeDelay)=(" & _ 203 .GetPreferenceEx(avpFullScreenChangeTimeDelay) & ")" 204 205 'Public Const avpFullScreenLoop = 30 ' boolean 206 bRet = .GetPreferenceEx(avpFullScreenLoop) 207 Debug.Print _ 208 "GetPreferenceEx(avpFullScreenLoop)=(" & _ 209 .GetPreferenceEx(avpFullScreenLoop) & ")" 210 211 'Public Const avpThumbViewScale = 31 ' Fixed 212 lRet = .GetPreferenceEx(avpThumbViewScale) 213 Debug.Print _ 214 "GetPreferenceEx(avpThumbViewScale)=(" & _ 215 .GetPreferenceEx(avpThumbViewScale) & ")" 216 217 'Public Const avpThumbViewTimeout = 32 ' Int32 218 lRet = .GetPreferenceEx(avpThumbViewTimeout) 219 Debug.Print _ 220 "GetPreferenceEx(avpThumbViewTimeout)=(" & _ 221 .GetPreferenceEx(avpThumbViewTimeout) & ")" 222 223 'Public Const avpDestFitType = 33 ' char 224 sRet = .GetPreferenceEx(avpDestFitType) 225 Debug.Print _ 226 "GetPreferenceEx(avpDestFitType)=(" & _ 227 .GetPreferenceEx(avpDestFitType) & ")" 228 229 'Public Const avpDestZoomInherit = 34 ' boolean 230 bRet = .GetPreferenceEx(avpDestZoomInherit) 231 Debug.Print _ 232 "GetPreferenceEx(avpDestZoomInherit)=(" & _ 233 .GetPreferenceEx(avpDestZoomInherit) & ")" 234 235 'Public Const avpHighlightMode = 35 ' Int32 236 lRet = .GetPreferenceEx(avpHighlightMode) 237 Debug.Print _ 238 "GetPreferenceEx(avpHighlightMode)=(" & _ 239 .GetPreferenceEx(avpHighlightMode) & ")" 240 241 'Public Const avpDefaultSplitterPos = 36 ' Int32 242 lRet = .GetPreferenceEx(avpDefaultSplitterPos) 243 Debug.Print _ 244 "GetPreferenceEx(avpDefaultSplitterPos)=(" & _ 245 .GetPreferenceEx(avpDefaultSplitterPos) & ")" 246 247 'Public Const avpUnused3 = 37 ' obsolete 248 lRet = .GetPreferenceEx(avpUnused3) 249 Debug.Print _ 250 "GetPreferenceEx(avpUnused3)=(" & _ 251 .GetPreferenceEx(avpUnused3) & ")" 252 ' Int32: max # of bytes of Cos object cache per Cos doc. 253 254 'Public Const avpMaxCosDocCache = 38 255 lRet = .GetPreferenceEx(avpMaxCosDocCache) 256 Debug.Print _ 257 "GetPreferenceEx(avpMaxCosDocCache)=(" & _ 258 .GetPreferenceEx(avpMaxCosDocCache) & ")" 259 260 'Public Const avpPageUnits = 39 ' PageUnits 261 lRet = .GetPreferenceEx(avpPageUnits) 262 Debug.Print _ 263 "GetPreferenceEx(avpPageUnits)=(" & _ 264 .GetPreferenceEx(avpPageUnits) & ")" 265 266 'Public Const avpNoteFontName = 40 ' char* 267 sRet = .GetPreferenceEx(avpNoteFontName) 268 Debug.Print _ 269 "GetPreferenceEx(avpNoteFontName)=(" & _ 270 .GetPreferenceEx(avpNoteFontName) & ")" 271 272 'Public Const avpNoteFontSize = 41 ' Int32 273 bRet = .GetPreferenceEx(avpNoteFontSize) 274 Debug.Print _ 275 "GetPreferenceEx(avpNoteFontSize)=(" & _ 276 .GetPreferenceEx(avpNoteFontSize) & ")" 277 278 'Public Const avpRecentFile1 = 42 ' char * 279 sRet = .GetPreferenceEx(avpRecentFile1) 280 Debug.Print _ 281 "GetPreferenceEx(avpRecentFile1)=(" & _ 282 .GetPreferenceEx(avpRecentFile1) & ")" 283 284 'Public Const avpRecentFile2 = 43 ' char * 285 sRet = .GetPreferenceEx(avpRecentFile2) 286 Debug.Print _ 287 "GetPreferenceEx(avpRecentFile2)=(" & _ 288 .GetPreferenceEx(avpRecentFile2) & ")" 289 290 'Public Const avpRecentFile3 = 44 ' char * 291 sRet = .GetPreferenceEx(avpRecentFile3) 292 Debug.Print _ 293 "GetPreferenceEx(avpRecentFile3)=(" & _ 294 .GetPreferenceEx(avpRecentFile3) & ")" 295 296 'Public Const avpRecentFile4 = 45 ' char * 297 sRet = .GetPreferenceEx(avpRecentFile4) 298 Debug.Print _ 299 "GetPreferenceEx(avpRecentFile4)=(" & _ 300 .GetPreferenceEx(avpRecentFile4) & ")" 301 302 'Public Const avpHighlightColor = 46 ' PDColorValue 303 lRet = .GetPreferenceEx(avpHighlightColor) 304 Debug.Print _ 305 "GetPreferenceEx(avpHighlightColor)=(" & _ 306 .GetPreferenceEx(avpHighlightColor) & ")" 307 308 'Public Const avpFullScreenUseTimer = 47 ' boolean 309 bRet = .GetPreferenceEx(avpFullScreenUseTimer) 310 Debug.Print _ 311 "GetPreferenceEx(avpFullScreenUseTimer)=(" & _ 312 .GetPreferenceEx(avpFullScreenUseTimer) & ")" 313 314 'Public Const avpAntialiasText = 48 ' boolean 315 bRet = .GetPreferenceEx(avpAntialiasText) 316 Debug.Print _ 317 "GetPreferenceEx(avpAntialiasText)=(" & _ 318 .GetPreferenceEx(avpAntialiasText) & ")" 319 320 'Public Const avpAntialiasLevel = 49 ' Int16 321 iRet = .GetPreferenceEx(avpAntialiasLevel) 322 Debug.Print _ 323 "GetPreferenceEx(avpAntialiasLevel)=(" & _ 324 .GetPreferenceEx(avpAntialiasLevel) & ")" 325 326 'Public Const avpPersistentCacheSize = 50 ' Int32 327 lRet = .GetPreferenceEx(avpPersistentCacheSize) 328 Debug.Print _ 329 "GetPreferenceEx(avpPersistentCacheSize)=(" & _ 330 .GetPreferenceEx(avpPersistentCacheSize) & ")" 331 332 'Public Const avpPersistentCacheFolder = 51 ' ASPathName 333 lRet = .GetPreferenceEx(avpPersistentCacheFolder) 334 Debug.Print _ 335 "GetPreferenceEx(avpPersistentCacheFolder)=(" & _ 336 .GetPreferenceEx(avpPersistentCacheFolder) & ")" 337 338 'Public Const avpPageViewLayoutMode = 52 ' PDLayoutMode 339 lRet = .GetPreferenceEx(avpPageViewLayoutMode) 340 Debug.Print _ 341 "GetPreferenceEx(avpPageViewLayoutMode)=(" & _ 342 .GetPreferenceEx(avpPageViewLayoutMode) & ")" 343 344 'Public Const avpSaveAsLinearized = 53 ' boolean 345 bRet = .GetPreferenceEx(avpSaveAsLinearized) 346 Debug.Print _ 347 "GetPreferenceEx(avpSaveAsLinearized)=(" & _ 348 .GetPreferenceEx(avpSaveAsLinearized) & ")" 349 350 'Public Const avpMaxOpenDocuments = 54 ' Int32 351 lRet = .GetPreferenceEx(avpMaxOpenDocuments) 352 Debug.Print _ 353 "GetPreferenceEx(avpMaxOpenDocuments)=(" & _ 354 .GetPreferenceEx(avpMaxOpenDocuments) & ")" 355 356 'Public Const avpTextSelectWordOrder = 55 ' Int32 357 lRet = .GetPreferenceEx(avpTextSelectWordOrder) 358 Debug.Print _ 359 "GetPreferenceEx(avpTextSelectWordOrder)=(" & _ 360 .GetPreferenceEx(avpTextSelectWordOrder) & ")" 361 362 'Public Const avpMarkHiddenPages = 56 ' boolean 363 bRet = .GetPreferenceEx(avpMarkHiddenPages) 364 Debug.Print _ 365 "GetPreferenceEx(avpMarkHiddenPages)=(" & _ 366 .GetPreferenceEx(avpMarkHiddenPages) & ")" 367 368 'Public Const avpFullScreenTransitionType = 57 ' char* 369 sRet = .GetPreferenceEx(avpFullScreenTransitionType) 370 Debug.Print _ 371 "GetPreferenceEx(avpFullScreenTransitionType)=(" & _ 372 .GetPreferenceEx(avpFullScreenTransitionType) & ")" 373 374 'Public Const avpFullScreenClick = 58 ' boolean 375 bRet = .GetPreferenceEx(avpFullScreenClick) 376 Debug.Print _ 377 "GetPreferenceEx(avpFullScreenClick)=(" & _ 378 .GetPreferenceEx(avpFullScreenClick) & ")" 379 380 'Public Const avpFullScreenEscape = 59 ' boolean 381 bRet = .GetPreferenceEx(avpFullScreenEscape) 382 Debug.Print _ 383 "GetPreferenceEx(avpFullScreenEscape)=(" & _ 384 .GetPreferenceEx(avpFullScreenEscape) & ")" 385 386 'Public Const avpFullScreenCursor = 60 ' Int16 387 iRet = .GetPreferenceEx(avpFullScreenCursor) 388 Debug.Print _ 389 "GetPreferenceEx(avpFullScreenCursor)=(" & _ 390 .GetPreferenceEx(avpFullScreenCursor) & ")" 391 392 'Public Const avpOpenInPlace = 61 ' boolean 393 bRet = .GetPreferenceEx(avpOpenInPlace) 394 Debug.Print _ 395 "GetPreferenceEx(avpOpenInPlace)=(" & _ 396 .GetPreferenceEx(avpOpenInPlace) & ")" 397 398 'Public Const avpShowHiddenAnnots = 62 ' boolean 399 bRet = .GetPreferenceEx(avpShowHiddenAnnots) 400 Debug.Print _ 401 "GetPreferenceEx(avpShowHiddenAnnots)=(" & _ 402 .GetPreferenceEx(avpShowHiddenAnnots) & ")" 403 404 'Public Const avpFullScreenUsePageTiming = 63 ' boolean 405 bRet = .GetPreferenceEx(avpFullScreenUsePageTiming) 406 Debug.Print _ 407 "GetPreferenceEx(avpFullScreenUsePageTiming)=(" & _ 408 .GetPreferenceEx(avpFullScreenUsePageTiming) & ")" 409 410 'Public Const avpDownloadEntireFile = 64 ' boolean 411 bRet = .GetPreferenceEx(avpDownloadEntireFile) 412 Debug.Print _ 413 "GetPreferenceEx(avpDownloadEntireFile)=(" & _ 414 .GetPreferenceEx(avpDownloadEntireFile) & ")" 415 416 'Public Const avpEmitHalftones = 65 ' boolean 417 bRet = .GetPreferenceEx(avpEmitHalftones) 418 Debug.Print _ 419 "GetPreferenceEx(avpEmitHalftones)=(" & _ 420 .GetPreferenceEx(avpEmitHalftones) & ")" 421 422 'Public Const avpShowMenuBar = 66 ' /*boolean*/ 423 bRet = .GetPreferenceEx(avpShowMenuBar) 424 Debug.Print _ 425 "GetPreferenceEx(avpShowMenuBar)=(" & _ 426 .GetPreferenceEx(avpShowMenuBar) & ")" 427 428 'Public Const avpIgnorePageClip = 67 '/*boolean*/ 429 bRet = .GetPreferenceEx(avpIgnorePageClip) 430 Debug.Print _ 431 "GetPreferenceEx(avpIgnorePageClip)=(" & _ 432 .GetPreferenceEx(avpIgnorePageClip) & ")" 433 434 'Public Const avpMinimizeBookmarks = 68 '/* boolean*/ 435 bRet = .GetPreferenceEx(avpMinimizeBookmarks) 436 Debug.Print _ 437 "GetPreferenceEx(avpMinimizeBookmarks)=(" & _ 438 .GetPreferenceEx(avpMinimizeBookmarks) & ")" 439 440 'Public Const avpShowAnnotSequence = 69 '/*boolean*/ 441 bRet = .GetPreferenceEx(avpShowAnnotSequence) 442 Debug.Print _ 443 "GetPreferenceEx(avpShowAnnotSequence)=(" & _ 444 .GetPreferenceEx(avpShowAnnotSequence) & ")" 445 446 'Public Const avpUseLogicalPageNumbers = 70 '/*boolean*/ 447 bRet = .GetPreferenceEx(avpUseLogicalPageNumbers) 448 Debug.Print _ 449 "GetPreferenceEx(avpUseLogicalPageNumbers)=(" & _ 450 .GetPreferenceEx(avpUseLogicalPageNumbers) & ")" 451 452 'Public Const avpASExtensionDigCert = 71 453 '/*###cannot use via IAC*/ 454 lRet = .GetPreferenceEx(avpASExtensionDigCert) 455 Debug.Print _ 456 "GetPreferenceEx(avpASExtensionDigCert)=(" & _ 457 .GetPreferenceEx(avpASExtensionDigCert) & ")" 458 459 'Public Const avpShowLeftToolBar = 72 '/*boolean*/ 460 bRet = .GetPreferenceEx(avpShowLeftToolBar) 461 Debug.Print _ 462 "GetPreferenceEx(avpShowLeftToolBar)=(" & _ 463 .GetPreferenceEx(avpShowLeftToolBar) & ")" 464 465 'Public Const avpConfirmOpenFile = 73 '/*boolean*/ 466 bRet = .GetPreferenceEx(avpConfirmOpenFile) 467 Debug.Print _ 468 "GetPreferenceEx(avpConfirmOpenFile)=(" & _ 469 .GetPreferenceEx(avpConfirmOpenFile) & ")" 470 471 'Public Const avpNoteLabelEncoding = 74 '/*cannot use via IAC*/ 472 lRet = .GetPreferenceEx(avpNoteLabelEncoding) 473 Debug.Print _ 474 "GetPreferenceEx(avpNoteLabelEncoding)=(" & _ 475 .GetPreferenceEx(avpNoteLabelEncoding) & ")" 476 477 'Public Const avpBookmarkShowLocation = 75 '/*boolean*/ 478 bRet = .GetPreferenceEx(avpBookmarkShowLocation) 479 Debug.Print _ 480 "GetPreferenceEx(avpBookmarkShowLocation)=(" & _ 481 .GetPreferenceEx(avpBookmarkShowLocation) & ")" 482 483 'Public Const avpUseLocalFonts = 76 '/*boolean*/ 484 bRet = .GetPreferenceEx(avpUseLocalFonts) 485 Debug.Print _ 486 "GetPreferenceEx(avpUseLocalFonts)=(" & _ 487 .GetPreferenceEx(avpUseLocalFonts) & ")" 488 489 'Public Const avpCurrCMM = 77 '/*char* */ 490 sRet = .GetPreferenceEx(avpCurrCMM) 491 Debug.Print _ 492 "GetPreferenceEx(avpCurrCMM)=(" & _ 493 .GetPreferenceEx(avpCurrCMM) & ")" 494 495 'Public Const avpBrowserIntegration = 78 '/*boolean*/ 496 bRet = .GetPreferenceEx(avpBrowserIntegration) 497 Debug.Print _ 498 "GetPreferenceEx(avpBrowserIntegration)=(" & _ 499 .GetPreferenceEx(avpBrowserIntegration) & ")" 500 501 'Public Const avpPrintAnnots = 79 '/*boolean */ 502 bRet = .GetPreferenceEx(avpPrintAnnots) 503 Debug.Print _ 504 "GetPreferenceEx(avpPrintAnnots)=(" & _ 505 .GetPreferenceEx(avpPrintAnnots) & ")" 506 507 'Public Const avpSendFarEastFonts = 80 '/*boolean */ 508 bRet = .GetPreferenceEx(avpSendFarEastFonts) 509 Debug.Print _ 510 "GetPreferenceEx(avpSendFarEastFonts)=(" & _ 511 .GetPreferenceEx(avpSendFarEastFonts) & ")" 512 513 'Public Const avpSuppressCSA = 81 '/*boolean */ 514 bRet = .GetPreferenceEx(avpSuppressCSA) 515 Debug.Print _ 516 "GetPreferenceEx(avpSuppressCSA)=(" & _ 517 .GetPreferenceEx(avpSuppressCSA) & ")" 518 End With 519 520 Set objAcroApp = Nothing 521 522 End Sub


 Highlight:プログラミング言語のソースコードを構文で色分け (GUI編)
 

 

 

実行結果 v9.2の結果

Source file GetPreferenceEx(avpPrefsVersion)=(3) GetPreferenceEx(avpOpenDialogAtStartup)=(False) GetPreferenceEx(avpShowSplashAtStartup)=(False) GetPreferenceEx(avpShowToolBar)=(False) GetPreferenceEx(avpRememberDialogs)=(True) GetPreferenceEx(avpShortMenus)=(False) GetPreferenceEx(avpDefaultOverviewType)=(1) GetPreferenceEx(avpDefaultZoomScale)=(1) GetPreferenceEx(avpDefaultZoomType)=(4294967295) GetPreferenceEx(avpShowLargeImages)=(True) GetPreferenceEx(avpGreekText)=(False) GetPreferenceEx(avpGreekLevel)=(6) GetPreferenceEx(avpSubstituteFontType)=(0) GetPreferenceEx(avpDoCalibratedColor)=(True) GetPreferenceEx(avpSkipWarnings)=(False) GetPreferenceEx(avpPSLevel)=(2) GetPreferenceEx(avpShrinkToFit)=(True) GetPreferenceEx(avpCaseSensitive)=(False) GetPreferenceEx(avpWholeWords)=(False) GetPreferenceEx(avpNoteColor)=(10092543) GetPreferenceEx(avpNoteLabel)=() GetPreferenceEx(avpMaxThreadZoom)=(2) GetPreferenceEx(avpEnablePageCache)=(True) GetPreferenceEx(avpFullScreenColor)=(0) GetPreferenceEx(avpUnused1)=(False) GetPreferenceEx(avpMaxPageCacheZoom)=(2) GetPreferenceEx(avpMinPageCacheTicks)=(12) GetPreferenceEx(avpMaxPageCacheBytes)=(8388608) GetPreferenceEx(avpUnused2)=(True) GetPreferenceEx(avpFullScreenChangeTimeDelay)=(5) GetPreferenceEx(avpFullScreenLoop)=(False) GetPreferenceEx(avpThumbViewScale)=(0.125) GetPreferenceEx(avpThumbViewTimeout)=(120) GetPreferenceEx(avpDestFitType)=(XYZ) GetPreferenceEx(avpDestZoomInherit)=(False) GetPreferenceEx(avpHighlightMode)=(0) GetPreferenceEx(avpDefaultSplitterPos)=(200) GetPreferenceEx(avpUnused3)=(180) GetPreferenceEx(avpMaxCosDocCache)=(4194304) GetPreferenceEx(avpPageUnits)=(2) GetPreferenceEx(avpNoteFontName)=(Tahoma) GetPreferenceEx(avpNoteFontSize)=(10) GetPreferenceEx(avpRecentFile1)=() GetPreferenceEx(avpRecentFile2)=() GetPreferenceEx(avpRecentFile3)=() GetPreferenceEx(avpRecentFile4)=() GetPreferenceEx(avpHighlightColor)=(65535) GetPreferenceEx(avpFullScreenUseTimer)=(False) GetPreferenceEx(avpAntialiasText)=(True) GetPreferenceEx(avpAntialiasLevel)=(19) GetPreferenceEx(avpPersistentCacheSize)=(0) GetPreferenceEx(avpPersistentCacheFolder)=() GetPreferenceEx(avpPageViewLayoutMode)=(0) GetPreferenceEx(avpSaveAsLinearized)=(True) GetPreferenceEx(avpMaxOpenDocuments)=(50) GetPreferenceEx(avpTextSelectWordOrder)=(False) GetPreferenceEx(avpMarkHiddenPages)=(False) GetPreferenceEx(avpFullScreenTransitionType)=() GetPreferenceEx(avpFullScreenClick)=(True) GetPreferenceEx(avpFullScreenEscape)=(True) GetPreferenceEx(avpFullScreenCursor)=(2) GetPreferenceEx(avpOpenInPlace)=(True) GetPreferenceEx(avpShowHiddenAnnots)=(False) GetPreferenceEx(avpFullScreenUsePageTiming)=(True) GetPreferenceEx(avpDownloadEntireFile)=(True) GetPreferenceEx(avpEmitHalftones)=(False) GetPreferenceEx(avpShowMenuBar)=(True) GetPreferenceEx(avpIgnorePageClip)=(False) GetPreferenceEx(avpMinimizeBookmarks)=(False) GetPreferenceEx(avpShowAnnotSequence)=(False) GetPreferenceEx(avpUseLogicalPageNumbers)=(True) GetPreferenceEx(avpASExtensionDigCert)=() GetPreferenceEx(avpShowLeftToolBar)=(True) GetPreferenceEx(avpConfirmOpenFile)=(True) GetPreferenceEx(avpNoteLabelEncoding)=() GetPreferenceEx(avpBookmarkShowLocation)=(True) GetPreferenceEx(avpUseLocalFonts)=(True) GetPreferenceEx(avpCurrCMM)=() GetPreferenceEx(avpBrowserIntegration)=(True) GetPreferenceEx(avpPrintAnnots)=(True) GetPreferenceEx(avpSendFarEastFonts)=(True) GetPreferenceEx(avpSuppressCSA)=(True)

各バージョンのテスト結果の比較

異なる部分のみ以下に示します。

  1. GetPreferenceEx(avpShowSplashAtStartup)=(True)  Acrobat v5
    GetPreferenceEx(avpShowSplashAtStartup)=(True)  Acrobat v6
    GetPreferenceEx(avpShowSplashAtStartup)=(False)  Acrobat v7
    GetPreferenceEx(avpShowSplashAtStartup)=(False)  Acrobat v8
    GetPreferenceEx(avpShowSplashAtStartup)=(False) Acrobat v9
  2. GetPreferenceEx(avpShowToolBar)=(True)  Acrobat v5
    GetPreferenceEx(avpShowToolBar)=(True)  Acrobat v6
    GetPreferenceEx(avpShowToolBar)=(True)  Acrobat v7
    GetPreferenceEx(avpShowToolBar)=(True)  Acrobat v8
    GetPreferenceEx(avpShowToolBar)=(False)  Acrobat v9
  3. GetPreferenceEx(avpDefaultOverviewType)=(1)  Acrobat v5
    GetPreferenceEx(avpDefaultOverviewType)=(1)  Acrobat v6
    GetPreferenceEx(avpDefaultOverviewType)=(1)  Acrobat v7
    GetPreferenceEx(avpDefaultOverviewType)=(2)  Acrobat v8
    GetPreferenceEx(avpDefaultOverviewType)=(1)  Acrobat v9
  4. GetPreferenceEx(avpDefaultZoomScale)=(0)  Acrobat v5
    GetPreferenceEx(avpDefaultZoomScale)=(0)  Acrobat v6
    GetPreferenceEx(avpDefaultZoomScale)=(0)  Acrobat v7
    GetPreferenceEx(avpDefaultZoomScale)=(1)  Acrobat v8
    GetPreferenceEx(avpDefaultZoomScale)=(1)  Acrobat v9
  5. GetPreferenceEx(avpDefaultZoomType)=(2)  Acrobat v5
    GetPreferenceEx(avpDefaultZoomType)=(2)  Acrobat v6
    GetPreferenceEx(avpDefaultZoomType)=(4294967295)  Acrobat v7
    GetPreferenceEx(avpDefaultZoomType)=(4294967295)  Acrobat v8
    GetPreferenceEx(avpDefaultZoomType)=(4294967295)  Acrobat v9
  6. GetPreferenceEx(avpPSLevel)=(2)  Acrobat v5
    GetPreferenceEx(avpPSLevel)=(2)  Acrobat v6
    GetPreferenceEx(avpPSLevel)=(2)  Acrobat v7
    GetPreferenceEx(avpPSLevel)=(0)  Acrobat v8
    GetPreferenceEx(avpPSLevel)=(2)  Acrobat v9
  7. GetPreferenceEx(avpShrinkToFit)=(True)  Acrobat v5
    GetPreferenceEx(avpShrinkToFit)=(True)  Acrobat v6
    GetPreferenceEx(avpShrinkToFit)=(True)  Acrobat v7
    GetPreferenceEx(avpShrinkToFit)=(False)  Acrobat v8
    GetPreferenceEx(avpShrinkToFit)=(True)  Acrobat v9
  8. GetPreferenceEx(avpMaxThreadZoom)=(8)  Acrobat v5
    GetPreferenceEx(avpMaxThreadZoom)=(8)  Acrobat v6
    GetPreferenceEx(avpMaxThreadZoom)=(8)  Acrobat v7
    GetPreferenceEx(avpMaxThreadZoom)=(2)  Acrobat v8
    GetPreferenceEx(avpMaxThreadZoom)=(2)  Acrobat v9
  9. GetPreferenceEx(avpEnablePageCache)=(False)  Acrobat v5
    GetPreferenceEx(avpEnablePageCache)=(False)  Acrobat v6
    GetPreferenceEx(avpEnablePageCache)=(False)  Acrobat v7
    GetPreferenceEx(avpEnablePageCache)=(True)  Acrobat v8
    GetPreferenceEx(avpEnablePageCache)=(True)  Acrobat v9
  10. GetPreferenceEx(avpMaxPageCacheBytes)=(4194304)  Acrobat v5
    GetPreferenceEx(avpMaxPageCacheBytes)=(4194304)  Acrobat v6
    GetPreferenceEx(avpMaxPageCacheBytes)=(4194304)  Acrobat v7
    GetPreferenceEx(avpMaxPageCacheBytes)=(8388608)  Acrobat v8
    GetPreferenceEx(avpMaxPageCacheBytes)=(8388608)  Acrobat v9
  11. GetPreferenceEx(avpDefaultSplitterPos)=(200)  Acrobat v5
    GetPreferenceEx(avpDefaultSplitterPos)=(200)  Acrobat v6
    GetPreferenceEx(avpDefaultSplitterPos)=(200)  Acrobat v7
    GetPreferenceEx(avpDefaultSplitterPos)=(279)  Acrobat v8
    GetPreferenceEx(avpDefaultSplitterPos)=(200)  Acrobat v9
  12. GetPreferenceEx(avpMaxCosDocCache)=(200000)  Acrobat v5
    GetPreferenceEx(avpMaxCosDocCache)=(200000)  Acrobat v6
    GetPreferenceEx(avpMaxCosDocCache)=(200000)  Acrobat v7
    GetPreferenceEx(avpMaxCosDocCache)=(4194304)  Acrobat v8
    GetPreferenceEx(avpMaxCosDocCache)=(4194304)  Acrobat v9
  13. GetPreferenceEx(avpNoteFontName)=(Tahoma)  Acrobat v5
    GetPreferenceEx(avpNoteFontName)=(Tahoma)  Acrobat v6
    GetPreferenceEx(avpNoteFontName)=(Arial)  Acrobat v7
    GetPreferenceEx(avpNoteFontName)=(Tahoma)  Acrobat v8
    GetPreferenceEx(avpNoteFontName)=(Tahoma)  Acrobat v9
  14. GetPreferenceEx(avpNoteFontSize)=(9)  Acrobat v5
    GetPreferenceEx(avpNoteFontSize)=(9)  Acrobat v6
    GetPreferenceEx(avpNoteFontSize)=(10)  Acrobat v7
    GetPreferenceEx(avpNoteFontSize)=(10)  Acrobat v8
    GetPreferenceEx(avpNoteFontSize)=(10)  Acrobat v9
  15. GetPreferenceEx(avpAntialiasLevel)=(17)  Acrobat v5
    GetPreferenceEx(avpAntialiasLevel)=(17)  Acrobat v6
    GetPreferenceEx(avpAntialiasLevel)=(19)  Acrobat v7
    GetPreferenceEx(avpAntialiasLevel)=(19)  Acrobat v8
    GetPreferenceEx(avpAntialiasLevel)=(19)  Acrobat v9
  16. GetPreferenceEx(avpPersistentCacheSize)=(1024)  Acrobat v5
    GetPreferenceEx(avpPersistentCacheSize)=(1024)  Acrobat v6
    GetPreferenceEx(avpPersistentCacheSize)=(0)  Acrobat v7
    GetPreferenceEx(avpPersistentCacheSize)=(0)  Acrobat v8
    GetPreferenceEx(avpPersistentCacheSize)=(0)  Acrobat v9
  17. GetPreferenceEx(avpPageViewLayoutMode)=(2)  Acrobat v5
    GetPreferenceEx(avpPageViewLayoutMode)=(2)  Acrobat v6
    GetPreferenceEx(avpPageViewLayoutMode)=(0)  Acrobat v7
    GetPreferenceEx(avpPageViewLayoutMode)=(0)  Acrobat v8
    GetPreferenceEx(avpPageViewLayoutMode)=(0)  Acrobat v9
  18. GetPreferenceEx(avpMaxOpenDocuments)=(20)  Acrobat v5
    GetPreferenceEx(avpMaxOpenDocuments)=(20)  Acrobat v6
    GetPreferenceEx(avpMaxOpenDocuments)=(50)  Acrobat v7
    GetPreferenceEx(avpMaxOpenDocuments)=(50)  Acrobat v8
    GetPreferenceEx(avpMaxOpenDocuments)=(50)  Acrobat v9
  19. GetPreferenceEx(avpFullScreenTransitionType)=(Replace)  Acrobat v5
    GetPreferenceEx(avpFullScreenTransitionType)=(Replace)  Acrobat v6
    GetPreferenceEx(avpFullScreenTransitionType)=(Replace)  Acrobat v7
    GetPreferenceEx(avpFullScreenTransitionType)=()  Acrobat v8
    GetPreferenceEx(avpFullScreenTransitionType)=()  Acrobat v9
  20. GetPreferenceEx(avpFullScreenClick)=(False)  Acrobat v5
    GetPreferenceEx(avpFullScreenClick)=(False)  Acrobat v6
    GetPreferenceEx(avpFullScreenClick)=(True)  Acrobat v7
    GetPreferenceEx(avpFullScreenClick)=(True)  Acrobat v8
    GetPreferenceEx(avpFullScreenClick)=(True)  Acrobat v9
  21. GetPreferenceEx(avpDownloadEntireFile)=(True)  Acrobat v5
    GetPreferenceEx(avpDownloadEntireFile)=(True)  Acrobat v6
    GetPreferenceEx(avpDownloadEntireFile)=(True)  Acrobat v7
    GetPreferenceEx(avpDownloadEntireFile)=(False)  Acrobat v8
    GetPreferenceEx(avpDownloadEntireFile)=(True)  Acrobat v9

補足

  • Acrobat v4.0 では当メソッドは使えません。
  • 第1引数の詳細な説明は「IAC.BASにある定数の説明一覧」を参考にするか、Acrobat SDK 8.0「Acrobat® and PDF Library API Reference」(acrobat_pdfl_api_reference.pdf)を見て下さい。
    ※定数に合う説明はありませんが。
  • 全ての値に関する詳細な説明がSDKに無いので、解説できません。

動作確認環境

  • Windows98SE( + WindowsUpdate) +
    Acrobat 4.0 + Office 2000
  • WindowsXP Pro( + SP3 + WindowsUpdate) +
    Acrobat 5.0.5  + Office 2003( + SP3)
  • WindowsXP Pro( + SP3 + WindowsUpdate) +
    Acrobat 6.0.3 Pro + Office 2003( + SP3)
  • WindowsXP Pro( + SP2 + WindowsUpdate) +
    Acrobat 7.0.9 Pro + Office 2003
  • WindowsXP Pro( + SP3 + WindowsUpdate) +
    Acrobat 7.1.4 Pro + Office 2003( + SP3)
  • WindowsXP Pro( + SP3 + WindowsUpdate) +
    Acrobat 8.2.2 Pro + Office 2003( + SP3)
  • WindowsXP Pro( + SP3 + WindowsUpdate) +
    Acrobat 9.3.2 Extended + Office 2003( + SP3)

Adobe Web 解説 URL(英語) v9.1

http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/IAC_API_OLE_Objects.103.14.html

戻る


キーボード

ブラウザ画面の文字サイズを変更するショートカットキー

  1. [ CTRL ] + [ + ]  :  文字を大きく

  2. [ CTRL ] + [ - ]  :  文字を小さく
Shortcut Keys

  1. [ CTRL ] + [ + ]  :  Up the font size

  2. [ CTRL ] + [ - ]  :  Down the font size

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

CAPTCHA


出来るだけ早く返答する様には心がけています。
が、遅くなる時もありますのでご了承ください。


SAMURAI Plugin

コメントをする時は出来れば以下もお願いします。

  • OS名 バージョン
  • Acrobat バージョン
  • ツール(Excel等) バージョン
コメントにサンプルコードを入れるとエラーになる場合が有ります。その時はコードの前後に <code> ・・・</code> タグを入れてください。

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください