DocuWorks Development Tool Kit consists of the following development kits and technical information, 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/DocuWorks Viewer Light Control Interface Specification | ||||||
DocuWorks Viewer Control and DocuWorks Viewer Light 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. |
(1) | In order to use XDWAPI 6.2 , DocuWorks 6.x (retail version) must be installed. |
(2) | XDWAPI 6.2 does not operate in the environment where DocuWorks 5.x or earlier is installed. Do not copy the DLL files to the system directory. |
- | 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.
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.
For acquiring version information of DocuWorks, refer to section "How to Acquire the Version Data of DocuWorks Product" in XDWAPI.XDW.
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 | |||
NOTE.XDW | Note for English Version Users | |||
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 |
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.
(1) | New features | |
The following functions have been added. | ||
- | Coordinates of the starting point and ending point of a straight line annotation can be acquired. | |
- | Received stamp annotation can be added to the the document. (XDW_AddAnnotation,XDW_AddAnnotationOnParentAnnotation) | |
- | The size of received stamp annotation can be changed. (XDW_SetAnnotationSize) | |
(2) | Error corrections | |
The following problems have been corrected. | ||
- | XDW_GetPageTextToMemory,XDW_GetDocumentAttributeByName,XDW_GetDocumentAttributeByOrder,XDW_GetDocumentAttributeByNameInBinder, and XDW_GetDocumentAttributeByOrderInBinder did not return the byte count of the required area but an error code when nDataSize is smaller than required area. This problem has been corrected. (12798) |
- | Added descriptions about DocuWorks Viewer Light Control. | |
- | Added descriptions about LoadFileEx. |
(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) |
- | Added methods for obtaining information related to DocuWorks. (GetDocumentInformation,GetPageInformation) | |
- | Added a method for obtaining the thumbnail image. (GetThumbnailImageHandle) |