AcroExch.App: GetPreferenceEx メソッド

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


説明

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

 

形式

VARIANT GetPreferenceEx(short nType);

 

引数

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

 

動作するバージョン

Version Adobe
Acrobat
備考
4
NO
Acrobat 4.0    ※Windows 98SE + Excel 2000
5
OK
Acrobat 5.0.5
6
OK
Acrobat 6.0.3 Pro
7
OK
Acrobat 7.0.9 Pro
Acrobat 7.1.4 Pro
8
OK
Acrobat 8.2.2 Pro
9
OK
Acrobat 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キーでステップ実行して動作確認します。

 

Sub AcroExch_App_GetPreferenceEx()

    'Acrobatオブジェクトの定義&作成

    'Acrobat 4,5,6 の時
'    Dim objAcroApp   As Acrobat.CAcroApp
'    Set objAcroApp = CreateObject("AcroExch.App")
    
    'Acrobat 7,8,9,10,11 の時
    Dim objAcroApp   As New Acrobat.AcroApp

    '以降はAcrobat全て共通
    Dim iRet    As Integer  '戻り値
    Dim lRet    As Long     '戻り値
    Dim vRet    As Variant  '戻り値
    Dim bRet    As Boolean  '戻り値
    Dim sRet    As String   '戻り値

    With objAcroApp
    
    'Acrobatアプリケーションpreferenceを取得する。

    'Public Const avpPrefsVersion = 0           ' Int32
    vRet = .GetPreferenceEx(avpPrefsVersion)
    Debug.Print _
        "GetPreferenceEx(avpPrefsVersion)=(" & _
        .GetPreferenceEx(avpPrefsVersion) & ")"

    'Public Const avpOpenDialogAtStartup = 1    ' boolean
    bRet = .GetPreferenceEx(avpOpenDialogAtStartup)
    Debug.Print _
        "GetPreferenceEx(avpOpenDialogAtStartup)=(" & _
        .GetPreferenceEx(avpOpenDialogAtStartup) & ")"

    'Public Const avpShowSplashAtStartup = 2    ' boolean
    bRet = .GetPreferenceEx(avpShowSplashAtStartup)
    Debug.Print _
        "GetPreferenceEx(avpShowSplashAtStartup)=(" & _
        .GetPreferenceEx(avpShowSplashAtStartup) & ")"

    'Public Const avpShowToolBar = 3            ' boolean
    bRet = .GetPreferenceEx(avpShowToolBar)
    Debug.Print _
        "GetPreferenceEx(avpShowToolBar)=(" & _
        .GetPreferenceEx(avpShowToolBar) & ")"

    'Public Const avpRememberDialogs = 4        ' boolean
    bRet = .GetPreferenceEx(avpRememberDialogs)
    Debug.Print _
        "GetPreferenceEx(avpRememberDialogs)=(" & _
        .GetPreferenceEx(avpRememberDialogs) & ")"

    'Public Const avpShortMenus = 5             ' boolean
    bRet = .GetPreferenceEx(avpShortMenus)
    Debug.Print _
        "GetPreferenceEx(avpShortMenus)=(" & _
        .GetPreferenceEx(avpShortMenus) & ")"

    'Public Const avpDefaultOverviewType = 6    ' Int32
    lRet = .GetPreferenceEx(avpDefaultOverviewType)
    Debug.Print _
        "GetPreferenceEx(avpDefaultOverviewType)=(" & _
        .GetPreferenceEx(avpDefaultOverviewType) & ")"

    'Public Const avpDefaultZoomScale = 7       ' Fixed
    lRet = .GetPreferenceEx(avpDefaultZoomScale)
    Debug.Print _
        "GetPreferenceEx(avpDefaultZoomScale)=(" & _
        .GetPreferenceEx(avpDefaultZoomScale) & ")"

    'Public Const avpDefaultZoomType = 8        ' Int32
    lRet = .GetPreferenceEx(avpDefaultZoomType)
    Debug.Print _
        "GetPreferenceEx(avpDefaultZoomType)=(" & _
        .GetPreferenceEx(avpDefaultZoomType) & ")"

    'Public Const avpShowLargeImages = 9        ' boolean
    bRet = .GetPreferenceEx(avpShowLargeImages)
    Debug.Print _
        "GetPreferenceEx(avpShowLargeImages)=(" & _
        .GetPreferenceEx(avpShowLargeImages) & ")"

    'Public Const avpGreekText = 10             ' boolean
    bRet = .GetPreferenceEx(avpGreekText)
    Debug.Print _
        "GetPreferenceEx(avpGreekText)=(" & _
        .GetPreferenceEx(avpGreekText) & ")"

    'Public Const avpGreekLevel = 11            ' Int32
    lRet = .GetPreferenceEx(avpGreekLevel)
    Debug.Print _
        "GetPreferenceEx(avpGreekLevel)=(" & _
        .GetPreferenceEx(avpGreekLevel) & ")"

    'Public Const avpSubstituteFontType = 12    ' Int32
    lRet = .GetPreferenceEx(avpSubstituteFontType)
    Debug.Print _
        "GetPreferenceEx(avpSubstituteFontType)=(" & _
        .GetPreferenceEx(avpSubstituteFontType) & ")"

    'Public Const avpDoCalibratedColor = 13     ' boolean
    bRet = .GetPreferenceEx(avpDoCalibratedColor)
    Debug.Print _
        "GetPreferenceEx(avpDoCalibratedColor)=(" & _
        .GetPreferenceEx(avpDoCalibratedColor) & ")"

    'Public Const avpSkipWarnings = 14          ' boolean
    bRet = .GetPreferenceEx(avpSkipWarnings)
    Debug.Print _
        "GetPreferenceEx(avpSkipWarnings)=(" & _
        .GetPreferenceEx(avpSkipWarnings) & ")"

    'Public Const avpPSLevel = 15               ' Int32
    lRet = .GetPreferenceEx(avpPSLevel)
    Debug.Print _
        "GetPreferenceEx(avpPSLevel)=(" & _
        .GetPreferenceEx(avpPSLevel) & ")"

    'Public Const avpShrinkToFit = 16           ' boolean
    bRet = .GetPreferenceEx(avpShrinkToFit)
    Debug.Print _
        "GetPreferenceEx(avpShrinkToFit)=(" & _
        .GetPreferenceEx(avpShrinkToFit) & ")"

    'Public Const avpCaseSensitive = 17         ' boolean
    bRet = .GetPreferenceEx(avpCaseSensitive)
    Debug.Print _
        "GetPreferenceEx(avpCaseSensitive)=(" & _
        .GetPreferenceEx(avpCaseSensitive) & ")"

    'Public Const avpWholeWords = 18            ' boolean
    bRet = .GetPreferenceEx(avpWholeWords)
    Debug.Print _
        "GetPreferenceEx(avpWholeWords)=(" & _
        .GetPreferenceEx(avpWholeWords) & ")"

    'Public Const avpNoteColor = 19             ' PDColorValue
    lRet = .GetPreferenceEx(avpNoteColor)
    Debug.Print _
        "GetPreferenceEx(avpNoteColor)=(" & _
        .GetPreferenceEx(avpNoteColor) & ")"

    'Public Const avpNoteLabel = 20             ' char
    sRet = .GetPreferenceEx(avpNoteLabel)
    Debug.Print _
        "GetPreferenceEx(avpNoteLabel)=(" & _
        .GetPreferenceEx(avpNoteLabel) & ")"

    'Public Const avpMaxThreadZoom = 21         ' Fixed
    lRet = .GetPreferenceEx(avpMaxThreadZoom)
    Debug.Print _
        "GetPreferenceEx(avpMaxThreadZoom)=(" & _
        .GetPreferenceEx(avpMaxThreadZoom) & ")"

    'Public Const avpEnablePageCache = 22       ' boolean
    bRet = .GetPreferenceEx(avpEnablePageCache)
    Debug.Print _
        "GetPreferenceEx(avpEnablePageCache)=(" & _
        .GetPreferenceEx(avpEnablePageCache) & ")"

    'Public Const avpFullScreenColor = 23       ' PDColorValue
    lRet = .GetPreferenceEx(avpFullScreenColor)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenColor)=(" & _
        .GetPreferenceEx(avpFullScreenColor) & ")"

    'Public Const avpUnused1 = 24               ' obsolete
    lRet = .GetPreferenceEx(avpUnused1)
    Debug.Print _
        "GetPreferenceEx(avpUnused1)=(" & _
        .GetPreferenceEx(avpUnused1) & ")"
    ' Fixed: pages whose zoom > this will not be cached

    'Public Const avpMaxPageCacheZoom = 25
    lRet = .GetPreferenceEx(avpMaxPageCacheZoom)
    Debug.Print _
        "GetPreferenceEx(avpMaxPageCacheZoom)=(" & _
        .GetPreferenceEx(avpMaxPageCacheZoom) & ")"
    ' Int32: pages which take < this to render will not be cached

    'Public Const avpMinPageCacheTicks = 26
    lRet = .GetPreferenceEx(avpMinPageCacheTicks)
    Debug.Print _
        "GetPreferenceEx(avpMinPageCacheTicks)=(" & _
        .GetPreferenceEx(avpMinPageCacheTicks) & ")"
    ' Int32: overall constraint on storage used by cache

    'Public Const avpMaxPageCacheBytes = 27
    lRet = .GetPreferenceEx(avpMaxPageCacheBytes)
    Debug.Print _
        "GetPreferenceEx(avpMaxPageCacheBytes)=(" & _
        .GetPreferenceEx(avpMaxPageCacheBytes) & ")"

    'Public Const avpUnused2 = 28               ' obsolete
    lRet = .GetPreferenceEx(avpUnused2)
    Debug.Print _
        "GetPreferenceEx(avpUnused2)=(" & _
        .GetPreferenceEx(avpUnused2) & ")"

    'Public Const avpFullScreenChangeTimeDelay = 29 ' Int32
    lRet = .GetPreferenceEx(avpFullScreenChangeTimeDelay)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenChangeTimeDelay)=(" & _
        .GetPreferenceEx(avpFullScreenChangeTimeDelay) & ")"

    'Public Const avpFullScreenLoop = 30        ' boolean
    bRet = .GetPreferenceEx(avpFullScreenLoop)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenLoop)=(" & _
        .GetPreferenceEx(avpFullScreenLoop) & ")"

    'Public Const avpThumbViewScale = 31        ' Fixed
    lRet = .GetPreferenceEx(avpThumbViewScale)
    Debug.Print _
        "GetPreferenceEx(avpThumbViewScale)=(" & _
        .GetPreferenceEx(avpThumbViewScale) & ")"

    'Public Const avpThumbViewTimeout = 32      ' Int32
    lRet = .GetPreferenceEx(avpThumbViewTimeout)
    Debug.Print _
        "GetPreferenceEx(avpThumbViewTimeout)=(" & _
        .GetPreferenceEx(avpThumbViewTimeout) & ")"

    'Public Const avpDestFitType = 33           ' char
    sRet = .GetPreferenceEx(avpDestFitType)
    Debug.Print _
        "GetPreferenceEx(avpDestFitType)=(" & _
        .GetPreferenceEx(avpDestFitType) & ")"

    'Public Const avpDestZoomInherit = 34       ' boolean
    bRet = .GetPreferenceEx(avpDestZoomInherit)
    Debug.Print _
        "GetPreferenceEx(avpDestZoomInherit)=(" & _
        .GetPreferenceEx(avpDestZoomInherit) & ")"

    'Public Const avpHighlightMode = 35         ' Int32
    lRet = .GetPreferenceEx(avpHighlightMode)
    Debug.Print _
        "GetPreferenceEx(avpHighlightMode)=(" & _
        .GetPreferenceEx(avpHighlightMode) & ")"

    'Public Const avpDefaultSplitterPos = 36    ' Int32
    lRet = .GetPreferenceEx(avpDefaultSplitterPos)
    Debug.Print _
        "GetPreferenceEx(avpDefaultSplitterPos)=(" & _
        .GetPreferenceEx(avpDefaultSplitterPos) & ")"

    'Public Const avpUnused3 = 37               ' obsolete
    lRet = .GetPreferenceEx(avpUnused3)
    Debug.Print _
        "GetPreferenceEx(avpUnused3)=(" & _
        .GetPreferenceEx(avpUnused3) & ")"
    ' Int32: max # of bytes of Cos object cache per Cos doc.

    'Public Const avpMaxCosDocCache = 38
    lRet = .GetPreferenceEx(avpMaxCosDocCache)
    Debug.Print _
        "GetPreferenceEx(avpMaxCosDocCache)=(" & _
        .GetPreferenceEx(avpMaxCosDocCache) & ")"

    'Public Const avpPageUnits = 39             ' PageUnits
    lRet = .GetPreferenceEx(avpPageUnits)
    Debug.Print _
        "GetPreferenceEx(avpPageUnits)=(" & _
        .GetPreferenceEx(avpPageUnits) & ")"

    'Public Const avpNoteFontName = 40          ' char*
    sRet = .GetPreferenceEx(avpNoteFontName)
    Debug.Print _
        "GetPreferenceEx(avpNoteFontName)=(" & _
        .GetPreferenceEx(avpNoteFontName) & ")"

    'Public Const avpNoteFontSize = 41          ' Int32
    bRet = .GetPreferenceEx(avpNoteFontSize)
    Debug.Print _
        "GetPreferenceEx(avpNoteFontSize)=(" & _
        .GetPreferenceEx(avpNoteFontSize) & ")"

    'Public Const avpRecentFile1 = 42           ' char *
    sRet = .GetPreferenceEx(avpRecentFile1)
    Debug.Print _
        "GetPreferenceEx(avpRecentFile1)=(" & _
        .GetPreferenceEx(avpRecentFile1) & ")"

    'Public Const avpRecentFile2 = 43           ' char *
    sRet = .GetPreferenceEx(avpRecentFile2)
    Debug.Print _
        "GetPreferenceEx(avpRecentFile2)=(" & _
        .GetPreferenceEx(avpRecentFile2) & ")"

    'Public Const avpRecentFile3 = 44           ' char *
    sRet = .GetPreferenceEx(avpRecentFile3)
    Debug.Print _
        "GetPreferenceEx(avpRecentFile3)=(" & _
        .GetPreferenceEx(avpRecentFile3) & ")"

    'Public Const avpRecentFile4 = 45           ' char *
    sRet = .GetPreferenceEx(avpRecentFile4)
    Debug.Print _
        "GetPreferenceEx(avpRecentFile4)=(" & _
        .GetPreferenceEx(avpRecentFile4) & ")"

    'Public Const avpHighlightColor = 46        ' PDColorValue
    lRet = .GetPreferenceEx(avpHighlightColor)
    Debug.Print _
        "GetPreferenceEx(avpHighlightColor)=(" & _
        .GetPreferenceEx(avpHighlightColor) & ")"

    'Public Const avpFullScreenUseTimer = 47    ' boolean
    bRet = .GetPreferenceEx(avpFullScreenUseTimer)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenUseTimer)=(" & _
        .GetPreferenceEx(avpFullScreenUseTimer) & ")"

    'Public Const avpAntialiasText = 48         ' boolean
    bRet = .GetPreferenceEx(avpAntialiasText)
    Debug.Print _
        "GetPreferenceEx(avpAntialiasText)=(" & _
        .GetPreferenceEx(avpAntialiasText) & ")"

    'Public Const avpAntialiasLevel = 49        ' Int16
    iRet = .GetPreferenceEx(avpAntialiasLevel)
    Debug.Print _
        "GetPreferenceEx(avpAntialiasLevel)=(" & _
        .GetPreferenceEx(avpAntialiasLevel) & ")"

    'Public Const avpPersistentCacheSize = 50   ' Int32
    lRet = .GetPreferenceEx(avpPersistentCacheSize)
    Debug.Print _
        "GetPreferenceEx(avpPersistentCacheSize)=(" & _
        .GetPreferenceEx(avpPersistentCacheSize) & ")"

    'Public Const avpPersistentCacheFolder = 51 ' ASPathName
    lRet = .GetPreferenceEx(avpPersistentCacheFolder)
    Debug.Print _
        "GetPreferenceEx(avpPersistentCacheFolder)=(" & _
        .GetPreferenceEx(avpPersistentCacheFolder) & ")"

    'Public Const avpPageViewLayoutMode = 52    ' PDLayoutMode
    lRet = .GetPreferenceEx(avpPageViewLayoutMode)
    Debug.Print _
        "GetPreferenceEx(avpPageViewLayoutMode)=(" & _
        .GetPreferenceEx(avpPageViewLayoutMode) & ")"

    'Public Const avpSaveAsLinearized = 53      ' boolean
    bRet = .GetPreferenceEx(avpSaveAsLinearized)
    Debug.Print _
        "GetPreferenceEx(avpSaveAsLinearized)=(" & _
        .GetPreferenceEx(avpSaveAsLinearized) & ")"

    'Public Const avpMaxOpenDocuments = 54      ' Int32
    lRet = .GetPreferenceEx(avpMaxOpenDocuments)
    Debug.Print _
        "GetPreferenceEx(avpMaxOpenDocuments)=(" & _
        .GetPreferenceEx(avpMaxOpenDocuments) & ")"

    'Public Const avpTextSelectWordOrder = 55   ' Int32
    lRet = .GetPreferenceEx(avpTextSelectWordOrder)
    Debug.Print _
        "GetPreferenceEx(avpTextSelectWordOrder)=(" & _
        .GetPreferenceEx(avpTextSelectWordOrder) & ")"

    'Public Const avpMarkHiddenPages = 56       ' boolean
    bRet = .GetPreferenceEx(avpMarkHiddenPages)
    Debug.Print _
        "GetPreferenceEx(avpMarkHiddenPages)=(" & _
        .GetPreferenceEx(avpMarkHiddenPages) & ")"

    'Public Const avpFullScreenTransitionType = 57 ' char*
    sRet = .GetPreferenceEx(avpFullScreenTransitionType)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenTransitionType)=(" & _
        .GetPreferenceEx(avpFullScreenTransitionType) & ")"

    'Public Const avpFullScreenClick = 58       ' boolean
    bRet = .GetPreferenceEx(avpFullScreenClick)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenClick)=(" & _
        .GetPreferenceEx(avpFullScreenClick) & ")"

    'Public Const avpFullScreenEscape = 59      ' boolean
    bRet = .GetPreferenceEx(avpFullScreenEscape)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenEscape)=(" & _
        .GetPreferenceEx(avpFullScreenEscape) & ")"

    'Public Const avpFullScreenCursor = 60      ' Int16
    iRet = .GetPreferenceEx(avpFullScreenCursor)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenCursor)=(" & _
        .GetPreferenceEx(avpFullScreenCursor) & ")"

    'Public Const avpOpenInPlace = 61           ' boolean
    bRet = .GetPreferenceEx(avpOpenInPlace)
    Debug.Print _
        "GetPreferenceEx(avpOpenInPlace)=(" & _
        .GetPreferenceEx(avpOpenInPlace) & ")"

    'Public Const avpShowHiddenAnnots = 62      ' boolean
    bRet = .GetPreferenceEx(avpShowHiddenAnnots)
    Debug.Print _
        "GetPreferenceEx(avpShowHiddenAnnots)=(" & _
        .GetPreferenceEx(avpShowHiddenAnnots) & ")"

    'Public Const avpFullScreenUsePageTiming = 63  ' boolean
    bRet = .GetPreferenceEx(avpFullScreenUsePageTiming)
    Debug.Print _
        "GetPreferenceEx(avpFullScreenUsePageTiming)=(" & _
        .GetPreferenceEx(avpFullScreenUsePageTiming) & ")"

    'Public Const avpDownloadEntireFile = 64    ' boolean
    bRet = .GetPreferenceEx(avpDownloadEntireFile)
    Debug.Print _
        "GetPreferenceEx(avpDownloadEntireFile)=(" & _
        .GetPreferenceEx(avpDownloadEntireFile) & ")"

    'Public Const avpEmitHalftones = 65         ' boolean
    bRet = .GetPreferenceEx(avpEmitHalftones)
    Debug.Print _
        "GetPreferenceEx(avpEmitHalftones)=(" & _
        .GetPreferenceEx(avpEmitHalftones) & ")"

    'Public Const avpShowMenuBar = 66            ' /*boolean*/
    bRet = .GetPreferenceEx(avpShowMenuBar)
    Debug.Print _
        "GetPreferenceEx(avpShowMenuBar)=(" & _
        .GetPreferenceEx(avpShowMenuBar) & ")"

    'Public Const avpIgnorePageClip = 67         '/*boolean*/
    bRet = .GetPreferenceEx(avpIgnorePageClip)
    Debug.Print _
        "GetPreferenceEx(avpIgnorePageClip)=(" & _
        .GetPreferenceEx(avpIgnorePageClip) & ")"

    'Public Const avpMinimizeBookmarks = 68    '/* boolean*/
    bRet = .GetPreferenceEx(avpMinimizeBookmarks)
    Debug.Print _
        "GetPreferenceEx(avpMinimizeBookmarks)=(" & _
        .GetPreferenceEx(avpMinimizeBookmarks) & ")"

    'Public Const avpShowAnnotSequence = 69      '/*boolean*/
    bRet = .GetPreferenceEx(avpShowAnnotSequence)
    Debug.Print _
        "GetPreferenceEx(avpShowAnnotSequence)=(" & _
        .GetPreferenceEx(avpShowAnnotSequence) & ")"

    'Public Const avpUseLogicalPageNumbers = 70  '/*boolean*/
    bRet = .GetPreferenceEx(avpUseLogicalPageNumbers)
    Debug.Print _
        "GetPreferenceEx(avpUseLogicalPageNumbers)=(" & _
        .GetPreferenceEx(avpUseLogicalPageNumbers) & ")"

    'Public Const avpASExtensionDigCert = 71 
'/*###cannot use via IAC*/
    lRet = .GetPreferenceEx(avpASExtensionDigCert)
    Debug.Print _
        "GetPreferenceEx(avpASExtensionDigCert)=(" & _
        .GetPreferenceEx(avpASExtensionDigCert) & ")"

    'Public Const avpShowLeftToolBar = 72        '/*boolean*/
    bRet = .GetPreferenceEx(avpShowLeftToolBar)
    Debug.Print _
        "GetPreferenceEx(avpShowLeftToolBar)=(" & _
        .GetPreferenceEx(avpShowLeftToolBar) & ")"

    'Public Const avpConfirmOpenFile = 73        '/*boolean*/
    bRet = .GetPreferenceEx(avpConfirmOpenFile)
    Debug.Print _
        "GetPreferenceEx(avpConfirmOpenFile)=(" & _
        .GetPreferenceEx(avpConfirmOpenFile) & ")"

    'Public Const avpNoteLabelEncoding = 74      '/*cannot use via IAC*/
    lRet = .GetPreferenceEx(avpNoteLabelEncoding)
    Debug.Print _
        "GetPreferenceEx(avpNoteLabelEncoding)=(" & _
        .GetPreferenceEx(avpNoteLabelEncoding) & ")"

    'Public Const avpBookmarkShowLocation = 75   '/*boolean*/
    bRet = .GetPreferenceEx(avpBookmarkShowLocation)
    Debug.Print _
        "GetPreferenceEx(avpBookmarkShowLocation)=(" & _
        .GetPreferenceEx(avpBookmarkShowLocation) & ")"

    'Public Const avpUseLocalFonts = 76          '/*boolean*/
    bRet = .GetPreferenceEx(avpUseLocalFonts)
    Debug.Print _
        "GetPreferenceEx(avpUseLocalFonts)=(" & _
        .GetPreferenceEx(avpUseLocalFonts) & ")"

    'Public Const avpCurrCMM = 77                '/*char* */
    sRet = .GetPreferenceEx(avpCurrCMM)
    Debug.Print _
        "GetPreferenceEx(avpCurrCMM)=(" & _
        .GetPreferenceEx(avpCurrCMM) & ")"

    'Public Const avpBrowserIntegration = 78     '/*boolean*/
    bRet = .GetPreferenceEx(avpBrowserIntegration)
    Debug.Print _
        "GetPreferenceEx(avpBrowserIntegration)=(" & _
        .GetPreferenceEx(avpBrowserIntegration) & ")"

    'Public Const avpPrintAnnots = 79            '/*boolean */
    bRet = .GetPreferenceEx(avpPrintAnnots)
    Debug.Print _
        "GetPreferenceEx(avpPrintAnnots)=(" & _
        .GetPreferenceEx(avpPrintAnnots) & ")"

    'Public Const avpSendFarEastFonts = 80       '/*boolean */
    bRet = .GetPreferenceEx(avpSendFarEastFonts)
    Debug.Print _
        "GetPreferenceEx(avpSendFarEastFonts)=(" & _
        .GetPreferenceEx(avpSendFarEastFonts) & ")"

    'Public Const avpSuppressCSA = 81            '/*boolean */
    bRet = .GetPreferenceEx(avpSuppressCSA)
    Debug.Print _
        "GetPreferenceEx(avpSuppressCSA)=(" & _
        .GetPreferenceEx(avpSuppressCSA) & ")"
    End With
    
    Set objAcroApp = Nothing

End Sub

 

実行結果 v9.2の結果

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

VBA(Excel)からAcrobat経由でPDFをプログラミング操作(OLE:IAC)する