diff --git a/Makefile b/Makefile index 2d9a2e5..bff4041 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# Makefile for pdfio. +# Makefile for PDFio. # # Copyright © 2021 by Michael R Sweet. # @@ -92,12 +92,13 @@ install: $(TARGETS) ln -sf libpdfio.1.dylib $(DESTDIR)$(prefix)/lib/libpdfio.dylib; \ fi -mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig - echo '"prefix="$(prefix)"' >>$(DESTDIR)$(prefix)/lib/pkgconfig/pdfio.pc - cat pdfio.pc.in >$(DESTDIR)$(prefix)/lib/pkgconfig/pdfio.pc + echo 'prefix="$(prefix)"' >$(DESTDIR)$(prefix)/lib/pkgconfig/pdfio.pc + echo 'Version: $(VERSION)' >>$(DESTDIR)$(prefix)/lib/pkgconfig/pdfio.pc + cat pdfio.pc.in >>$(DESTDIR)$(prefix)/lib/pkgconfig/pdfio.pc -mkdir -p $(DESTDIR)$(prefix)/share/doc/pdfio - cp pdfio.html LICENSE NOTICE $(DESTDIR)$(prefix)/share/doc/pdfio + cp doc/pdfio.html doc/pdfio-512.png LICENSE NOTICE $(DESTDIR)$(prefix)/share/doc/pdfio -mkdir -p $(DESTDIR)$(prefix)/share/man/man3 - cp pdfio.3 LICENSE NOTICE $(DESTDIR)$(prefix)/share/man/man3 + cp doc/pdfio.3 $(DESTDIR)$(prefix)/share/man/man3 install-shared: if test `uname` = Darwin; then \ @@ -141,7 +142,8 @@ DOCFLAGS = \ --copyright "Copyright (c) 2021 by Michael R Sweet" \ --docversion $(VERSION) +.PHONY: doc doc: - codedoc $(DOCFLAGS) --title "pdfio Programming Manual v$(VERSION)" pdfio.h $(LIBOBJS:.o=.c) --body pdfio.md pdfio.xml >pdfio.html - codedoc $(DOCFLAGS) --title "pdf read/write library" --man pdfio --section 3 --body pdfio.md pdfio.xml >pdfio.3 + codedoc $(DOCFLAGS) --title "PDFio Programming Manual v$(VERSION)" pdfio.h $(LIBOBJS:.o=.c) --body doc/pdfio.md --coverimage doc/pdfio-512.png pdfio.xml >doc/pdfio.html + codedoc $(DOCFLAGS) --title "pdf read/write library" --man pdfio --section 3 --body doc/pdfio.md pdfio.xml >doc/pdfio.3 rm -f pdfio.xml diff --git a/NOTICE b/NOTICE index d0c5ec6..34f1ad5 100644 --- a/NOTICE +++ b/NOTICE @@ -1,4 +1,4 @@ -pdfio - PDF Read/Write Library +PDFio - PDF Read/Write Library Copyright © 2021 by Michael R Sweet. diff --git a/doc/pdfio-512.png b/doc/pdfio-512.png new file mode 100644 index 0000000..81409a1 Binary files /dev/null and b/doc/pdfio-512.png differ diff --git a/pdfio.3 b/doc/pdfio.3 similarity index 99% rename from pdfio.3 rename to doc/pdfio.3 index dbd483d..a60835c 100644 --- a/pdfio.3 +++ b/doc/pdfio.3 @@ -1,9 +1,9 @@ -.TH pdfio 3 "pdf read/write library" "2021-05-29" "pdf read/write library" +.TH pdfio 3 "pdf read/write library" "2021-05-30" "pdf read/write library" .SH NAME pdfio \- pdf read/write library .SH Introduction .PP -pdfio is a simple C library for reading and writing PDF files. The primary goals of pdfio are: +PDFio is a simple C library for reading and writing PDF files. The primary goals of pdfio are: .IP \(bu 5 .PP Read any PDF file with or without encryption or linearization @@ -26,7 +26,7 @@ Provide access to objects used for each page .PP -pdfio is +PDFio is .I not concerned with rendering or viewing a PDF file, although a PDF RIP or viewer could be written using it. diff --git a/pdfio.html b/doc/pdfio.html similarity index 99% rename from pdfio.html rename to doc/pdfio.html index c761349..776e7ea 100644 --- a/pdfio.html +++ b/doc/pdfio.html @@ -1,7 +1,7 @@ -pdfio Programming Manual v0.1 +PDFio Programming Manual v0.1 @@ -244,7 +244,8 @@ span.string {
-

pdfio Programming Manual v0.1

+

+

PDFio Programming Manual v0.1

Michael R Sweet

Copyright © 2021 by Michael R Sweet

@@ -414,7 +415,7 @@ span.string {

Introduction

-

pdfio is a simple C library for reading and writing PDF files. The primary goals of pdfio are:

+

PDFio is a simple C library for reading and writing PDF files. The primary goals of pdfio are:

-

pdfio is not concerned with rendering or viewing a PDF file, although a PDF RIP or viewer could be written using it.

+

PDFio is not concerned with rendering or viewing a PDF file, although a PDF RIP or viewer could be written using it.

Functions

pdfioArrayAppendArray

Add an array value to an array.

diff --git a/pdfio.md b/doc/pdfio.md similarity index 78% rename from pdfio.md rename to doc/pdfio.md index 74d4e2a..8c3c503 100644 --- a/pdfio.md +++ b/doc/pdfio.md @@ -1,7 +1,7 @@ Introduction ============ -pdfio is a simple C library for reading and writing PDF files. The primary +PDFio is a simple C library for reading and writing PDF files. The primary goals of pdfio are: - Read any PDF file with or without encryption or linearization @@ -11,5 +11,5 @@ goals of pdfio are: that are missing from a PDF - Provide access to objects used for each page -pdfio is *not* concerned with rendering or viewing a PDF file, although a PDF +PDFio is *not* concerned with rendering or viewing a PDF file, although a PDF RIP or viewer could be written using it. diff --git a/pdfio-array.c b/pdfio-array.c index 35358d3..35fa1d0 100644 --- a/pdfio-array.c +++ b/pdfio-array.c @@ -1,5 +1,5 @@ // -// PDF array functions for pdfio. +// PDF array functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-content.c b/pdfio-content.c index c85e70c..fe53d28 100644 --- a/pdfio-content.c +++ b/pdfio-content.c @@ -1,5 +1,5 @@ // -// Content helper functions for pdfio. +// Content helper functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-content.h b/pdfio-content.h index a0b5247..cbc32d6 100644 --- a/pdfio-content.h +++ b/pdfio-content.h @@ -1,5 +1,5 @@ // -// Public content header file for pdfio. +// Public content header file for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-dict.c b/pdfio-dict.c index a8c431d..948a7be 100644 --- a/pdfio-dict.c +++ b/pdfio-dict.c @@ -1,5 +1,5 @@ // -// PDF dictionary functions for pdfio. +// PDF dictionary functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-file.c b/pdfio-file.c index 1fb9ea8..98d948b 100644 --- a/pdfio-file.c +++ b/pdfio-file.c @@ -1,5 +1,5 @@ // -// PDF file functions for pdfio. +// PDF file functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-object.c b/pdfio-object.c index a55e082..5ab05e6 100644 --- a/pdfio-object.c +++ b/pdfio-object.c @@ -1,5 +1,5 @@ // -// PDF object functions for pdfio. +// PDF object functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // @@ -155,7 +155,7 @@ pdfioObjCreateStream( if (filter != PDFIO_FILTER_NONE && filter != PDFIO_FILTER_FLATE) { - _pdfioFileError(obj->pdf, "Unsupported filter value for pdfioObjCreateStream."); + _pdfioFileError(obj->pdf, "Unsupported filter value for PDFioObjCreateStream."); return (NULL); } diff --git a/pdfio-page.c b/pdfio-page.c index 6ab30eb..a8be95a 100644 --- a/pdfio-page.c +++ b/pdfio-page.c @@ -1,5 +1,5 @@ // -// PDF page functions for pdfio. +// PDF page functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-private.h b/pdfio-private.h index c1850d2..456a0f4 100644 --- a/pdfio-private.h +++ b/pdfio-private.h @@ -1,5 +1,5 @@ // -// Private header file for pdfio. +// Private header file for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-stream.c b/pdfio-stream.c index c69cc20..4a4c16c 100644 --- a/pdfio-stream.c +++ b/pdfio-stream.c @@ -1,5 +1,5 @@ // -// PDF stream functions for pdfio. +// PDF stream functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-string.c b/pdfio-string.c index 0de2e95..68c175c 100644 --- a/pdfio-string.c +++ b/pdfio-string.c @@ -1,5 +1,5 @@ // -// PDF dictionary functions for pdfio. +// PDF dictionary functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-token.c b/pdfio-token.c index 6d8e773..f7c1deb 100644 --- a/pdfio-token.c +++ b/pdfio-token.c @@ -1,5 +1,5 @@ // -// PDF token parsing functions for pdfio. +// PDF token parsing functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio-value.c b/pdfio-value.c index 11dfa90..06b6d89 100644 --- a/pdfio-value.c +++ b/pdfio-value.c @@ -1,5 +1,5 @@ // -// PDF value functions for pdfio. +// PDF value functions for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio.h b/pdfio.h index 2f10510..e6271b7 100644 --- a/pdfio.h +++ b/pdfio.h @@ -1,5 +1,5 @@ // -// Public header file for pdfio. +// Public header file for PDFio. // // Copyright © 2021 by Michael R Sweet. // diff --git a/pdfio.pc.in b/pdfio.pc.in index 380c1ca..c0bf5b4 100644 --- a/pdfio.pc.in +++ b/pdfio.pc.in @@ -1,6 +1,5 @@ Name: pdfio Description: PDF read/write library -Version: 1.0 URL: https://www.msweet.org/pdfio Requires.private: zlib >= 1.0 Libs: -L${prefix}/lib -lpdfio diff --git a/testpdfio.c b/testpdfio.c index ff22021..7f16cd2 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -1,5 +1,5 @@ // -// Test program for pdfio. +// Test program for PDFio. // // Copyright © 2021 by Michael R Sweet. //