Acrobat, COM interface constants for VB.Net / VBScript

Acrobat - interface constants

     This page contains simple VBA include for the Acrobat COM library.

library parameters

File NameProgram Files\Adobe\Reader 9.0\Reader\AcroRd32.dll
Guid{E64169B3-3592-47D2-816E-602C5C13F328}
Enums6

AVZoomType

enum, 6 members.
  'Constants for zoom type.
Public Enum AVZoomType

  'Fixed value zoom.
  AVZoomNoVary = 0  '&H0

  'Fit page to window.
  AVZoomFitPage = 1  '&H1

  'Fit page width to window.
  AVZoomFitWidth = 2  '&H2

  'Fit page height to window.
  AVZoomFitHeight = 3  '&H3

  'Fit visible width to window.
  AVZoomFitVisibleWidth = 4  '&H4

  'Use page's preferred zoom.
  AVZoomPreferred = 5  '&H5
End Enum

PDRotateFlags

enum, 4 members.
  'Constants for page rotation.
Public Enum PDRotateFlags

  'Rotated 0 degrees.
  pdRotate0 = 0  '&H0

  'Rotated 90 degrees.
  pdRotate90 = 90  '&H5A

  'Rotated 180 degrees.
  pdRotate180 = 180  '&HB4

  'Rotated 270 degrees.
  pdRotate270 = 270  '&H10E
End Enum

PDViewMode

enum, 5 members.
  'Constants for page view mode.
Public Enum PDViewMode

  'Leave the view mode as it is.
  PDDontCare = 0  '&H0

  'Display the document without bookmarks or thumbnails.
  PDUseNone = 1  '&H1

  'Display the document and thumbnail images.
  PDUseThumbs = 2  '&H2

  'Display the document and bookmarks.
  PDUseBookmarks = 3  '&H3

  'Display the document in full screen mode.
  PDFullScreen = 4  '&H4
End Enum

PDDocFlags

enum, 12 members.
  'Constants for PDDoc flags.
Public Enum PDDocFlags

  'Document has been modified and needs to be saved.
  PDDocNeedsSave = 1  '&H1

  'Document cannot be saved incrementally; it must be written using PDSaveFull.
  PDDocRequiresFullSave = 2  '&H2

  'Document has been modified.
  PDDocIsModified = 4  '&H4

  'Document is based on a temporary file.
  PDDocDeleteOnClose = 8  '&H8

  'Document was repaired when it was opened.
  PDDocWasRepaired = 16  '&H10

  'Document's major version is newer than current.
  PDDocNewMajorVersion = 32  '&H20

  'Document's minor version is newer than current.
  PDDocNewMinorVersion = 64  '&H40

  'Document's version is older than current.
  PDDocOldVersion = 128  '&H80

  'Don't display errors.
  PDDocSuppressErrors = 256  '&H100

  'Document is embedded in a compound document.
  PDDocIsEmbedded = 512  '&H200

  'Document is linearized (get only).
  PDDocIsLinearized = 1024  '&H400

  'Document is optimized.
  PDDocIsOptimized = 2048  '&H800
End Enum

PDSaveFlags

enum, 7 members.
  'Constants for PDDoc save flags.
Public Enum PDSaveFlags

  'Write changes only.
  PDSaveIncremental = 0  '&H0

  'Write the entire file.
  PDSaveFull = 1  '&H1

  'Write a copy of the file into the file.
  PDSaveCopy = 2  '&H2

  'Save the file in a linearized fashion.
  PDSaveLinearized = 4  '&H4

  'Writes a PostScript header as part of the saved file.
  PDSaveWithPSHeader = 8  '&H8

  'Specifies that it's OK to store in binary file.
  PDSaveBinaryOK = 16  '&H10

  'Remove unreferenced objects, often reducing file size.
  PDSaveCollectGarbage = 32  '&H20
End Enum

AVOpenParams

enum, 3 members.
  'Constants for AVDoc open view mode.
Public Enum AVOpenParams

  'Open the document with the tool bar visible.
  AV_EXTERNAL_VIEW = 1  '&H1

  'Draw the page pane and scrollbars.
  AV_DOC_VIEW = 2  '&H2

  'Draw only the page pane.
  AV_PAGE_VIEW = 4  '&H4
End Enum
WUtils.com