Export a man page in pdfHow to control the page parameters (margins, brochurisation) of `man -t` PostScript...
Am I overreacting to my team leader's unethical requests?
Lethal damage while controlling Sower of Discord?
Why are Tucker and Malcolm not dead?
How can Radagast come across Gandalf and Thorin's company?
Heating Margarine in Pan = loss of calories?
AsyncDictionary - Can you break thread safety?
Can you castle with a "ghost" rook?
Email address etiquette - Which address should I use to contact professors?
Can a fight scene, component-wise, be too complex and complicated?
As a 16 year old, how can I keep my money safe from my mother?
Why did Gandalf use a sword against the Balrog?
On math looking obvious in retrospect
Not going forward with internship interview process
Should I ask for permission to write an expository post about someone else's research?
Why do funding agencies like the NSF not publish accepted grants?
How is this kind of structure made?
In SQL Server, why does backward scan of clustered index cannot use parallelism?
Double redundancy for the Saturn V LVDC computer memory, how were disagreements resolved?
How are you supposed to know the strumming pattern for a song from the "chord sheet music"?
Ex-contractor published company source code and secrets online
If an Animated Object is given a task that takes longer than a minute to do, does the object stay animated longer than a minute?
How does 'AND' distribute over 'OR' (Set Theory)?
A tool to replace all words with antonyms
Is there a standardised way to check fake news?
Export a man page in pdf
How to control the page parameters (margins, brochurisation) of `man -t` PostScript output?How can you change the format command used by man?How can I convert raw printer commands back to a postscript or pdf file?How do you output an info page to pdf?How can I merge pdf files so that each file begins on an odd page number?convert man output to ebook formatMerge several eps files into one PDFUnderstanding Printing, Postcript file, pdf etcexporting man pages to postscriptInclude index info in pdf man pages
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Doing man -t man > man.ps will export the man page for man in postscript.
How can I export it in PDF?
I have gone through the manuals and learnt about the -T option but it's a bit unclear to me.
pdf man postscript
add a comment |
Doing man -t man > man.ps will export the man page for man in postscript.
How can I export it in PDF?
I have gone through the manuals and learnt about the -T option but it's a bit unclear to me.
pdf man postscript
add a comment |
Doing man -t man > man.ps will export the man page for man in postscript.
How can I export it in PDF?
I have gone through the manuals and learnt about the -T option but it's a bit unclear to me.
pdf man postscript
Doing man -t man > man.ps will export the man page for man in postscript.
How can I export it in PDF?
I have gone through the manuals and learnt about the -T option but it's a bit unclear to me.
pdf man postscript
pdf man postscript
edited May 19 '18 at 8:24
LinuxSecurityFreak
9,10017 gold badges80 silver badges168 bronze badges
9,10017 gold badges80 silver badges168 bronze badges
asked May 19 '18 at 7:57
Neo_ReturnsNeo_Returns
18412 bronze badges
18412 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If groff and gropdf exists on your Linux system, you should be able to use
man -Tpdf man >man.pdf
(note the absence of a space between -T and pdf)
On an Ubuntu system, it should be enough to install the groff package to get access to gropdf.
The option argument to -T is passed on to groff and groff will use its -T option with the same option argument. So, read the groff manual about -T for more info.
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
add a comment |
Make sure you have ghostscript package installed:
sudo apt-get install ghostscript
You would need to convert the postscript to the PDF; for the command last that would be:
man -t last | ps2pdf - last.pdf
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This would convert the Postscript output ofmanto PDF. This would work, and for text documents it may be adequate.
– Kusalananda♦
May 19 '18 at 10:27
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444767%2fexport-a-man-page-in-pdf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If groff and gropdf exists on your Linux system, you should be able to use
man -Tpdf man >man.pdf
(note the absence of a space between -T and pdf)
On an Ubuntu system, it should be enough to install the groff package to get access to gropdf.
The option argument to -T is passed on to groff and groff will use its -T option with the same option argument. So, read the groff manual about -T for more info.
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
add a comment |
If groff and gropdf exists on your Linux system, you should be able to use
man -Tpdf man >man.pdf
(note the absence of a space between -T and pdf)
On an Ubuntu system, it should be enough to install the groff package to get access to gropdf.
The option argument to -T is passed on to groff and groff will use its -T option with the same option argument. So, read the groff manual about -T for more info.
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
add a comment |
If groff and gropdf exists on your Linux system, you should be able to use
man -Tpdf man >man.pdf
(note the absence of a space between -T and pdf)
On an Ubuntu system, it should be enough to install the groff package to get access to gropdf.
The option argument to -T is passed on to groff and groff will use its -T option with the same option argument. So, read the groff manual about -T for more info.
If groff and gropdf exists on your Linux system, you should be able to use
man -Tpdf man >man.pdf
(note the absence of a space between -T and pdf)
On an Ubuntu system, it should be enough to install the groff package to get access to gropdf.
The option argument to -T is passed on to groff and groff will use its -T option with the same option argument. So, read the groff manual about -T for more info.
edited May 19 '18 at 8:38
answered May 19 '18 at 8:23
Kusalananda♦Kusalananda
159k18 gold badges314 silver badges501 bronze badges
159k18 gold badges314 silver badges501 bronze badges
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
add a comment |
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
I'm using Debian Stretch and installing only the groff package provides access to gropdf.
– Neo_Returns
May 19 '18 at 9:48
add a comment |
Make sure you have ghostscript package installed:
sudo apt-get install ghostscript
You would need to convert the postscript to the PDF; for the command last that would be:
man -t last | ps2pdf - last.pdf
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This would convert the Postscript output ofmanto PDF. This would work, and for text documents it may be adequate.
– Kusalananda♦
May 19 '18 at 10:27
add a comment |
Make sure you have ghostscript package installed:
sudo apt-get install ghostscript
You would need to convert the postscript to the PDF; for the command last that would be:
man -t last | ps2pdf - last.pdf
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This would convert the Postscript output ofmanto PDF. This would work, and for text documents it may be adequate.
– Kusalananda♦
May 19 '18 at 10:27
add a comment |
Make sure you have ghostscript package installed:
sudo apt-get install ghostscript
You would need to convert the postscript to the PDF; for the command last that would be:
man -t last | ps2pdf - last.pdf
Make sure you have ghostscript package installed:
sudo apt-get install ghostscript
You would need to convert the postscript to the PDF; for the command last that would be:
man -t last | ps2pdf - last.pdf
edited May 19 '18 at 8:21
answered May 19 '18 at 8:04
LinuxSecurityFreakLinuxSecurityFreak
9,10017 gold badges80 silver badges168 bronze badges
9,10017 gold badges80 silver badges168 bronze badges
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This would convert the Postscript output ofmanto PDF. This would work, and for text documents it may be adequate.
– Kusalananda♦
May 19 '18 at 10:27
add a comment |
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This would convert the Postscript output ofmanto PDF. This would work, and for text documents it may be adequate.
– Kusalananda♦
May 19 '18 at 10:27
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This works for me too but the above procedure suits me more, though I will use it for other purposes - thanks.
– Neo_Returns
May 19 '18 at 9:56
This would convert the Postscript output of
man to PDF. This would work, and for text documents it may be adequate.– Kusalananda♦
May 19 '18 at 10:27
This would convert the Postscript output of
man to PDF. This would work, and for text documents it may be adequate.– Kusalananda♦
May 19 '18 at 10:27
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444767%2fexport-a-man-page-in-pdf%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown