# A3DPDFInitializePDFLibAndResourceDirectory

A3DStatus `A3DPDFInitializePDFLibAndResourceDirectory`(const A3DUTF8Char *pcResourceDirectory)
  `A3DStatus` A3DPDFInitializePDFLibAndResourceDirectory(const `A3DUTF8Char`* pcResourceDirectory)

  Function to initialize the PDF Library and set the resource directory.

  This function initializes the Adobe PDF Library which is internally used by HOOPS Publish, and indicates where the resource directory is located. The resource directory is used by the Adobe PDF Library to manipulate text data. Customers should consider as a general rule that a complete resource directory (subfolders included) should always exist in the distribution and should always be specified to the `A3DPDFInitializePDFLibAndResourceDirectory()`function. Not providing a valid resource directory can lead to unexpected behavior and crashes. As an example, the Table functionality fails if the resource directory doesn’t exist or is not specified. A minimal exception to this rule might be when the PDF document generated doesn’t contain any text strings, whatever the source (added with HOOPS Publish functions or even already defined in a provided PDF template).

  The resource directory is provided with the HOOPS Publish package in the binresource folder. Please also consider all subfolders as part of the resources.

  This function should be called before calling any function working on the PDF document, and only once during the life of the application.

  Parameters

  > pcResourceDirectory: The path of an existing directory with full resource definition as provided in the HOOPS Publish package. The path must be absolute, or must be relative to the location of your binary files. If relative, please make it start by a ‘.’ or “..” character. Empty string (“”) is valid but should be used very cautiously as not using resources can lead to unexpected behavior and crashes (see function description).

  Returns

  > A3D_SUCCESS in case of success or an error code

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...