diff --git a/doc/pdfio.md b/doc/pdfio.md index 9eb71be..595de61 100644 --- a/doc/pdfio.md +++ b/doc/pdfio.md @@ -345,7 +345,7 @@ to the stream: The [PDF content helper functions](@) provide additional functions for writing specific PDF page stream commands. -When you are done writing the stream, call [`pdfioStreamCLose`](@@) to close +When you are done writing the stream, call [`pdfioStreamClose`](@@) to close both the stream and the object. diff --git a/pdfio-content.c b/pdfio-content.c index 8bb99b3..936404c 100644 --- a/pdfio-content.c +++ b/pdfio-content.c @@ -2349,7 +2349,7 @@ pdfioPageDictAddColorSpace( bool // O - `true` on success, `false` on failure pdfioPageDictAddFont( pdfio_dict_t *dict, // I - Page dictionary - const char *name, // I - Font name + const char *name, // I - Font name; must not contain spaces pdfio_obj_t *obj) // I - Font object { pdfio_dict_t *resources; // Resource dictionary