DocuWorksTM Development Tool Kit 6.1 Release Notes

Feb, 2006 
Xerox Corporation

If you cannot display this file correctly, use a web browser of a latest version.
Read the following information before using DocuWorksTM Development Tool Kit (hereafter, DocuWorks Development Tool Kit).
Table of Contents
1. Overview of DocuWorks Development Tool Kit
2. Operating Environment
3. The Check Method of the Operation Environment
4. Contents of DocuWorks Development Tool Kit
5. Sample Programs
6. Change History
7. Others

1. Overview of DocuWorks Development Tool Kit

DocuWorks Development Tool Kit consists of the following development kits, which work in conjunction with DocuWorks.

(1) DocuWorks API
DocuWorks API (hereafter, XDWAPI) provides methods for converting and handling DocuWorks documents.
(2) DocuWorks Desk Plug-in SPI
DocuWorks Desk Plug-in SPI (hereafter, Plug-in SPI) provides methods for adding a new plug-in to DocuWorks Desk.
(3) DocuWorks Viewer Control Interface Specification
DocuWorks Viewer Control Interface Specification (hereafter, Viewer Control I/F) is a document that shows how to display and handle a DocuWorks document on the ActiveX controls.


2. Operating Environment

The following systems are required for XDWAPI and the application.

2-1. Operating environment of XDWAPI

(1) In order to use XDWAPI 6.1 , DocuWorks 6.1 (retail version) must be installed.
   
(2) XDWAPI does not operate in the environment where DocuWorks 5.x or earlier is installed. Do not copy the DLL files to the system directory.


2-2. Operating environment of application

The application created using the header and the library of XDWAPI operates in the following environment.
- Environment that both DocuWorks 6.x (retail version) and XDWAPI 6.x are installed.

Please notice that new functions added after XDWAPI version 6.0.0 can only work in an environment where the new versions of DocuWorks and XDWAPI are installed.

Under this environment, applications created using the header file or import library supplied by XDWAPI 5.x and 4.x can also run. The file format versions of DocuWorks file that can be processed under this environment are 4 to 9. For details of file format versions, refer to specification of XDW_GetDocumentInformation in XDWAPI.XDW.


3. The Check Method of the Operation Environment

You can check the installation status of DocuWorks as follows before installing XDWAPI.


3-1. Checking whether DocuWorks has been installed

If DocuWorks version between 4.0 and 6.x is installed, the registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\FujiXerox\MPM3\MPM3\PATH exists. Also the REG_SZ typed value of the entry indicates DocuWorks Viewer's executive file path and the executive file dwviewer.exe exists in that path.
And if DocuWorks 6.x is installed, the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\FujiXerox\MPM3\SystemInfo exists.


3-2. Acquiring version information of DocuWorks

For acquiring version information of DocuWorks, refer to section "How to Acquire the Version Data of DocuWorks Product" in XDWAPI.XDW.


4. Contents of DocuWorks Development Tool Kit

DocuWorks Development Tool Kit contains the following files. You need about 3 MB disk space in total.
 
README.HTM  This file
XDWAPI.XDW  DocuWorks API Specification
PLUGINSPI.XDW  DocuWorks Desk Plug-in SPI Specification
VCTRLIF.XDW  DocuWorks Viewer Control Interface Specification
Q&A.HTM  Q&A
XDWAPI\  
DLL\  DLL files in order to use XDWAPI
INCLUDE\  Header files in order to use XDWAPI
LIB\  Import libraries in order to use XDWAPI
BIN\  XDWAPI sample programs
XDWSMPL\  Source code of XDWAPI sample program 1
XDWSMPL2\  Source code of XDWAPI sample program 2
XDWSMPL3\  Source code of XDWAPI sample program 3
XDWSMPL4\  Source code of XDWAPI sample program 4
XDWSMPL5\  Source code of XDWAPI sample program 5
XDWSMPL6\  Source code of XDWAPI sample program 6
XDWSMPL7\  Source code of XDWAPI sample program 7
XDWSMPL8\  Source code of XDWAPI sample program 8
XDWSMPL9\  Source code of XDWAPI sample program 9
XDWSMPL10\  Source code of XDWAPI sample program 10
XDWSMPL11\  Source code of XDWAPI sample program 11
XDWSMPL12\  Source code of XDWAPI sample program 12
PLUGINSPI\
INCLUDE\  Header files in order to use Plug-in SPI
BIN\  Plug-in SPI sample program
PLGSMPL\  Source code of Plug-in SPI sample program 1
PLGSMPL2\  Source code of Plug-in SPI sample program 2
PLGSMPL3\  Source code of Plug-in SPI sample program 3

5. Sample Programs

For your understanding of XDWAPI and Plug-in SPI, the following sample programs are provided.
 
Sample programs for XDWAPI programming
  XDWSMPL   Creates DocuWorks document from image data.
  XDWSMPL2   Prints texts of a specified DocuWorks document.
  XDWSMPL3   Prints texts of text annotations in a specified DocuWorks document.
  XDWSMPL4   Creates DocuWorks document from a specified application document.
  XDWSMPL5   Adds text annotations to a specified DocuWorks document.
  XDWSMPL6   Automatically rotates and performs OCR to all pages of a specified DocuWorks documents.
  XDWSMPL7   Creates a binder and insert DocuWorks documents in a specified order.
  XDWSMPL8   Adds and updates the footer/header and page number of DocuWorks document and binder.
  XDWSMPL9   Sets document attributes to a DocuWorks document and adds date stamp annotation. Also passes those attributes to another DocuWorks document.
  XDWSMPL10   Gets link root folder information of DocuWorks Desk.
  XDWSMPL11   Adds signatures to a specified DocuWorks document.
  XDWSMPL12   Verifies signatures in a specified DocuWorks document, and gets information of signatures.
Sample for Plug-in SPI programming
  PLGSMPL   Shows example not using MFC.
  PLGSMPL2   Shows example using MFC 4.2.
  PLGSMPL3   Shows typical clone example using MFC 4.2.

XDWAPI sample programs (except XDWSMPL4) are console applications. You can run the program from a command prompt. Only XDWSMPL4 is a window base application.

In order to use the sample program of Plug-in SPI, first, copy the binary file to the directory "<DocuWorks installation directory >\bin\plugins\" and then restart DocuWorks Desk. Next, add the sample program in the Plug-in setting dialog box.

In order to build a sample program, you need Microsoft® Visual C++ 6.0 or later. In order to build PLGSMPL3, you must define constant REGKEY_PLGDATA in plgclone.c.


6. Change History


6-1. Difference between 6.0.3 and 6.1


6-1-1. Differences in XDWAPI

Major improvements in XDWAPI are as follows. For details, refer to XDWAPI.XDW.
 
(1) New features
  The following functions have been added.
  - A function that acquires security information of a DocuWorks file is added. (XDW_GetProtectionInformation)
  - A function that disables the security settings of a DocuWorks file protected by Electronic Signature or Electronic Certificate is added. (XDW_ReleaseProtectionOfDocument)
  - XDW_ProtectDocument is extended so that it can set the security by Electronic Certificate. It is also extended so that an authenticated user can reset the security set on a DocuWorks file that is already protected by Electronic Signature or Electronic Certificate.
  - XDW_SignDocument is extended so that the Electronic Certificate to be used for signature can be specified.
   
(2) Error corrections
  The following problems have been corrected.
  - XDW_SetOcrData did not return an error code even when passed the handle of a document opened with the read-only attribute. This problem has been corrected. (12547)
  - The top and bottom images for the header were not cleared when XDW_ATN_ImageFile was specified as the attribute name and NULL pointer was specified as the pAttributeValue in XDW_SetPageFormAttribute. This problem has been corrected. (12548)
  - XDW_SucceedAttribute returned an incorrect error code when the passed argument exceeded the number of documents in the binder.. This problem has been corrected. (12573)
  - XDW_SetPageFormAttribute caused a crash when the type of headers and footers were specified as XDW_PAGEFORM_HEADER/XDW_PAGEFORM_FOOTER/XDW_PAGEFORM_PAGENUMBER and the value was specified to NULL. This problem has been corrected. (12591)
  - XDW_GetCompressedPageImage caused memory leaks if it could not extract the specified file format. This problem has been corrected. (12635)


6-1-2. Differences in Viewer Control I/F

Major improvements in Viewer Control I/F are as follows. For details, refer to VCTRLIF.XDW.
 
  - Added methods for obtaining information related to DocuWorks. (GetDocumentInformation,GetPageInformation)
  - Added a method for obtaining the thumbnail image. (GetThumbnailImageHandle)


6-1-3. Others

No modification has been made to the Plug-in SPI.

7. Others

Copyright of this software (including manuals) and its backup belong to Fuji Xerox and its licenser.
Microsoft and Windows and ActiveX and Visual C++ are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
All product/brand names are trademarks or registered trademarks of their respective holders.
Contents of this file are subject to change without prior notice.

Copyright(C)1996-2006 Fuji Xerox Co.,Ltd. All rights reserved.