Compare commits
No commits in common. "ba5fdf20df72d1920c53a4fcb2d490daf322239d" and "32e9acfa776e7474a83f171c63a6859e2e363efe" have entirely different histories.
ba5fdf20df
...
32e9acfa77
19
README.adoc
19
README.adoc
@ -36,25 +36,12 @@ Runtime dependencies: libcrypto (OpenSSL 1.1 API)
|
|||||||
In addition to the C++ version, also included is a native Go port,
|
In addition to the C++ version, also included is a native Go port,
|
||||||
which has enhanced PDF 1.5 support:
|
which has enhanced PDF 1.5 support:
|
||||||
|
|
||||||
----
|
$ go get janouch.name/pdf-simple-sign/cmd/pdf-simple-sign
|
||||||
$ go install janouch.name/pdf-simple-sign/cmd/pdf-simple-sign@master
|
|
||||||
----
|
|
||||||
|
|
||||||
and a crude external VFS for Midnight Commander, that may be used to extract
|
And a crude external VFS for Midnight Commander, that may be used to extract
|
||||||
all streams from a given PDF file:
|
all streams from a given PDF file:
|
||||||
|
|
||||||
----
|
$ go get janouch.name/pdf-simple-sign/cmd/extfs-pdf
|
||||||
$ GOBIN=$HOME/.local/share/mc/extfs.d \
|
|
||||||
go install janouch.name/pdf-simple-sign/cmd/extfs-pdf@master
|
|
||||||
----
|
|
||||||
|
|
||||||
To enable the VFS, edit your _~/.config/mc/mc.ext.ini_ to contain:
|
|
||||||
|
|
||||||
----
|
|
||||||
[pdf]
|
|
||||||
Type=^PDF
|
|
||||||
Open=%cd %p/pdf://
|
|
||||||
----
|
|
||||||
|
|
||||||
Contributing and Support
|
Contributing and Support
|
||||||
------------------------
|
------------------------
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) 2021 - 2024, Přemysl Eric Janouch <p@janouch.name>
|
// Copyright (c) 2021, Přemysl Eric Janouch <p@janouch.name>
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, and/or distribute this software for any
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||||||
// purpose with or without fee is hereby granted.
|
// purpose with or without fee is hereby granted.
|
||||||
@ -46,8 +46,6 @@ func streamSuffix(o *pdf.Object) string {
|
|||||||
return "jp2"
|
return "jp2"
|
||||||
case "DCTDecode":
|
case "DCTDecode":
|
||||||
return "jpg"
|
return "jpg"
|
||||||
case "FlateDecode":
|
|
||||||
return "zz"
|
|
||||||
default:
|
default:
|
||||||
return filter.String
|
return filter.String
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user