diff options
author | Jamie Lemon <jamie.lemon@artifex.com> | 2021-08-18 14:24:15 +0100 |
---|---|---|
committer | Jamie Lemon <jamie.lemon@artifex.com> | 2021-08-18 15:35:30 +0100 |
commit | 8d08d2055efe6432f59e8ea005154f27e0099a8b (patch) | |
tree | da193484938822c03b01bbac93672bff31216058 /demos | |
parent | 3da204cd1136414fc2e41dc3d3e23d4ecb6f6032 (diff) | |
download | ghostpdl-8d08d2055efe6432f59e8ea005154f27e0099a8b.tar.gz |
Fixes spelling of "Ghostscript" as well as some other small typos
Diffstat (limited to 'demos')
-rw-r--r-- | demos/java/gsjava/README.txt | 26 | ||||
-rw-r--r-- | demos/java/jni/gs_jni/README.txt | 8 |
2 files changed, 17 insertions, 17 deletions
diff --git a/demos/java/gsjava/README.txt b/demos/java/gsjava/README.txt index d41d68284..2b606be75 100644 --- a/demos/java/gsjava/README.txt +++ b/demos/java/gsjava/README.txt @@ -19,7 +19,7 @@ are avaliable if needed. The Reference class acts as a pointer parameter in a C function. An example use of this is in gsapi_new_instance which takes a Reference<Long> as a parameter. Calling the method would place the new -Ghoscript instance in the Reference<Long>'s value field. +Ghostscript instance in the Reference<Long>'s value field. The com.artifex.gsjava.GSInstance is a utility class. The GSInstance class stores an instance @@ -28,26 +28,26 @@ class are named the same in which they are documented without the need to pass the "instance" parameter through. The com.artifex.gsjava.devices package contains several -classes representing Ghoscript devices. Using the classes +classes representing Ghostscript devices. Using the classes in this package is the greatest amount of separation from -using the raw Ghoscript calls and it requires no direct +using the raw Ghostscript calls and it requires no direct calls through the GSAPI class. All device classes in this package are extensions of Device which provides a way -of setting up a Ghoscript device and setting parameters. +of setting up a Ghostscript device and setting parameters. Subclasses have utility methods to set individual parameters through method calls instead of using a String and parameter type to specify the parameter name and type, respectively. -Example code segment to set up an instance of Ghoscript: +Example code segment to set up an instance of Ghostscript: import com.artifex.gsjava.*; import com.artifex.gsjava.util.*; public static void main(String[] args) { - // Stores a reference to the Ghoscript instance + // Stores a reference to the Ghostscript instance Reference<Long> instanceReference = new Reference<>(); - // Creates a new Ghoscript instance with a NULL caller handle, + // Creates a new Ghostscript instance with a NULL caller handle, // placing the instance into instanceReference int code = GSAPI.gsapi_new_instance(instanceReference, GSAPI.GS_NULL); @@ -61,7 +61,7 @@ public static void main(String[] args) { // size in bytes. long instance = instanceReference.getValue(); - // Deletes the Ghoscript instance + // Deletes the Ghostscript instance GSAPI.gsapi_delete_instance(instance); } @@ -74,10 +74,10 @@ library unlike build_win32.bat. Viewer: -There is an eclipse project containing a viewer using the -Java Ghostscript bindings in gsjava. The eclipse project is -set up such that the gsjava eclipse project must be built -to a jar file and used in the gsviewer eclipse project. +There is an Eclipse project containing a viewer using the +Java Ghostscript bindings in gsjava. The Eclipse project is +set up such that the gsjava Eclipse project must be built +to a jar file and used in the gsviewer Eclipse project. The viewer is designed to load PDF documents, but can also load other files like PostScript files and distill them into @@ -92,4 +92,4 @@ what page the user is viewing. This is done in the com.artifex.gsviewer.ViewerController.SmartLoader class. This also handles rendering zoomed images if necessary. Only pages which need to be loaded at a high resolution are loaded, and -zoomed pages are unloaded when no longer necessary to save memory.
\ No newline at end of file +zoomed pages are unloaded when no longer necessary to save memory. diff --git a/demos/java/jni/gs_jni/README.txt b/demos/java/jni/gs_jni/README.txt index b31399e95..e38c34c0a 100644 --- a/demos/java/jni/gs_jni/README.txt +++ b/demos/java/jni/gs_jni/README.txt @@ -1,6 +1,6 @@ This library builds to gs_jni.dll and uses the Java Native Interface (JNI) to bind the functions in -the GSAPI class to Ghoscript as well as handling callbacks, +the GSAPI class to Ghostscript as well as handling callbacks, exceptions, and references. The bindings in GSAPI are in the header com_artifex_gsjava_GSJAVA.h @@ -64,7 +64,7 @@ Ensure Ghostscript has already been built, and then run the build_linux.sh script. To build on Mac, -Ensure Ghostscript has already been builtm and then run +Ensure Ghostscript has already been built, and then run the build_darwin.sh script. Notes on function implementations and a brief introduction on @@ -98,11 +98,11 @@ JNIEXPORT jint JNICALL Java_com_artifex_gsjava_GSAPI_gsapi_1run_1string_1begin // is called, this must be set so the Java callback methods can be called. callbacks::setJNIEnv(env); - // Calls the Ghoscript call gsapi_run_string_begin + // Calls the Ghostscript call gsapi_run_string_begin int code = gsapi_run_string_begin((void *)instance, userErrors, &exitCode); // If the reference is not NULL, set the value of the reference to the exitCode returned - // from Ghoscript. It must be converted to the wrapper type java.lang.Integer as Java does not support + // from Ghostscript. It must be converted to the wrapper type java.lang.Integer as Java does not support // primitive generic arguments (i.e. int, float, char, etc.) if (pExitCode) Reference::setValueField(env, pExitCode, toWrapperType(env, (jint)exitCode)); |