How to convert ęąśćżńł TXT to PDF with enscript?How to convert TXT to PDF?convert - unrecoverable...

What is a "soap"?

Match 4 columns and replace 1 in 2 files

What can I do to increase the amount of LEDs I can power with a pro micro?

Are there really no countries that protect Freedom of Speech as the United States does?

Why does this Jet Provost strikemaster have a textured leading edge?

What is the prop for Thor's hammer (Mjölnir) made of?

What if a restaurant suddenly cannot accept credit cards, and the customer has no cash?

Who is the controller of a Pacifism enchanting my creature?

A+ rating still unsecure by Google Chrome's opinion

Why aren’t there water shutoff valves for each room?

Did Michelle Obama have a staff of 23; and Melania have a staff of 4?

What are the advantages of this gold finger shape?

How can I find an old paper when the usual methods fail?

A man in the desert is bitten by a skeletal animal, its skull gets stuck on his arm

Are there any low-level means to *exit* the Ethereal plane to a plane of my choosing?

Is it really Security Misconfiguration to show a version number?

What is the most difficult concept to grasp in Calculus 1?

Telephone number in spoken words

Unconventional examples of mathematical modelling

Why do so many people play out of turn on the last lead?

Help, I cannot decide when to start the story

How to gracefully leave a company you helped start?

The more + the + comparative degree

What is the hottest thing in the universe?



How to convert ęąśćżńł TXT to PDF with enscript?


How to convert TXT to PDF?convert - unrecoverable error when pdf to jpgCustom title in PDF files when using ps2pdfconvert bulk of text files to pdf with naming based upon header fileUsing enscript, need first line to be of different font sizetextutil convert PDF to txt producing garbled outputHow do I convert the complete AMD64 Gentoo Handbook into a PDF from the command-line?How to handle accents with enscript?Combining enscript, find, iconv and ps2pdfHow to convert prc to pdf in Ubuntu cli?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







7















I have problem converting a file to PDF. I create the file with



echo ęąśćżńł > text


and convert:



enscript -O text -o - | ps2pdf - out.pdf


However, out.pdf has an encoding problem:



screenshot of corrupted pdf file










share|improve this question



























  • What kind of encoding problem is it that out.pdf has?

    – Erathiel
    Apr 21 '15 at 13:53











  • I'd have thought iconv -t latin2 < text | enscript -X latin2 -o - would work, but apparently not. Anybody knows why?

    – Stéphane Chazelas
    Apr 21 '15 at 14:34






  • 1





    Replying to myself. It's in this FAQ. Probably not worth bothering with enscript and use paps or a2ps or other.

    – Stéphane Chazelas
    Apr 21 '15 at 14:40











  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 10:35


















7















I have problem converting a file to PDF. I create the file with



echo ęąśćżńł > text


and convert:



enscript -O text -o - | ps2pdf - out.pdf


However, out.pdf has an encoding problem:



screenshot of corrupted pdf file










share|improve this question



























  • What kind of encoding problem is it that out.pdf has?

    – Erathiel
    Apr 21 '15 at 13:53











  • I'd have thought iconv -t latin2 < text | enscript -X latin2 -o - would work, but apparently not. Anybody knows why?

    – Stéphane Chazelas
    Apr 21 '15 at 14:34






  • 1





    Replying to myself. It's in this FAQ. Probably not worth bothering with enscript and use paps or a2ps or other.

    – Stéphane Chazelas
    Apr 21 '15 at 14:40











  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 10:35














7












7








7


1






I have problem converting a file to PDF. I create the file with



echo ęąśćżńł > text


and convert:



enscript -O text -o - | ps2pdf - out.pdf


However, out.pdf has an encoding problem:



screenshot of corrupted pdf file










share|improve this question
















I have problem converting a file to PDF. I create the file with



echo ęąśćżńł > text


and convert:



enscript -O text -o - | ps2pdf - out.pdf


However, out.pdf has an encoding problem:



screenshot of corrupted pdf file







pdf unicode conversion text enscript






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 21 '15 at 22:10









Gilles

570k136 gold badges1174 silver badges1686 bronze badges




570k136 gold badges1174 silver badges1686 bronze badges










asked Apr 21 '15 at 13:34









MikoMiko

361 bronze badge




361 bronze badge
















  • What kind of encoding problem is it that out.pdf has?

    – Erathiel
    Apr 21 '15 at 13:53











  • I'd have thought iconv -t latin2 < text | enscript -X latin2 -o - would work, but apparently not. Anybody knows why?

    – Stéphane Chazelas
    Apr 21 '15 at 14:34






  • 1





    Replying to myself. It's in this FAQ. Probably not worth bothering with enscript and use paps or a2ps or other.

    – Stéphane Chazelas
    Apr 21 '15 at 14:40











  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 10:35



















  • What kind of encoding problem is it that out.pdf has?

    – Erathiel
    Apr 21 '15 at 13:53











  • I'd have thought iconv -t latin2 < text | enscript -X latin2 -o - would work, but apparently not. Anybody knows why?

    – Stéphane Chazelas
    Apr 21 '15 at 14:34






  • 1





    Replying to myself. It's in this FAQ. Probably not worth bothering with enscript and use paps or a2ps or other.

    – Stéphane Chazelas
    Apr 21 '15 at 14:40











  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 10:35

















What kind of encoding problem is it that out.pdf has?

– Erathiel
Apr 21 '15 at 13:53





What kind of encoding problem is it that out.pdf has?

– Erathiel
Apr 21 '15 at 13:53













I'd have thought iconv -t latin2 < text | enscript -X latin2 -o - would work, but apparently not. Anybody knows why?

– Stéphane Chazelas
Apr 21 '15 at 14:34





I'd have thought iconv -t latin2 < text | enscript -X latin2 -o - would work, but apparently not. Anybody knows why?

– Stéphane Chazelas
Apr 21 '15 at 14:34




1




1





Replying to myself. It's in this FAQ. Probably not worth bothering with enscript and use paps or a2ps or other.

– Stéphane Chazelas
Apr 21 '15 at 14:40





Replying to myself. It's in this FAQ. Probably not worth bothering with enscript and use paps or a2ps or other.

– Stéphane Chazelas
Apr 21 '15 at 14:40













Paps not support headers and footers created with User.

– Miko
Apr 22 '15 at 10:35





Paps not support headers and footers created with User.

– Miko
Apr 22 '15 at 10:35










2 Answers
2






active

oldest

votes


















6














enscript just does not support Unicode. You need to use a different tool such as paps to convert text to PostScript. With --header option an output .pdf is similar to one produced with enscript:



$ paps text --header | ps2pdf - outheader.pdf





share|improve this answer


























  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 12:32











  • What is User?

    – Arkadiusz Drabczyk
    Apr 22 '15 at 12:34











  • I'm a user and I would like created header and footer

    – Miko
    Apr 22 '15 at 12:40



















1














I have had a better experience with u2ps written by Alex Suykov which produces much smaller PDF files using system Unicode fonts. This program is not in Ubuntu or Fedora; you have to compile it yourself. The usage is the same:



$ u2ps text.txt | ps2pdf - text.pdf


(Compared to u2ps, paps output is huge).






share|improve this answer




























  • Unicide fonts? Is this a typo?

    – guettli
    yesterday











  • sure, guettli. corrected.

    – Maxim
    10 hours ago














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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f197624%2fhow-to-convert-%25c4%2599%25c4%2585%25c5%259b%25c4%2587%25c5%25bc%25c5%2584%25c5%2582-txt-to-pdf-with-enscript%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









6














enscript just does not support Unicode. You need to use a different tool such as paps to convert text to PostScript. With --header option an output .pdf is similar to one produced with enscript:



$ paps text --header | ps2pdf - outheader.pdf





share|improve this answer


























  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 12:32











  • What is User?

    – Arkadiusz Drabczyk
    Apr 22 '15 at 12:34











  • I'm a user and I would like created header and footer

    – Miko
    Apr 22 '15 at 12:40
















6














enscript just does not support Unicode. You need to use a different tool such as paps to convert text to PostScript. With --header option an output .pdf is similar to one produced with enscript:



$ paps text --header | ps2pdf - outheader.pdf





share|improve this answer


























  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 12:32











  • What is User?

    – Arkadiusz Drabczyk
    Apr 22 '15 at 12:34











  • I'm a user and I would like created header and footer

    – Miko
    Apr 22 '15 at 12:40














6












6








6







enscript just does not support Unicode. You need to use a different tool such as paps to convert text to PostScript. With --header option an output .pdf is similar to one produced with enscript:



$ paps text --header | ps2pdf - outheader.pdf





share|improve this answer













enscript just does not support Unicode. You need to use a different tool such as paps to convert text to PostScript. With --header option an output .pdf is similar to one produced with enscript:



$ paps text --header | ps2pdf - outheader.pdf






share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 21 '15 at 14:06









Arkadiusz DrabczykArkadiusz Drabczyk

8,8353 gold badges20 silver badges36 bronze badges




8,8353 gold badges20 silver badges36 bronze badges
















  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 12:32











  • What is User?

    – Arkadiusz Drabczyk
    Apr 22 '15 at 12:34











  • I'm a user and I would like created header and footer

    – Miko
    Apr 22 '15 at 12:40



















  • Paps not support headers and footers created with User.

    – Miko
    Apr 22 '15 at 12:32











  • What is User?

    – Arkadiusz Drabczyk
    Apr 22 '15 at 12:34











  • I'm a user and I would like created header and footer

    – Miko
    Apr 22 '15 at 12:40

















Paps not support headers and footers created with User.

– Miko
Apr 22 '15 at 12:32





Paps not support headers and footers created with User.

– Miko
Apr 22 '15 at 12:32













What is User?

– Arkadiusz Drabczyk
Apr 22 '15 at 12:34





What is User?

– Arkadiusz Drabczyk
Apr 22 '15 at 12:34













I'm a user and I would like created header and footer

– Miko
Apr 22 '15 at 12:40





I'm a user and I would like created header and footer

– Miko
Apr 22 '15 at 12:40













1














I have had a better experience with u2ps written by Alex Suykov which produces much smaller PDF files using system Unicode fonts. This program is not in Ubuntu or Fedora; you have to compile it yourself. The usage is the same:



$ u2ps text.txt | ps2pdf - text.pdf


(Compared to u2ps, paps output is huge).






share|improve this answer




























  • Unicide fonts? Is this a typo?

    – guettli
    yesterday











  • sure, guettli. corrected.

    – Maxim
    10 hours ago
















1














I have had a better experience with u2ps written by Alex Suykov which produces much smaller PDF files using system Unicode fonts. This program is not in Ubuntu or Fedora; you have to compile it yourself. The usage is the same:



$ u2ps text.txt | ps2pdf - text.pdf


(Compared to u2ps, paps output is huge).






share|improve this answer




























  • Unicide fonts? Is this a typo?

    – guettli
    yesterday











  • sure, guettli. corrected.

    – Maxim
    10 hours ago














1












1








1







I have had a better experience with u2ps written by Alex Suykov which produces much smaller PDF files using system Unicode fonts. This program is not in Ubuntu or Fedora; you have to compile it yourself. The usage is the same:



$ u2ps text.txt | ps2pdf - text.pdf


(Compared to u2ps, paps output is huge).






share|improve this answer















I have had a better experience with u2ps written by Alex Suykov which produces much smaller PDF files using system Unicode fonts. This program is not in Ubuntu or Fedora; you have to compile it yourself. The usage is the same:



$ u2ps text.txt | ps2pdf - text.pdf


(Compared to u2ps, paps output is huge).







share|improve this answer














share|improve this answer



share|improve this answer








edited 10 hours ago

























answered yesterday









MaximMaxim

1614 bronze badges




1614 bronze badges
















  • Unicide fonts? Is this a typo?

    – guettli
    yesterday











  • sure, guettli. corrected.

    – Maxim
    10 hours ago



















  • Unicide fonts? Is this a typo?

    – guettli
    yesterday











  • sure, guettli. corrected.

    – Maxim
    10 hours ago

















Unicide fonts? Is this a typo?

– guettli
yesterday





Unicide fonts? Is this a typo?

– guettli
yesterday













sure, guettli. corrected.

– Maxim
10 hours ago





sure, guettli. corrected.

– Maxim
10 hours ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f197624%2fhow-to-convert-%25c4%2599%25c4%2585%25c5%259b%25c4%2587%25c5%25bc%25c5%2584%25c5%2582-txt-to-pdf-with-enscript%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...