diff --git a/pdfio-content.c b/pdfio-content.c index 7346487..858c14d 100644 --- a/pdfio-content.c +++ b/pdfio-content.c @@ -1198,6 +1198,20 @@ pdfioContentTextNewLine( } +// +// 'pdfioContentTextNextLine()' - Legacy function name preserved for binary compatibility. +// +// @private@ +// + +bool // O - `true` on success, `false` on failure +pdfioContentTextNextLine( + pdfio_stream_t *st) // I - Stream +{ + return (pdfioStreamPuts(st, "T*\n")); +} + + // // 'pdfioContentTextNewLineShow()' - Move to the next line and show text. // diff --git a/pdfio-content.h b/pdfio-content.h index 301811d..448901b 100644 --- a/pdfio-content.h +++ b/pdfio-content.h @@ -121,6 +121,7 @@ extern bool pdfioContentTextMoveTo(pdfio_stream_t *st, double tx, double ty) _P extern bool pdfioContentTextNewLine(pdfio_stream_t *st) _PDFIO_PUBLIC; extern bool pdfioContentTextNewLineShow(pdfio_stream_t *st, double ws, double cs, bool unicode, const char *s) _PDFIO_PUBLIC; extern bool pdfioContentTextNewLineShowf(pdfio_stream_t *st, double ws, double cs, bool unicode, const char *format, ...) _PDFIO_PUBLIC _PDFIO_FORMAT(5,6); +extern bool pdfioContentTextNextLine(pdfio_stream_t *st) _PDFIO_PUBLIC; extern bool pdfioContentTextShow(pdfio_stream_t *st, bool unicode, const char *s) _PDFIO_PUBLIC; extern bool pdfioContentTextShowf(pdfio_stream_t *st, bool unicode, const char *format, ...) _PDFIO_PUBLIC _PDFIO_FORMAT(3,4); extern bool pdfioContentTextShowJustified(pdfio_stream_t *st, bool unicode, size_t num_fragments, const double *offsets, const char * const *fragments) _PDFIO_PUBLIC; diff --git a/pdfio-file.c b/pdfio-file.c index fa2131c..a9e0ac6 100644 --- a/pdfio-file.c +++ b/pdfio-file.c @@ -7,10 +7,6 @@ // information. // -// -// Include necessary headers... -// - #include "pdfio-private.h" #ifndef O_BINARY # define O_BINARY 0 diff --git a/pdfio.h b/pdfio.h index 0e80ddc..7e02d03 100644 --- a/pdfio.h +++ b/pdfio.h @@ -33,9 +33,11 @@ extern "C" { # if defined(__has_extension) || defined(__GNUC__) # define _PDFIO_PUBLIC __attribute__ ((visibility("default"))) # define _PDFIO_FORMAT(a,b) __attribute__ ((__format__(__printf__, a,b))) +# define _PDFIO_DEPRECATED __attribute__ ((deprecated)) _PDFIO_PUBLIC # else # define _PDFIO_PUBLIC # define _PDFIO_FORMAT(a,b) +# define _PDFIO_DEPRECATED # endif // __has_extension || __GNUC__ diff --git a/pdfio1.def b/pdfio1.def index 89c35bc..7476350 100644 --- a/pdfio1.def +++ b/pdfio1.def @@ -144,6 +144,7 @@ pdfioContentTextMoveTo pdfioContentTextNewLine pdfioContentTextNewLineShow pdfioContentTextNewLineShowf +pdfioContentTextNextLine pdfioContentTextShow pdfioContentTextShowJustified pdfioContentTextShowf