diff options
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | doc/pdf-form-replace-font2.1 | 88 | ||||
-rw-r--r-- | doc/pdf-form-replace-font2.1.txt | 41 |
3 files changed, 139 insertions, 0 deletions
@@ -1,8 +1,18 @@ CLASSPATH := -classpath '.:./lib/*' +MAN_PAGE := doc/pdf-form-replace-font2.1 + all: javac $(CLASSPATH) Main.java + +.PHONY: doc +doc: $(MAN_PAGE) + +$(MAN_PAGE): $(MAN_PAGE).txt + a2x --no-xmllint --format manpage $< + + .PHONY: compile compile: mvn compile diff --git a/doc/pdf-form-replace-font2.1 b/doc/pdf-form-replace-font2.1 new file mode 100644 index 0000000..c474599 --- /dev/null +++ b/doc/pdf-form-replace-font2.1 @@ -0,0 +1,88 @@ +'\" t +.\" Title: pdf-form-replace-font2 +.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] +.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> +.\" Date: 04/26/2023 +.\" Manual: \ \& +.\" Source: \ \& +.\" Language: English +.\" +.TH "PDF\-FORM\-REPLACE\-" "1" "04/26/2023" "\ \&" "\ \&" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +pdf-form-replace-font2 \- Replace a font in a PDF form +.SH "SYNOPSIS" +.sp +\fBpdf\-form\-replace\-font2\fR \-\-fill \fIoriginal_font\fR \-\-replace \fIreplacement_font\fR [options] [\fIpdf_file\fR] +.SH "DESCRIPTION" +.sp +Replace a font used in the input PDF\(cqs form fields\&. If no input path is given, the PDF will be read from standard input\&. +.sp +Given a PostScript font name used in form fields in the input PDF, those fields will be changed to use the replacement typeface\&. +.SH "OPTIONS" +.PP +\-f, \-\-find +.RS 4 +PostScript name of the font that will be replaced\&. +.RE +.PP +\-r, \-\-replace +.RS 4 +PostScript name of the replacement font\&. +.RE +.PP +\-o, \-\-output +.RS 4 +The output PDF path\&. If this option is not given, or if the value is given as "\-", the PDF will output to standard output\&. +.RE +.PP +\-h, \-\-help +.RS 4 +Print usage help\&. +.RE +.PP +\-V, \-\-version +.RS 4 +Print the program version\&. +.RE +.SH "LIMITATIONS" +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +The replacement font is not embedded in the output PDF\&. +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +Font size cannot be changed\&. +.RE diff --git a/doc/pdf-form-replace-font2.1.txt b/doc/pdf-form-replace-font2.1.txt new file mode 100644 index 0000000..7a114d0 --- /dev/null +++ b/doc/pdf-form-replace-font2.1.txt @@ -0,0 +1,41 @@ +pdf-form-replace-font2(1) +========================= + +NAME +---- +pdf-form-replace-font2 - Replace a font in a PDF form + +SYNOPSIS +-------- +*pdf-form-replace-font2* --fill 'original_font' --replace 'replacement_font' [options] ['pdf_file'] + +DESCRIPTION +----------- +Replace a font used in the input PDF's form fields. If no input path is +given, the PDF will be read from standard input. + +Given a PostScript font name used in form fields in the input PDF, those +fields will be changed to use the replacement typeface. + +OPTIONS +------- +-f, --find:: + PostScript name of the font that will be replaced. + +-r, --replace:: + PostScript name of the replacement font. + +-o, --output:: + The output PDF path. If this option is not given, or if the value is given + as "-", the PDF will output to standard output. + +-h, --help:: + Print usage help. + +-V, --version:: + Print the program version. + +LIMITATIONS +----------- +* The replacement font is not embedded in the output PDF. +* Font size cannot be changed. |