Commit Graph

5 Commits (27ec17b4056c54ad2d7bd0b278bc375a8648b301)

Author SHA1 Message Date
Tigran Aivazian 8245017078 Cleanups to extr.c and pdfattach
1. In extr.c the error message should use the correct full pathname, not
the base filename.
2. In pdfattach the check for existence of input files should be
replaced with the check for read access to them.
12 years ago
Tigran Aivazian 52e7bb867e Use tabs not spaces for indenting. 12 years ago
Tigran Aivazian d90b01dbfd Handle absolute attachment pathnames
We must use only the basename part of the embedded attachment filename,
because the directories used in the path on the machine where the
attachments were created may not even exist on the machine where they
are extracted.
12 years ago
Tigran Aivazian ff23916940 Correct the comment.
The global variable "doc" is actually shared by ALL functions, so the
old comment was incorrect.
12 years ago
Tigran Aivazian fc20c0af26 Support for extracting attachments from PDF file
This commit adds Alt-S command which invokes the external utility "extr"
passing it the full pathname of the open PDF file and the current page
number. The utility extracts all attachments on this page (if there are
any) and saves them in the same directory as the PDF file. The file
names given to attachments are decoded from within the PDF file itself,
i.e. they are the same as the original file names of the files embedded
in the PDF.

Conflicts:

	pdfreader.lua
12 years ago