Acrobat Catalog is a plug-in that allows you to create a full-text index of a set of PDF documents. A
full-text index is a searchable database of all the text in the documents. After building an index,
you can use the Search command to search the entire library quickly. Searches of
full-text indexes created using Catalog are faster and more convenient than using
the Find command.
The Catalog plug-in has an HFT consisting of several methods that plug-in developers can
import and use. In addition, Catalog supports DDE, and broadcasts several Windows messages.
Catalog DDE
This document describes the Catalog HFT. The Interapplication Communication (IAC) APIs
supported by the Acrobat Catalog plug-in are described
in Developing Applications using Interapplication Communication
and the Interapplication Communication API Reference.
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CatalogHFT_Error 1
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CatalogHFT_LATEST_VERSION (0L)
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CatalogHFT_NAME "Catalog"
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CatalogNUMSELECTORS (CatalogNUMSELECTORSplusOne - 1)
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define CatalogRealHFT_NAME ("$"CatalogHFT_NAME)
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define Init_CatalogHFT ASExtensionMgrGetHFT(ASAtomFromString(CatalogHFT_NAME), CatalogHFT_LATEST_VERSION)
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define kIndexAvailableFlag (1L << 0)
DescriptionThe index is available for searching.
Indices that are not available appear grayed out in the Search plug-in's user interface.
File: SrchType.h |
Line: 218 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define kIndexExists ((SearchIndexPtr)-1)
File: SrchType.h |
Line: 236 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define kIndexPtrInvalidFlag (1L << 31)
Description(Read only - cannot be set)
The index cannot be located; it does not exist. In practice, kIndexAvailableFlag should always be set.
File: SrchType.h |
Line: 233 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define kIndexSelectedFlag (1L << 1)
DescriptionThe index is used for searching.
Indices that are selected appear with a filled in check box in the Search plug-in's user interface.
File: SrchType.h |
Line: 226 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
enum CatalogStatus {
| CatalogIdle = 0, |
|
| CatalogBuilding, |
|
| CatalogPurging, |
|
| CatalogWaiting |
}
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Elements
| IndexInvalid | Input path is not correct, or Catalog was not able to load the index. |
|
| IndexCouldNotBeSaved | Catalog was unable to save the index at the given path. |
|
| IndexBuildDone | The build operation was valid and was completed. |
|
| IndexPurgeDone | The purge operation was valid and was completed. |
|
| IndexLoadDone | The index was loaded successfully. |
|
| CatalogBusy | Catalog is currently busy and could not process the request. |
|
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
HFT gCatalogHFT;
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Launch Catalog. If Catalog is already launched, its window is activated.
See Also
File: catprocs.h |
Line: 24 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Builds an index. If Catalog is not already open, it is launched.
Parameters
Returns
See Also
File: catprocs.h |
Line: 50 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Returns the current status of Catalog.
Returns
File: catprocs.h |
Line: 65 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Opens an already existing index. If Catalog is not already open, it is launched.
Parameters
| szIndex — | The full path of the index (including the .pdx extension). If it is invalid, the method does nothing. |
Returns
See Also
Exceptions
None
File: catprocs.h |
Line: 36 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
Purges an already existing index. If Catalog is not already open, it is launched.
Parameters
| szIndex — | IN The full path of the index (including the .pdx extension). If it is invalid, the method does nothing. |
Returns
See Also
File: catprocs.h |
Line: 60 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
ASBool SetUpCatalogHFTServer() |
Returns
© 2004-2013 Adobe Systems Incorporated. All rights reserved.
Thu Jan 21 2016, 11:19 AM IST