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) XDWAPI .NET | ||||||
XDWAPI .NET is a library for using XDWAPI from Microsoft(R) .NET Framework. | ||||||
(3) 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. | ||||||
(4) 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. | ||||||
(5) DocuWorks Content Filter (Text Filter Module) Coordination Interface Specification | ||||||
DocuWorks Content Filter Interface Specification is a document that shows how to extract text from DocuWorks documents. |
(1) | In order to use XDWAPI 7.2, DocuWorks 7.x (retail version) (version 7.0.1 or newer) must be installed. |
(2) | XDWAPI 7.2 does not operate in the environment where DocuWorks 6.x or earlier is installed. Do not copy the DLL files to the system directory. |
(3) | In order to use XDWAPI .NET, Microsoft(R) .NET Framework 2.0 or later version must be installed. |
- | Environment that both DocuWorks 7.x (retail version) and XDWAPI 7.x are installed. |
In case of using new feature of XDWAPI, DocuWorks and XDWAPI must be the same version.
Under this environment, applications created using the header file or import library supplied by XDWAPI 6.x and 5.x can also run. The file format versions of DocuWorks file that can be processed under this environment are 4 to 10. For details of file format versions, refer to specification of XDW_GetDocumentInformation in XDWAPI.XDW.
(1) | Use with 64 bit applications | ||
The interfaces applicable/inapplicable to 64-bit applications are listed below. | |||
(a) | The interfaces that can be used with 64-bit applications: | ||
- | XDWAPI | ||
- | XDWAPI .NET | ||
- | Content Filter I/F | ||
(b) | The interfaces that cannot be used with 64-bit applications: | ||
- | Plug-in SPI | ||
- | Viewer Control I/F | ||
When developing 64-bit applications, refer to the separate document, 64BIT.XDW. | |||
(2) | With 32-bit applications, all types of interface can be used. |
You can check the installation status of DocuWorks as follows before installing XDWAPI.
If DocuWorks version between 4.0 and 7.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.0 or newer 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.
DocuWorks
Development Tool Kit contains the following files. It requires about 7 MB free
disk space.
README.HTM | This file | ||
XDWAPI.XDW | DocuWorks API Specification | ||
XDWAPI_XML.XDW | DocuWorks API XML Import/Export Feature Specification | ||
XDWAPI_dotNET.XDW | DocuWorks API .NET Specification | ||
PLUGINSPI.XDW | DocuWorks Desk Plug-in SPI Specification | ||
VCTRLIF.XDW | DocuWorks Viewer Control Interface Specification | ||
DWGETTEXTIF.XDW | DocuWorks Content Filter (Text Filter Module) Coordination Interface Specification | ||
64BIT.XDW | 64 bit Windows Separate Document | ||
Q&A.HTM | Q&A | ||
XDWAPI\ | |||
DLL\ | DLL files in order to use XDWAPI (32 bit version) | ||
DLLX64\ | DLL files in order to use XDWAPI (64 bit version) | ||
SCHEMA\ | XML schema to be used for XML input/output function | ||
INCLUDE\ | Header files in order to use XDWAPI | ||
LIB\ | Import libraries in order to use XDWAPI (32 bit version) | ||
LIBX64\ | Import libraries in order to use XDWAPI (64 bit version) | ||
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 | ||
XDWSMPL13\ | Source code of XDWAPI sample program 13 | ||
XDWSMPL14\ | Source code of XDWAPI sample program 14 | ||
dotNET\ | |||
BIN\ | DLL in order to use XDWAPI .NET and Sample program | ||
XDWSMPL\ | Source code of XDWAPI .NET C# sample program 1 | ||
XDWSMPL2\ | Source code of XDWAPI .NET C# sample program 2 | ||
XDWSMPL3\ | Source code of XDWAPI .NET C# sample program 3 | ||
XDWSMPL5\ | Source code of XDWAPI .NET C# sample program 5 | ||
XDWSMPL6\ | Source code of XDWAPI .NET C# sample program 6 | ||
XDWSMPL7\ | Source code of XDWAPI .NET C# sample program 7 | ||
XDWSMPL8\ | Source code of XDWAPI .NET C# sample program 8 | ||
XDWSMPL9\ | Source code of XDWAPI .NET C# sample program 9 | ||
XDWSMPL10\ | Source code of XDWAPI .NET C# sample program 10 | ||
XDWSMPL11\ | Source code of XDWAPI .NET C# sample program 11 | ||
XDWSMPL12\ | Source code of XDWAPI .NET C# 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 | ||
DWGETTEXTIF\ | |||
INCLUDE\ | Header files in order to use Content Filter I/F | ||
LIB\ | Import libraries in order to use Content Filter I/F (32 bit version) | ||
LIBX64\ | Import libraries in order to use Content Filter I/F (64 bit version) |
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. | ||
XDWSMPL13 | Generates an XML file from a DocuWorks file. Newly adds the information described in an XML file to a DocuWorks file. | ||
XDWSMPL14 | Set every updatable annotation in a DocuWorks file with a unique ID, and then generates an XML file from the DocuWorks file. Use the XML file generated from "updateGet" to update the DocuWorks file. |
Sample for Plug-in SPI programming | |||
PLGSMPL | Shows example not using MFC. | ||
PLGSMPL2 | Shows example using MFC 8.0. | ||
PLGSMPL3 | Shows typical clone example using MFC 8.0. |
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 run Plug-in SPI sample, 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(R) Visual Studio(R) 2005 or
later version.
In order to build PLGSMPL3, you must define constant REGKEY_PLGDATA in
plgclone.c.
Error Corrections | ||
- | Regarding XDW_GetAnnotationAttributeW, corrected the problem that character strings cannot be obtained correctly when the attribute, whose value cannot be set using Unicode character strings, is specified. (16382) | |
- | Regarding XDW_SetAnnotationAttributeW, corrected the problem that character strings cannot be set correctly when the attribute, whose value cannot be set using Unicode character strings, is specified. (16398) | |
- | Regarding XDW_GetAnnotationAttribute and XDW_GetAnnotationAttributeW, corrected the problem that the default value cannot be obtained when the XDW_ATN_DateFormat attribute is not set for the Date Stamp annotation. (16403) | |
- | Regarding XDW_InsertDocumentToBinder, corrected the problem that the application program using this function is forced to quit when NULL is specified for lpszInputPath. (16474) | |
- | Regarding XDW_SetDocumentNameInBinderW, corrected the problem that a binder can be edited regardless of the following error: specifying invalid values for textType and codepage. (16476) | |
- | Regarding XDW_SetDocumentAttributeW, corrected the problem that a document can be edited regardless of the following error: specifying invalid values for textType and codepage when no document attribute is added to the DW document. (16679) | |
- | Regarding XDW_SetAnnotationCustomAttribute, corrected the problem that occasionally attributes cannot be deleted correctly when attribute(s) classified as "Others" is/are included in the user-defined attributes of an annotation. (16681) | |
- | Regarding XDW_GetLinkRootFolderInformation, corrected the problem that the application program using this function is forced to quit when NULL is specified for pLinkRootFolderInfo. (16714) | |
- | Regarding XDW_SucceedAttribute, corrected the problem that document attributes cannot be succeeded correctly. (17217) | |
- | Regarding XDW_SetAnnotationAttributeW, corrected the problem that character string cannot be set correctly for the "Date Format" attribute of the Date Stamp annotation. (17471) |
- | XDWAPI .NET: Added the library for using DocuWorks files from Microsoft(R) .NET Framework. |
New Features | ||
- | Added the function for outputting the information of a DocuWorks file such as document attribute and annotation to an XML file, and reflecting the information described in an XML file to a DocuWorks file. (XDW_GetXmlFile, XDW_SetXmlFile) | |
Error Corrections | ||
- |
Added the conversion option XDW_CREATE_OPTION_EX2 for
XDW_CreateXdwFromImageFile and XDW_CreateXdwFromImageFileAndInsertDocument.
The definition of XDW_CREATE_FITDEF, XDW_CREATE_FIT, and XDW_CREATE_FITDEF_DIVIDEBMP of nFitImage for XDW_CREATE_OPTION and XDW_CREATE_OPTION_EX is changed as follows: (16458) - XDW_CREATE_FITDEF (Before) Sets the page size at a standard paper size in which the image can fit. Does not split the pages into multiple pages, even if the size of the image file is over 2A0 Banner. (default) (Changed to) Sets the page size at a standard paper size in which the image can fit. Does not split the pages into multiple pages, even if the size of the image file is over A3. (default) - XDW_CREATE_FIT (Before) Sets the page size to be the same as the image size. (Changed to) Sets the page size to be the same as the image size. When the image size is larger than A3, the exceeding area will be cut. - XDW_CREATE_FITDEF_DIVIDEBMP (Before) Sets the page size at a standard paper size in which the image can fit. However, if a BMP file exceeding 2A0 Banner in size is input, it is split into multiple pages by the smallest standard paper size in which the width of the image can fit. (Changed to) Sets the page size at a standard paper size in which the image can fit. However, if a BMP file exceeding A3 in size is input, it is split into multiple pages by the smallest standard paper size in which the width of the image can fit. |
|
- | Added the options JPEG compression (TIFF V6 format) and JPEG compression (TTN2 format) for conversion to a TIFF file using XDW_ConvertPageToImageFile. (16387) | |
- | Changed the output format for the conversion to a TIFF file to JPEG (TIFF V6 format) when XDW_COMPRESS_JPEG is specified in XDW_ConvertPageToImageFile. (16387) |
- | Calling SetZoom to change magnification caused the paper to scroll to the upper-left. This problem has been corrected.(17110) |
Error corrections | ||
- | Corrected the error in the descriptions on the date type of XDW_SetAnnotationCustomAttribute, XDW_SetDocumentAttribute, and XDW_SetDocumentAttributeW. (9106) | |
- | Added description on the attribute name (XDW_ATN_TextAutoResizeHeight) for automatically adjusting the height of a text annotation. (16381) | |
- | Corrected the error in the description on the return value of XDW_SetAnnotationCustomAttribute. (16385) | |
- | When creating an image file from a DocuWorks file using XDW_ConvertPageToImageFile, the creation of file fails if the data size satisfies specific conditions. (16406) |
- | Methods for reflecting changes in DocuWorks, switching Browse and Edit mode, and acquiring the status. (SaveDocument, SetEditMode, GetEditMode) |
Error corrections | ||
- | When setting colors the high-order byte is not 0, XDW_SetAnnotationAttribute did not return error code. This problem has been corrected.(15884) |
New features | ||
- | A function to retrieve the page text information in Unicode onto a memory has been added. (XDW_GetPageTextToMemoryW) | |
- | A function to output the text information of DocuWorks file as a text file in Unicode has been added. (XDW_GetFullTextW) | |
- | A function to set a document attribute of DocuWorks file in Unicode, and a function to obtain the attribute in Unicode have been added. (XDW_SetDocumentAttributeW,XDW_GetDocumentAttributeByOrderW,XDW_GetDocumentAttributeByNameW) | |
- | A function to obtain an attribute of the document in binder in Unicode has been added. (XDW_GetDocumentAttributeByOrderInBinderW,XDW_GetDocumentAttributeByNameInBinderW) | |
- | A function to set an attribute of the specified annotation in Unicode, and a function to obtain the attribute in Unicode have been added. (XDW_SetAnnotationAttributeW,XDW_GetAnnotationAttributeW) | |
- | A function to obtain an original data name of DocuWorks file in Unicode has been added. (XDW_GetOriginalDataInformationW) | |
- | A function to set a title of the document in binder in Unicode, and a function to obtain the title in Unicode have been added. (XDW_SetDocumentNameInBinderW,XDW_GetDocumentNameInBinderW) | |
- | A function to set a user-defined attribute with type to an annotation, and a function to obtain the user-defined attribute in Unicode have been added. (XDW_SetAnnotationCustomAttribute,XDW_GetAnnotationCustomAttributeNumber,XDW_GetAnnotationCustomAttributeByName,XDW_GetAnnotationCustomAttributeByOrder) | |
- | For XDW_ApplyOcr, the following three settings can be designated: the level of recognition accuracy, the ratio of English to Japanese, and the setting to change English characters (alphabet and numbers) and letter symbols to one-byte characters. | |
- | The character spacing and blank spaces of a text annotation can be changed. | |
- | The setting to automatically adjust the label size to the annotation on the label can be designated. | |
- | The line type of a straight line annotation can be changed. | |
- | Ten colors have been newly added to the settable binder color. |
- | A method for displaying a page to the specified position and a method for obtaining the current display position have been added. (SetBaseViewPosition, SetBaseViewPagePoint, GetBaseViewPosition, GetBaseViewPagePoint) |