22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

17.2 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

Running <strong>DLI</strong> Sample Applications<br />

Notes on each specific <strong>DLI</strong> sample follow below. You are not required to test any or all of them, but if<br />

you do, we suggest running them in the order given below.<br />

Some samples require one or more comm<strong>and</strong>-line arguments, <strong>and</strong> will prompt for them if not given.<br />

You should find the following <strong>DLI</strong> samples in individual subfolders under<br />

C:\<strong>Datalogics</strong>\APDFL7.0.0\<strong>DLI</strong>\Samples (or similar). On Windows platforms, a Visual Studio<br />

Solution file for all <strong>DLI</strong> samples can be found in C:\<strong>Datalogics</strong>\APDFL7.0.0\<strong>DLI</strong>\Samples\All<br />

(see dli_samples.sln).<br />

NOTE: Sample applications included in each release are subject to change. Some<br />

samples may not appear in releases on certain platforms.<br />

Activating Files-in-Memory<br />

In the MultiDoc sample, adding the comm<strong>and</strong>-line keyword "MEMORY" will run the application using<br />

Files-in-Memory methods. This will make use of memory work files instead of I/O processing to disk, <strong>and</strong><br />

as a result should show improved processing times.<br />

Within the sample, "MEMORY" is recognized as an indicator which then determines the calling arguments<br />

for dlpdfinit, as shown in the following typical excerpt, where FileSystemType is defined as<br />

eMemFileSys if MEMORY was found in the calling arguments for the application:<br />

switch (FileSystemType)<br />

{<br />

case eStdFileSys:<br />

pdfInstance=dlpdfinit(&DataRec, NULL, NULL);<br />

break;<br />

case eMemFileSys:<br />

pdfInstance=dlpdfinit(&DataRec, dlpdfmemfilesys(), NULL);<br />

break;<br />

default:<br />

printf("Unknown File System requested.");<br />

return 8;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!