Creating A Window; Defining The Parameters For An External Window - Adobe ACROBAT SDK 8.1 Manual

Developing plug-ins and applications
Table of Contents

Advertisement

Adobe Acrobat SDK
Developing Plug-ins and Applications

Creating a Window

You must programmatically create the external window in which to display a PDF document. To create a
window, you invoke standard platform C functions and not the Acrobat core API. For example, if you are
creating your plug-in in Windows, you can use the Win32 API to create a window. In this situation, part of
the process of creating a window is to register the window class and define the window procedure. After
you perform these tasks, you can obtain a handle to the window by invoking the
function. For information about this function, see the MSDN online help at
http://msdn.microsoft.com/library/default.asp.
Note:
Application logic that creates a window is shown in
window" on page

Defining the parameters for an external window

You must create an
external window. This object defines required parameters for opening a PDF document within an external
window. After you create an
attributes:
size: The size of the data structure. This attribute must be set to
useFrame: If
document is displayed. If
frame: An
displayed. In the Windows operating system, the coordinates are MDI client coordinates. In Mac OS, the
coordinates are global screen coordinates. This attribute is ignored if the
useVisible: If
document is opened. If this attribute is
visible: Specifies the window's visibility. If this attribute is
, then the
true
If you are using the Windows operating system and this attribute is
in a visible window. If this attribute is false, the PDF document is opened in a minimized window. This
attribute is ignored if the
useServerType: An
serverCreationData
serverType: The name of the
window.
serverCreationData: Platform-dependent server data to associate with the
serverType
ExternalDocServerCreationData
useViewType: An
viewType: Specifies the appearance of the window that contains the PDF document. The following
values are valid:
80.
AVDocOpenParamsRec
AVDocOpenParamsRec
, the
true
frame
false
object specifying the size and location of the window in which the PDF document is
AVRect
, the
true
visible
attribute is ignored regardless of the value of the
frame
useVisible
value that specifies whether the
ASBool
attributes are used.
attribute is
EXTERNAL
value that specifies whether the
ASBool
AVPageView: Displays only the page view of the document. User interface components such as
display scrollbars, toolbars, bookmarks, and thumbnails panes are not displayed. Annotations,
such as links, are active.
AVDocView: Displays the page view of the document as well as scroll bars, bookmarks, and the
thumbnails pane. Annotations, such as links, are active.
object in order to open and display a PDF document in an
object, allocate its buffer size and set the following
attribute specifies the size and location of the window in which the PDF
, the
attribute is ignored and a default frame is used.
frame
attribute determines whether the window is visible after the PDF
, then the
false
attribute is
false
server for this
AVDoc
AVDoc
, this attribute must be assigned the address of the
object.
Working with Documents and Files
CreateWindow
"Opening a PDF document in an external
sizeof(AVDocOpenParamsRec)
useFrame
attribute is ignored.
visible
and the
false
useVisible
useFrame
, the PDF document is opened
true
.
and
serverType
object. Specify
EXTERNAL
AVDoc
attribute is used.
viewType
Creating a Window
75
.
attribute is
.
false
attribute is
attribute.
for an external
server. If the

Advertisement

Table of Contents
loading

Table of Contents