iac.basファイル

TOP > IAC.BAS > *


はじめに

Adobe Acrobat SDK 8.0 のサンプルに付いていた iac.basファイルの内容です。Acrobat OLE(IAC)操作で使う定数が入っています。Excel VBAとVB.NETから使用出来ます。C言語で使う時は IAC.hファイル も公開されていますから、そちらの方を使用してください。

以下に紹介しているiac.basファイルの内容には、コメント部分に分かりやすくする為に日本語と英語の説明を少し追加しています。行番号も見やすくする為に表示しているだけで実際は付いていません。

各定数の詳しい使い方は「IAC.BASの説明一覧」の方を見て下さい。


001 Option Explicit 002 003 '★ここの説明の一部は以下のURLのPDFから引用しました。 004 '★http://ftp.ktug.or.kr/obsolete/info/adobe/devtechnotes/pdffiles/5165.vwiacref.PDF 005 006 ' ADOBE SYSTEMS INCORPORATED 007 ' Copyright (C) 1994-2003 Adobe Systems Incorporated 008 ' All rights reserved. 009 ' 010 ' NOTICE: Adobe permits you to use, modify, and distribute this file 011 ' in accordance with the terms of the Adobe license agreement 012 ' accompanying it. If you have received this file from a source other 013 ' than Adobe, then your use, modification, or distribution of it 014 ' requires the prior written permission of Adobe. 015 ' 016 ' --------------------------------------------------------------------- 017 ' 018 ' iac.bas 019 ' 020 ' - This file contains enumerated data types and constants necessary 021 ' for some of the OLE method parameters. It is derived from the C 022 ' header file IAC.h 023 024 ''******************************* AV Things ****************************** '' 025 026 '* AV Application Preferences data type *' 027 028 '(Read only) The preferences file format version number. 029 Public Const avpPrefsVersion = 0 ' Int32 030 031 'If true, the “file open” dialog is displayed when the Acrobat viewer is launched without a document to open. If false, it does not. 032 Public Const avpOpenDialogAtStartup = 1 ' boolean 033 034 'If true, the Acrobat viewer splash screen is shown when the Acrobat viewer is launched. If false, it is not. 035 Public Const avpShowSplashAtStartup = 2 ' boolean 036 037 'If true, the Acrobat viewer’s toolbar is displayed. If false, it is not. The toolbar can also be shown and hidden by the user. 038 Public Const avpShowToolBar = 3 ' boolean 039 040 'If true, the Acrobat viewer remembers the location of certain dialogs (such as the Find dialog) and displays them in their previous location. If false, they are displayed in a default location. 041 Public Const avpRememberDialogs = 4 ' boolean 042 043 'If true, the Acrobat viewer displays short menus. If false, it displays long menus. 044 Public Const avpShortMenus = 5 ' boolean 045 046 'Whether thumbnail images, bookmarks, or neither should be shown along with 047 ' documents by default. Must be one of the following: 048 ' PDUseNone . Document only. 049 ' PDUseThumbs . Document plus thumbs. 050 ' PDUseBookmarks . Document plus bookmarks. 051 ' PDFullScreen . Full screen mode. 052 Public Const avpDefaultOverviewType = 6 ' Int32 053 054 'Default magnification when a document is opened. 055 Public Const avpDefaultZoomScale = 7 ' Fixed 056 057 'Default zoom type for a page view. Must be one of the values listed in Zoom strategies. 058 Public Const avpDefaultZoomType = 8 ' Int32] 059 060 'If true, the Acrobat viewer displays large images. If false, gray boxes are shown in place of large images, reducing rendering time for pages with large images. 061 Public Const avpShowLargeImages = 9 ' boolean 062 063 'If true, text smaller than avpGreekLevel is greeked (displayed as gray boxes). If false, all text is drawn, regardless of its size. 064 Public Const avpGreekText = 10 ' boolean 065 066 'Size, in points, below which text is greeked if avpGreekText is true. 067 Public Const avpGreekLevel = 11 ' Int32 068 069 'Determines whether sans serif, serif, or both substitution fonts are available when printing. Using only one substitution font type generally reduces the quality of font substitution, but may allow some files that require font substitution to print on PostScript printers that have very little memory. The allowed values are: 070 '0 . Use both sans serif and serif 071 '1 . Use sans serif only 072 '2. Use serif only 073 Public Const avpSubstituteFontType = 12 ' Int32 074 075 'If true, the Acrobat viewer renders using calibrated color. 076 Public Const avpDoCalibratedColor = 13 ' boolean 077 078 'If true, a warning dialog box is not displayed when a user deletes notes, bookmarks, links, pages, or thumbnails. If false, the dialog box is displayed. 079 Public Const avpSkipWarnings = 14 ' boolean 080 081 'The PostScript language level to use when printing to a PostScript printer. Allowed values are 1 and 2. 082 Public Const avpPSLevel = 15 ' Int32 083 084 'If true, pages are shrunk to fit the imageable area of the printer when printed. If false, pages are not shrunk to fit. 085 Public Const avpShrinkToFit = 16 ' boolean 086 087 'If true, the Acrobat viewer’s Find command (not the Search plug-in) performs case-sensitive searches. If false, searches are not case-sensitive. 088 Public Const avpCaseSensitive = 17 ' boolean 089 090 'If true, the Acrobat viewer’s Find command (not the Search plug-in) matches only whole words. If false, the partial words are also matched. 091 Public Const avpWholeWords = 18 ' boolean 092 093 'Default color to use for new notes. 094 Public Const avpNoteColor = 19 ' PDColorValue 095 096 'Default label to use for new notes. 097 Public Const avpNoteLabel = 20 ' char 098 099 'The maximum zoom factor that is automatically used when the Acrobat viewer enters “Follow Article” mode. A value of 1.0 corresponds to a zoom factor of 100%. 100 Public Const avpMaxThreadZoom = 21 ' Fixed 101 102 'If true, the following page is rendered offscreen while the current page is viewed, improving performance when a document is viewed sequentially. If false, no draw-ahead is used. 103 Public Const avpEnablePageCache = 22 ' boolean 104 105 'The background color to use when the Acrobat viewer is in Full Screen mode. 106 Public Const avpFullScreenColor = 23 ' PDColorValue 107 108 Public Const avpUnused1 = 24 ' obsolete 109 110 'Maximum zoom factor at which pages will be cached. Pages viewed at a higher zoom factor will not cached. A value of 1.0 corresponds to a zoom factor of 100%. 111 Public Const avpMaxPageCacheZoom = 25 ' Fixed: pages whose zoom > this will not be cached 112 113 'The minimum number of ticks needed to redraw a page before it will be cached. Pages that can be redrawn in less time will not be cached. A tick is 1/60 of a second. 114 Public Const avpMinPageCacheTicks = 26 ' Int32: pages which take < this to render will not be cached 115 116 'The maximum number of bytes the page cache is allowed to occupy. 117 Public Const avpMaxPageCacheBytes = 27 ' Int32: overall constraint on storage used by cache 118 119 Public Const avpUnused2 = 28 ' obsolete 120 121 'Time (in seconds) to show each page when using automatic page changing in full screen mode. 122 Public Const avpFullScreenChangeTimeDelay = 29 ' Int32 123 124 'If true, the document’s pages are displayed in a loop (rather than just once) when using full screen mode. If false, they are not. 125 Public Const avpFullScreenLoop = 30 ' boolean 126 127 'The scale at which thumbnail images are created. The Acrobat viewer’s default is fixedEighth, creating thumbnail images whose linear dimensions are oneeighth those of the actual page. 128 Public Const avpThumbViewScale = 31 ' Fixed 129 130 Public Const avpThumbViewTimeout = 32 ' Int32 131 132 'Default destination fit type for creating links and bookmarks. 133 Public Const avpDestFitType = 33 ' char 134 135 'If true, the default for creating new links and bookmarks is “Inherit zoom” 136 Public Const avpDestZoomInherit = 34 ' boolean 137 138 'Int32 (Used on Macintosh only) 139 'Specifies the way in which highlighted text is to be displayed. Can have one of 140 ' the following values: 141 ' #define HIGHLIGHT_PAINT_XOR 0 . Paint highlight color in XOR mode 142 ' #define HIGHLIGHT_INVERT_MAC 1 . Invert in special Macintosh highlight 143 ' Mode 144 ' #define HIGHLIGHT_INVERT_XOR 2 .Invert in XOR mode 145 ' This preference exists because the standard Macintosh highlighting generally works quite well, but can occasionally become invisible when text is on a colored background. 146 Public Const avpHighlightMode = 35 ' Int32 147 148 'The default width (in pixels) of the portion of the document window in which bookmarks and thumbnail images are displayed. The actual width can be changed by the user. 149 Public Const avpDefaultSplitterPos = 36 ' Int32 150 151 Public Const avpUnused3 = 37 ' obsolete 152 Public Const avpMaxCosDocCache = 38 ' Int32: max # of bytes of Cos object cache per Cos doc. 153 Public Const avpPageUnits = 39 ' PageUnits 154 Public Const avpNoteFontName = 40 ' char* 155 Public Const avpNoteFontSize = 41 ' Int32 156 Public Const avpRecentFile1 = 42 ' char * 157 Public Const avpRecentFile2 = 43 ' char * 158 Public Const avpRecentFile3 = 44 ' char * 159 Public Const avpRecentFile4 = 45 ' char * 160 Public Const avpHighlightColor = 46 ' PDColorValue 161 Public Const avpFullScreenUseTimer = 47 ' boolean 162 Public Const avpAntialiasText = 48 ' boolean 163 Public Const avpAntialiasLevel = 49 ' Int16 164 Public Const avpPersistentCacheSize = 50 ' Int32 165 Public Const avpPersistentCacheFolder = 51 ' ASPathName 166 Public Const avpPageViewLayoutMode = 52 ' PDLayoutMode 167 Public Const avpSaveAsLinearized = 53 ' boolean 168 Public Const avpMaxOpenDocuments = 54 ' Int32 169 Public Const avpTextSelectWordOrder = 55 ' Int32 170 Public Const avpMarkHiddenPages = 56 ' boolean 171 Public Const avpFullScreenTransitionType = 57 ' char* 172 Public Const avpFullScreenClick = 58 ' boolean 173 Public Const avpFullScreenEscape = 59 ' boolean 174 Public Const avpFullScreenCursor = 60 ' Int16 175 Public Const avpOpenInPlace = 61 ' boolean 176 Public Const avpShowHiddenAnnots = 62 ' boolean 177 Public Const avpFullScreenUsePageTiming = 63 ' boolean 178 Public Const avpDownloadEntireFile = 64 ' boolean 179 Public Const avpEmitHalftones = 65 ' boolean 180 Public Const avpShowMenuBar = 66 ' /*boolean*/ 181 Public Const avpIgnorePageClip = 67 '/*boolean*/ 182 Public Const avpMinimizeBookmarks = 68 '/* boolean*/ 183 Public Const avpShowAnnotSequence = 69 '/*boolean*/ 184 Public Const avpUseLogicalPageNumbers = 70 '/*boolean*/ 185 Public Const avpASExtensionDigCert = 71 '/*###cannot use via IAC*/ 186 Public Const avpShowLeftToolBar = 72 '/*boolean*/ 187 Public Const avpConfirmOpenFile = 73 '/*boolean*/ 188 Public Const avpNoteLabelEncoding = 74 '/*cannot use via IAC*/ 189 Public Const avpBookmarkShowLocation = 75 '/*boolean*/ 190 Public Const avpUseLocalFonts = 76 '/*boolean*/ 191 Public Const avpCurrCMM = 77 '/*char* */ 192 Public Const avpBrowserIntegration = 78 '/*boolean*/ 193 Public Const avpPrintAnnots = 79 '/*boolean */ 194 Public Const avpSendFarEastFonts = 80 '/*boolean */ 195 Public Const avpSuppressCSA = 81 '/*boolean */ 196 197 198 '* AVZoomType -- Variable zoom "verbs", corresponding to View menu items *' 199 200 Public Const AVZoomNoVary = 0 ' no variable zoom - use this for XYZ zoom 201 Public Const AVZoomFitPage = 1 ' fit page to window 202 Public Const AVZoomFitWidth = 2 ' fit page width to window 203 Public Const AVZoomFitHeight = 3 ' fit page height to window 204 Public Const AVZoomFitVisibleWidth = 4 ' fit visible width to window 205 Public Const AVZoomPreferred = 5 '/* use page's preferred zoom */ 206 207 208 Public Const AV_EXTERNAL_VIEW = 1 ' Open the document with tool bar visible 209 Public Const AV_DOC_VIEW = 2 ' Draw the page pane and scrollbars 210 Public Const AV_PAGE_VIEW = 4 ' Draw only the page pane 211 212 213 '********************************* PD Things ***********************************' 214 215 '* PDPageMode -- Variable for how the file opens - bookmarks, thumbnails, full screen, none *' 216 217 Public Const PDDontCare = 0 'Leave the view mode as it is. 218 Public Const PDUseNone = 1 'Display the document, but neither bookmarks nor thumbnail images. 219 Public Const PDUseThumbs = 2 'Display the document and thumbnail images. 220 Public Const PDUseBookmarks = 3 'Display the document and bookmarks. 221 Public Const PDFullScreen = 4 'Display the document in full screen mode. 222 223 224 '* PDLayoutMode -- Variable for how the file is opened - single page, one column, two column *' 225 226 Public Const PDLayoutDontCare = 0 227 Public Const PDLayoutSinglePage = 1 228 Public Const PDLayoutOneColumn = 2 229 Public Const PDLayoutTwoColumnLeft = 3 230 Public Const PDLayoutTwoColumnRight = 4 231 232 233 '* PDDocFlags -- used for Getting or Setting the flags of a PD doc *' 234 235 Public Const PDDocNeedsSave = &H1 '/* document has been modified and needs saving (get/set) */ 236 Public Const PDDocRequiresFullSave = &H2 '/* document cannot be saved incrementally; must be written with PDSaveFull. (get/set) */ 237 Public Const PDDocIsModified = &H4 '/* document has been modified internally, such as opening/closing bookmarks and annotations, but not in such a way as to warrant saving. (get only) 238 '*/ 239 Public Const PDDocDeleteOnClose = &H8 '/* document is based on a temporary file which must be deleted when the document is closed or saved. (get/set) */ 240 Public Const PDDocWasRepaired = &H10 '/* document was repaired when opened (get only) */ 241 Public Const PDDocNewMajorVersion = &H20 '/* document major version newer than current (get only) */ 242 Public Const PDDocNewMinorVersion = &H40 '/* document minor version newer than current (get only) */ 243 Public Const PDDocOldVersion = &H80 '/* document version older than current (get only) */ 244 Public Const PDDocSuppressErrors = &H100 '/* don't display errors (get/set) */ 245 Public Const PDDocIsEmbedded = &H200 '/* document is embedded in a compound doc (OLE, OpenDoc) */ 246 Public Const PDDocIsLinearized = &H400 '/* document is linearized (get only) */ 247 Public Const PDDocIsOptimized = &H800 '/* document is optimized */ 248 249 250 '* PDInsertFlags -- used for inserting pages *' 251 252 Public Const PDInsertBookmarks = &H1 '' insert bookmarks as well as pages 253 Public Const PDInsertAll = &H1000 '' insert all Catalog and Info dict values as well as pages 254 Public Const PDInsertThreads = &H2 '/* insert articles as well */ 255 256 '* Page specification defines -- use where a page number or range or count is required *' 257 ' 仕様が定義するページ--ページ番号、範囲またはカウントが必要である使用 ' 258 Public Const PDBeforeFirstPage = -1 ' 259 Public Const PDLastPage = -2 ' 260 Public Const PDAllPages = -3 ' 261 Public Const PDOddPagesOnly = -4 ' 262 Public Const PDEvenPagesOnly = -5 ' 263 264 '* PDSaveFlags -- used for PD-level Save 265 '* All undefined flags should be set to zero. 266 '* If either PDSaveCollectGarbage or PDSaveCopy are used, PDSaveFull must be used. 267 268 269 Public Const PDSaveIncremental = &H0 ' write changes only (変更だけを書いてください) 270 Public Const PDSaveFull = &H1 ' write entire file(ファイル全体を書いてください) 271 Public Const PDSaveCopy = &H2 ' write copy w'o affecting current state(現状に影響するコピーw'oに書いてください) 272 Public Const PDSaveLinearized = &H4 ' writes the file linearized for page-served remote (net) access. (ページで役立たれたリモートな(ネットの)アクセサリーのためにlinearizedされたファイルを書きます。) 273 Public Const PDSaveBinaryOK = &H10 ' /* OK to store binary in file */(ファイルを2進蓄えるために、OKです) 274 Public Const PDSaveCollectGarbage = &H20 ' perform garbage collection on unreferenced objects ''(参照されない物にガーベージコレクションを実行してください) 275 276 277 '* Enum for routines that set/get the value of a page's Rotate key. *' 278 279 Public Const pdRotate0 = 0 280 Public Const pdRotate90 = 90 281 Public Const pdRotate180 = 180 282 Public Const pdRotate270 = 270

< 戻る >



これ以降はサイト管理者が当サイト又は当ページを維持&管理するためのメモです。見る必要も無く公開用にも書いてません。

この手の情報はいつ消えるかもしれない、どこに移動するかもしれないのでこうやって残しておかないといけない。実際に参考にした唯一のURLは既に消滅している。

IAC2.basファイルがDL出来るようにしようかとも考えたが、流石にネット上から消滅したファイルでも、好き勝手は出来ない。必要な情報のみを加工してIAC.basに追加した形(上記のような形)で公開する事にした。

「IAC.hファイルも公開されています」とは書いたが、今は何処で公開されているのかな? 以前はダウンロード出来たSDKのZIPファイルの中にサンプルで入っていた。

コメントを残す

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

CAPTCHA



SAMURAI Plugin

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

  • OS名 バージョン
  • Acrobat バージョン
  • ツール(Excel等) バージョン
コメントにサンプルコードを入れる時はコードを全て全角文字列にしてください。コチラで半角に戻します。それでもエラーが回避できない時はコメント下さい。個別に対処します。



お仕事で当サイトを見ている方へ
考え込んだら、ご質問下さい。
一緒に解決策を考えましょう。

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