Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #190707 > unrolled thread

How to create a PDF-Printer from the command line

Started byJason <electron@emypeople.net>
First post2018-01-06 04:20 +0100
Last post2018-01-09 04:20 +0100
Articles 20 on this page of 76 — 15 participants

Back to article view | Back to linux.debian.user


Contents

  How to create a PDF-Printer from the command line Jason <electron@emypeople.net> - 2018-01-06 04:20 +0100
    Re: How to create a PDF-Printer from the command line Gene Heskett <gheskett@shentel.net> - 2018-01-06 05:50 +0100
    Re: How to create a PDF-Printer from the command line john doe <johndoe65534@mail.com> - 2018-01-06 06:00 +0100
      Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-06 21:20 +0100
        Re: How to create a PDF-Printer from the command line john doe <johndoe65534@mail.com> - 2018-01-06 22:00 +0100
          Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-07 21:10 +0100
            Re: How to create a PDF-Printer from the command line john doe <johndoe65534@mail.com> - 2018-01-07 21:50 +0100
              Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-07 22:00 +0100
                Re: How to create a PDF-Printer from the command line john doe <johndoe65534@mail.com> - 2018-01-08 11:50 +0100
                  Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-08 12:30 +0100
        Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-06 22:10 +0100
          Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-07 01:20 +0100
            Re: How to create a PDF-Printer from the command line Erik Christiansen <dvalin@internode.on.net> - 2018-01-07 03:30 +0100
              Re: How to create a PDF-Printer from the command line Erik Christiansen <dvalin@internode.on.net> - 2018-01-07 03:50 +0100
            Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-07 12:10 +0100
              Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-07 13:40 +0100
              Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-07 17:10 +0100
        Re: How to create a PDF-Printer from the command line davidson <davidson@freevolt.org> - 2018-01-09 07:30 +0100
          Re: How to create a PDF-Printer from the command line Ionel Mugurel Ciobîcă <I.M.Ciobica@upcmail.nl> - 2018-01-09 10:30 +0100
            Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-09 10:40 +0100
            Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-09 11:30 +0100
              Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-09 14:10 +0100
                Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-09 14:40 +0100
                  Re: How to create a PDF-Printer from the command line Ionel Mugurel Ciobîcă <I.M.Ciobica@upcmail.nl> - 2018-01-09 16:10 +0100
                  Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-09 16:40 +0100
                    Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-09 20:20 +0100
                      Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-09 20:50 +0100
                        Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-09 21:10 +0100
                          Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-09 23:30 +0100
                            Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-10 00:10 +0100
                              Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-10 00:50 +0100
                        Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-09 21:40 +0100
                          Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-09 21:50 +0100
                          Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-09 22:00 +0100
                            Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-09 23:40 +0100
                              Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-10 10:10 +0100
                                Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-10 10:50 +0100
                                  Re: How to create a PDF-Printer from the command line Ionel Mugurel Ciobîcă <I.M.Ciobica@upcmail.nl> - 2018-01-10 14:20 +0100
                                  Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-10 16:40 +0100
                                    Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-10 17:20 +0100
                                      Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-10 20:20 +0100
                                        Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-10 21:10 +0100
                                          Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-17 19:30 +0100
                                            Re: How to create a PDF-Printer from the command line <tomas@tuxteam.de> - 2018-01-17 21:10 +0100
                                              Re: How to create a PDF-Printer from the command line Joel Wirāmu Pauling <joel@aenertia.net> - 2018-01-17 22:20 +0100
                                                Re: How to create a PDF-Printer from the command line Joel Wirāmu Pauling <joel@aenertia.net> - 2018-01-17 22:40 +0100
                                                  Re: How to create a PDF-Printer from the command line Chris Ramsden <chris.ramsden@gmail.com> - 2018-01-17 22:50 +0100
                                                    Re: How to create a PDF-Printer from the command line Dan Ritter <dsr@randomstring.org> - 2018-01-17 23:10 +0100
                                                      Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-18 00:00 +0100
                                                    Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-18 10:50 +0100
                                                      Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-18 13:50 +0100
                                                        Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-18 17:00 +0100
                                                          Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-18 20:20 +0100
                                                  Re: How to create a PDF-Printer from the command line Ben Caradoc-Davies <ben@transient.nz> - 2018-01-17 22:50 +0100
                                                Re: How to create a PDF-Printer from the command line Ben Caradoc-Davies <ben@transient.nz> - 2018-01-17 22:40 +0100
                                                Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-18 00:00 +0100
                                              Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-17 23:50 +0100
                                Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-10 11:40 +0100
                                  Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-10 20:30 +0100
                Re: How to create a PDF-Printer from the command line Ionel Mugurel Ciobîcă <I.M.Ciobica@upcmail.nl> - 2018-01-09 15:00 +0100
    Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-06 16:30 +0100
      Re: How to create a PDF-Printer from the command line Jason <electron@emypeople.net> - 2018-01-07 03:50 +0100
        Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-07 11:20 +0100
          Re: How to create a PDF-Printer from the command line rhkramer@gmail.com - 2018-01-07 13:50 +0100
            Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-07 19:20 +0100
              Re: How to create a PDF-Printer from the command line rhkramer@gmail.com - 2018-01-07 21:30 +0100
                Re: How to create a PDF-Printer from the command line rhkramer@gmail.com - 2018-01-08 13:30 +0100
                  Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-08 20:00 +0100
                    Re: How to create a PDF-Printer from the command line rhkramer@gmail.com - 2018-01-08 20:20 +0100
              Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-08 04:20 +0100
                Re: How to create a PDF-Printer from the command line Curt <curty@free.fr> - 2018-01-08 10:40 +0100
                  Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-08 19:20 +0100
                    Re: How to create a PDF-Printer from the command line David Wright <deblis@lionunicorn.co.uk> - 2018-01-09 02:30 +0100
                      Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-10 01:40 +0100
                Re: How to create a PDF-Printer from the command line Brian <ad44@cityscape.co.uk> - 2018-01-08 20:20 +0100
          [SOLVED]Re: How to create a PDF-Printer from the command line Jason <electron@emypeople.net> - 2018-01-09 04:20 +0100

Page 1 of 4  [1] 2 3 4  Next page →


#190707 — How to create a PDF-Printer from the command line

FromJason <electron@emypeople.net>
Date2018-01-06 04:20 +0100
SubjectHow to create a PDF-Printer from the command line
Message-ID<v4Nbz-49s-5@gated-at.bofh.it>
On a RasperryPi with Raspbian, I would like to create a PDF Printer to
print files to. I only know how to do this with the GUI program
system-config-printer but I don't want to install that on this
Pi. What shell command do I need to create a PDF printer on the Pi (or
on any Debian, for that matter)?

Thanks!
-- 
Jason

[toc] | [next] | [standalone]


#190709

FromGene Heskett <gheskett@shentel.net>
Date2018-01-06 05:50 +0100
Message-ID<v4OAF-4Un-1@gated-at.bofh.it>
In reply to#190707
On Friday 05 January 2018 22:06:22 Jason wrote:

> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> print files to. I only know how to do this with the GUI program
> system-config-printer but I don't want to install that on this
> Pi. What shell command do I need to create a PDF printer on the Pi (or
> on any Debian, for that matter)?
>
> Thanks!

This is all handled by cups, and on Jessie on a pi, or stretch on a 
rock64, it just works. But since you need cups anyway, why not enable 
browsing in cups on the pi, and "share" any printers you may have hooked 
up to one of the other machines on your home network. Then just send the 
print job to the printer(s) that will show up when you click on print in 
any of the editors, includeing the gfx editors like gimp or inkscape?

I can be working on a piece of g-code to carve metal, using geany, need a 
paper copy for reference, its only 20 pages, and its waiting for me on 
the output tray of a b&w laser here in the den by the time I arrive in 
here from the garage. I needed the exercise anyway. :)

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#190710

Fromjohn doe <johndoe65534@mail.com>
Date2018-01-06 06:00 +0100
Message-ID<v4OKm-4Xi-7@gated-at.bofh.it>
In reply to#190707
On 1/6/2018 4:06 AM, Jason wrote:
> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> print files to. I only know how to do this with the GUI program
> system-config-printer but I don't want to install that on this
> Pi. What shell command do I need to create a PDF printer on the Pi (or
> on any Debian, for that matter)?
> 

Why do you want to"print" if you can convert to pdf using the command line?
Based on the original file extension you simply search for a utility 
that will convert your original file to pdf.

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#190723

FromBrian <ad44@cityscape.co.uk>
Date2018-01-06 21:20 +0100
Message-ID<v536G-62X-5@gated-at.bofh.it>
In reply to#190710
On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:

> On 1/6/2018 4:06 AM, Jason wrote:
> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> > print files to. I only know how to do this with the GUI program
> > system-config-printer but I don't want to install that on this
> > Pi. What shell command do I need to create a PDF printer on the Pi (or
> > on any Debian, for that matter)?
> > 
> 
> Why do you want to"print" if you can convert to pdf using the command line?
> Based on the original file extension you simply search for a utility that
> will convert your original file to pdf.

How does one convert a text file to a PDF using the command line?

-- 
Brian

[toc] | [prev] | [next] | [standalone]


#190725

Fromjohn doe <johndoe65534@mail.com>
Date2018-01-06 22:00 +0100
Message-ID<v53Jn-6j7-3@gated-at.bofh.it>
In reply to#190723
On 1/6/2018 9:15 PM, Brian wrote:
> On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
> 
>> On 1/6/2018 4:06 AM, Jason wrote:
>>> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
>>> print files to. I only know how to do this with the GUI program
>>> system-config-printer but I don't want to install that on this
>>> Pi. What shell command do I need to create a PDF printer on the Pi (or
>>> on any Debian, for that matter)?
>>>
>>
>> Why do you want to"print" if you can convert to pdf using the command line?
>> Based on the original file extension you simply search for a utility that
>> will convert your original file to pdf.
> 
> How does one convert a text file to a PDF using the command line?
> 

Using enscript and ps2pdf (goastscript) for example.

https://www.gnu.org/software/enscript/
https://www.ghostscript.com/doc/current/Ps2pdf.htm
https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#190762

FromBrian <ad44@cityscape.co.uk>
Date2018-01-07 21:10 +0100
Message-ID<v5pqx-45A-1@gated-at.bofh.it>
In reply to#190725
On Sat 06 Jan 2018 at 21:51:18 +0100, john doe wrote:

> On 1/6/2018 9:15 PM, Brian wrote:
> > On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
> > 
> > > On 1/6/2018 4:06 AM, Jason wrote:
> > > > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> > > > print files to. I only know how to do this with the GUI program
> > > > system-config-printer but I don't want to install that on this
> > > > Pi. What shell command do I need to create a PDF printer on the Pi (or
> > > > on any Debian, for that matter)?
> > > > 
> > > 
> > > Why do you want to"print" if you can convert to pdf using the command line?
> > > Based on the original file extension you simply search for a utility that
> > > will convert your original file to pdf.
> > 
> > How does one convert a text file to a PDF using the command line?
> > 
> 
> Using enscript and ps2pdf (goastscript) for example.
> 
> https://www.gnu.org/software/enscript/
> https://www.ghostscript.com/doc/current/Ps2pdf.htm
> https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
> https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf

Thanks, but I should have been clearer and more precise. I was after a
"one-step" utility which went directly from text to PDF. (cups-pdf gives
the appearence of doing that but it doesn't). You question its utility;
if pressed, I could agree with you.

I don't want to do through the intermediate Postscript production step.
But, perhaps, it is unavoidable.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#190767

Fromjohn doe <johndoe65534@mail.com>
Date2018-01-07 21:50 +0100
Message-ID<v5q3f-4l6-13@gated-at.bofh.it>
In reply to#190762
On 1/7/2018 9:01 PM, Brian wrote:
> On Sat 06 Jan 2018 at 21:51:18 +0100, john doe wrote:
> 
>> On 1/6/2018 9:15 PM, Brian wrote:
>>> On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
>>>
>>>> On 1/6/2018 4:06 AM, Jason wrote:
>>>>> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
>>>>> print files to. I only know how to do this with the GUI program
>>>>> system-config-printer but I don't want to install that on this
>>>>> Pi. What shell command do I need to create a PDF printer on the Pi (or
>>>>> on any Debian, for that matter)?
>>>>>
>>>>
>>>> Why do you want to"print" if you can convert to pdf using the command line?
>>>> Based on the original file extension you simply search for a utility that
>>>> will convert your original file to pdf.
>>>
>>> How does one convert a text file to a PDF using the command line?
>>>
>>
>> Using enscript and ps2pdf (goastscript) for example.
>>
>> https://www.gnu.org/software/enscript/
>> https://www.ghostscript.com/doc/current/Ps2pdf.htm
>> https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
>> https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf
> 
> Thanks, but I should have been clearer and more precise. I was after a
> "one-step" utility which went directly from text to PDF. (cups-pdf gives
> the appearence of doing that but it doesn't). You question its utility;
> if pressed, I could agree with you.
> 
> I don't want to do through the intermediate Postscript production step.

Why not (you can run both utilities in one go)?

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#190768

FromBrian <ad44@cityscape.co.uk>
Date2018-01-07 22:00 +0100
Message-ID<v5qcX-4oT-37@gated-at.bofh.it>
In reply to#190767
On Sun 07 Jan 2018 at 21:41:16 +0100, john doe wrote:

> On 1/7/2018 9:01 PM, Brian wrote:
> > On Sat 06 Jan 2018 at 21:51:18 +0100, john doe wrote:
> > 
> > > On 1/6/2018 9:15 PM, Brian wrote:
> > > > On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
> > > > 
> > > > > On 1/6/2018 4:06 AM, Jason wrote:
> > > > > > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> > > > > > print files to. I only know how to do this with the GUI program
> > > > > > system-config-printer but I don't want to install that on this
> > > > > > Pi. What shell command do I need to create a PDF printer on the Pi (or
> > > > > > on any Debian, for that matter)?
> > > > > > 
> > > > > 
> > > > > Why do you want to"print" if you can convert to pdf using the command line?
> > > > > Based on the original file extension you simply search for a utility that
> > > > > will convert your original file to pdf.
> > > > 
> > > > How does one convert a text file to a PDF using the command line?
> > > > 
> > > 
> > > Using enscript and ps2pdf (goastscript) for example.
> > > 
> > > https://www.gnu.org/software/enscript/
> > > https://www.ghostscript.com/doc/current/Ps2pdf.htm
> > > https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
> > > https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf
> > 
> > Thanks, but I should have been clearer and more precise. I was after a
> > "one-step" utility which went directly from text to PDF. (cups-pdf gives
> > the appearence of doing that but it doesn't). You question its utility;
> > if pressed, I could agree with you.
> > 
> > I don't want to do through the intermediate Postscript production step.
> 
> Why not (you can run both utilities in one go)?

You have completely missed the point. "one-step" and "directly" were
the clues.

-- 

Brian

[toc] | [prev] | [next] | [standalone]


#190790

Fromjohn doe <johndoe65534@mail.com>
Date2018-01-08 11:50 +0100
Message-ID<v5Da9-4Gb-1@gated-at.bofh.it>
In reply to#190768
On 1/7/2018 9:49 PM, Brian wrote:
> On Sun 07 Jan 2018 at 21:41:16 +0100, john doe wrote:
> 
>> On 1/7/2018 9:01 PM, Brian wrote:
>>> On Sat 06 Jan 2018 at 21:51:18 +0100, john doe wrote:
>>>
>>>> On 1/6/2018 9:15 PM, Brian wrote:
>>>>> On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
>>>>>
>>>>>> On 1/6/2018 4:06 AM, Jason wrote:
>>>>>>> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
>>>>>>> print files to. I only know how to do this with the GUI program
>>>>>>> system-config-printer but I don't want to install that on this
>>>>>>> Pi. What shell command do I need to create a PDF printer on the Pi (or
>>>>>>> on any Debian, for that matter)?
>>>>>>>
>>>>>>
>>>>>> Why do you want to"print" if you can convert to pdf using the command line?
>>>>>> Based on the original file extension you simply search for a utility that
>>>>>> will convert your original file to pdf.
>>>>>
>>>>> How does one convert a text file to a PDF using the command line?
>>>>>
>>>>
>>>> Using enscript and ps2pdf (goastscript) for example.
>>>>
>>>> https://www.gnu.org/software/enscript/
>>>> https://www.ghostscript.com/doc/current/Ps2pdf.htm
>>>> https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
>>>> https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf
>>>
>>> Thanks, but I should have been clearer and more precise. I was after a
>>> "one-step" utility which went directly from text to PDF. (cups-pdf gives
>>> the appearence of doing that but it doesn't). You question its utility;
>>> if pressed, I could agree with you.
>>>
>>> I don't want to do through the intermediate Postscript production step.
>>
>> Why not (you can run both utilities in one go)?
> 
> You have completely missed the point. "one-step" and "directly" were
> the clues.
> 

While I agree that I missunderstood what you were saying; not everyone 
is fully acquainted with the language of Shakespeare even though the 
list is in that language. :)
Why would I persuade you to do any thing; there are no good answers 
except the one that suit you.

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#190794

FromBrian <ad44@cityscape.co.uk>
Date2018-01-08 12:30 +0100
Message-ID<v5DMS-5a8-9@gated-at.bofh.it>
In reply to#190790
On Mon 08 Jan 2018 at 11:45:40 +0100, john doe wrote:

> On 1/7/2018 9:49 PM, Brian wrote:
> > On Sun 07 Jan 2018 at 21:41:16 +0100, john doe wrote:
> > 
> > > On 1/7/2018 9:01 PM, Brian wrote:
> > > > On Sat 06 Jan 2018 at 21:51:18 +0100, john doe wrote:
> > > > 
> > > > > On 1/6/2018 9:15 PM, Brian wrote:
> > > > > > On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
> > > > > > 
> > > > > > > On 1/6/2018 4:06 AM, Jason wrote:
> > > > > > > > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> > > > > > > > print files to. I only know how to do this with the GUI program
> > > > > > > > system-config-printer but I don't want to install that on this
> > > > > > > > Pi. What shell command do I need to create a PDF printer on the Pi (or
> > > > > > > > on any Debian, for that matter)?
> > > > > > > > 
> > > > > > > 
> > > > > > > Why do you want to"print" if you can convert to pdf using the command line?
> > > > > > > Based on the original file extension you simply search for a utility that
> > > > > > > will convert your original file to pdf.
> > > > > > 
> > > > > > How does one convert a text file to a PDF using the command line?
> > > > > > 
> > > > > 
> > > > > Using enscript and ps2pdf (goastscript) for example.
> > > > > 
> > > > > https://www.gnu.org/software/enscript/
> > > > > https://www.ghostscript.com/doc/current/Ps2pdf.htm
> > > > > https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
> > > > > https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf
> > > > 
> > > > Thanks, but I should have been clearer and more precise. I was after a
> > > > "one-step" utility which went directly from text to PDF. (cups-pdf gives
> > > > the appearence of doing that but it doesn't). You question its utility;
> > > > if pressed, I could agree with you.
> > > > 
> > > > I don't want to do through the intermediate Postscript production step.
> > > 
> > > Why not (you can run both utilities in one go)?
> > 
> > You have completely missed the point. "one-step" and "directly" were
> > the clues.
> > 
> 
> While I agree that I missunderstood what you were saying; not everyone is
> fully acquainted with the language of Shakespeare even though the list is in
> that language. :)

Fair enough.

> Why would I persuade you to do any thing; there are no good answers except
> the one that suit you.

Ouch! :)

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#190726

FromCurt <curty@free.fr>
Date2018-01-06 22:10 +0100
Message-ID<v53T4-6BO-9@gated-at.bofh.it>
In reply to#190723
On 2018-01-06, Brian <ad44@cityscape.co.uk> wrote:
> On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
>
>> On 1/6/2018 4:06 AM, Jason wrote:
>> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
>> > print files to. I only know how to do this with the GUI program
>> > system-config-printer but I don't want to install that on this
>> > Pi. What shell command do I need to create a PDF printer on the Pi (or
>> > on any Debian, for that matter)?
>> > 
>> 
>> Why do you want to"print" if you can convert to pdf using the command line?
>> Based on the original file extension you simply search for a utility that
>> will convert your original file to pdf.
>
> How does one convert a text file to a PDF using the command line?
>

 unoconv -f pdf text.txt
 cupsfilter text.txt > text.pdf
 enscript text.txt -o - | ps2pdf - text.pdf

The above works here.

-- 
"An autobiography is only to be trusted when it reveals something disgraceful.
A man who gives a good account of himself is probably lying, since any life
when viewed from the inside is simply a series of defeats."
— George Orwell

[toc] | [prev] | [next] | [standalone]


#190732

FromBrian <ad44@cityscape.co.uk>
Date2018-01-07 01:20 +0100
Message-ID<v56QV-6z-1@gated-at.bofh.it>
In reply to#190726
On Sat 06 Jan 2018 at 21:02:15 +0000, Curt wrote:

> On 2018-01-06, Brian <ad44@cityscape.co.uk> wrote:
> > On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
> >
> >> On 1/6/2018 4:06 AM, Jason wrote:
> >> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> >> > print files to. I only know how to do this with the GUI program
> >> > system-config-printer but I don't want to install that on this
> >> > Pi. What shell command do I need to create a PDF printer on the Pi (or
> >> > on any Debian, for that matter)?
> >> > 
> >> 
> >> Why do you want to"print" if you can convert to pdf using the command line?
> >> Based on the original file extension you simply search for a utility that
> >> will convert your original file to pdf.
> >
> > How does one convert a text file to a PDF using the command line?
> >
> 
>  unoconv -f pdf text.txt

50+ megabytes of the libreoffice stack to install, But yes, that will
do it. A sledgehammer to crack a nut.

>  cupsfilter text.txt > text.pdf

I think you mean /usr/sbin/cupsfilter, unless you are assuming a user
has to be root. I like this one; unlike unoconv, it will probably be
on the system already and the command is flexible. Unfortunately, the
output doesn't have searchable or extractable text, desirable features
in a PDF. You pays your money and ....... .

>  enscript text.txt -o - | ps2pdf - text.pdf

If UTF-8 doesn't matter to you, why indeed not use enscript?
 
> The above works here.

They all work here, too. As does printer-driver-cups-pdf, the OP's
target software.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#190734

FromErik Christiansen <dvalin@internode.on.net>
Date2018-01-07 03:30 +0100
Message-ID<v58SJ-1nu-1@gated-at.bofh.it>
In reply to#190732
On 07.01.18 00:19, Brian wrote:
> On Sat 06 Jan 2018 at 21:02:15 +0000, Curt wrote:
> > On 2018-01-06, Brian <ad44@cityscape.co.uk> wrote:
> >  unoconv -f pdf text.txt
> 
> 50+ megabytes of the libreoffice stack to install, But yes, that will
> do it. A sledgehammer to crack a nut.

This may be more delicate?:   https://www.gnu.org/software/a2ps/

Erik

[toc] | [prev] | [next] | [standalone]


#190736

FromErik Christiansen <dvalin@internode.on.net>
Date2018-01-07 03:50 +0100
Message-ID<v59c5-1w8-5@gated-at.bofh.it>
In reply to#190734
On 07.01.18 13:26, Erik Christiansen wrote:
> 
> This may be more delicate?:   https://www.gnu.org/software/a2ps/

Hmmm ... and if ps2pdf isn't yet installed at your end, then an apt-get
fixes that. It produces sterling pdf from ps for me - big prints come
out perfectly at the local printer.

Erik

[toc] | [prev] | [next] | [standalone]


#190741

FromCurt <curty@free.fr>
Date2018-01-07 12:10 +0100
Message-ID<v5gZX-6Nj-1@gated-at.bofh.it>
In reply to#190732
On 2018-01-07, Brian <ad44@cityscape.co.uk> wrote:
>> >
>> > How does one convert a text file to a PDF using the command line?
>> >
>> 
>>  unoconv -f pdf text.txt
>
> 50+ megabytes of the libreoffice stack to install, But yes, that will
> do it. A sledgehammer to crack a nut.

Depends on the nut, doesn't it?

Anyhoo, I don't understand where you get the 50+ megabytes. I see two
dependencies in stable (python3 and python3-uno), a package size of 48.8
kB, and an installed size of 327.0 kB. So I'm understanding the package
does not depend upon the installation of LibreOffice proper (the
redoubtable "stack"?).

Perhaps my comprehension is faulty.

-- 
"An autobiography is only to be trusted when it reveals something disgraceful.
A man who gives a good account of himself is probably lying, since any life
when viewed from the inside is simply a series of defeats."
— George Orwell

[toc] | [prev] | [next] | [standalone]


#190742

FromBrian <ad44@cityscape.co.uk>
Date2018-01-07 13:40 +0100
Message-ID<v5ip4-7Aw-5@gated-at.bofh.it>
In reply to#190741
On Sun 07 Jan 2018 at 11:06:01 +0000, Curt wrote:

> On 2018-01-07, Brian <ad44@cityscape.co.uk> wrote:
> >> >
> >> > How does one convert a text file to a PDF using the command line?
> >> >
> >> 
> >>  unoconv -f pdf text.txt
> >
> > 50+ megabytes of the libreoffice stack to install, But yes, that will
> > do it. A sledgehammer to crack a nut.
> 
> Depends on the nut, doesn't it?
> 
> Anyhoo, I don't understand where you get the 50+ megabytes. I see two
> dependencies in stable (python3 and python3-uno), a package size of 48.8

Look at the dependencies of python3-uno and then at those of
libreoffice-core.

> kB, and an installed size of 327.0 kB. So I'm understanding the package
> does not depend upon the installation of LibreOffice proper (the
> redoubtable "stack"?).

Indeed not. Those packages are recommended only. (But many people wisely
stick with the default of installing Recommends:).
 
> Perhaps my comprehension is faulty.

"Room for improvement" is how I would put it. :)


root@desktop3:~# apt-get install unoconv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  fonts-opensymbol libboost-date-time1.62.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0
  libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libeot0 libexttextcat-2.0-0 libexttextcat-data libgltf-0.  1-1 libgpgmepp6 libhyphen0 liblangtag-common liblangtag1 libmhash2 libmythes-1.2-0 libneon27-gnutls libodfgen-0.1-1
  liborcus-0.12-0 libpython3.6 libraptor2-0 librasqal3 librdf0 libreoffice-common libreoffice-core libreoffice-style-  galaxy libreoffice-style-tango librevenge-0.0-0 libxmlsec1 libxmlsec1-nss libyajl2 python3-uno uno-libs3 ure
Suggested packages:
  raptor2-utils rasqal-utils librdf-storage-postgresql librdf-storage-mysql librdf-storage-sqlite librdf-storage-virt  uoso redland-utils tango-icon-theme java5-runtime
Recommended packages:
  libreoffice-writer libreoffice-draw libreoffice-calc libreoffice-impress
The following NEW packages will be installed:
  fonts-opensymbol libboost-date-time1.62.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0
  libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libeot0 libexttextcat-2.0-0 libexttextcat-data libgltf-0.  1-1 libgpgmepp6 libhyphen0 liblangtag-common liblangtag1 libmhash2 libmythes-1.2-0 libneon27-gnutls libodfgen-0.1-1
  liborcus-0.12-0 libpython3.6 libraptor2-0 librasqal3 librdf0 libreoffice-common libreoffice-core libreoffice-style-  galaxy libreoffice-style-tango librevenge-0.0-0 libxmlsec1 libxmlsec1-nss libyajl2 python3-uno uno-libs3 unoconv ur  e
0 upgraded, 37 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.0 MB of archives.
After this operation, 240 MB of additional disk space will be used.
Do you want to continue? [Y/n]


Note that recommended packages are not being installed. Adding them
with "--install-recommends" raises the bar to 207 MB. My estimate was
conservative.

OTOH, cupsfilter is already on the system. It handles text, image and
Postscript files and, run with "-m application/vnd.cups-pdf", produces
a PDF which is autorotated to make it suitable for normal printing.
Lack of searchable text in a PDF is of no consequence for printing.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#190753

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2018-01-07 17:10 +0100
Message-ID<v5lGh-1wi-7@gated-at.bofh.it>
In reply to#190741
On Sun 07 Jan 2018 at 11:06:01 (+0000), Curt wrote:
> On 2018-01-07, Brian <ad44@cityscape.co.uk> wrote:
> >> >
> >> > How does one convert a text file to a PDF using the command line?
> >> >
> >> 
> >>  unoconv -f pdf text.txt
> >
> > 50+ megabytes of the libreoffice stack to install, But yes, that will
> > do it. A sledgehammer to crack a nut.
> 
> Depends on the nut, doesn't it?
> 
> Anyhoo, I don't understand where you get the 50+ megabytes. I see two
> dependencies in stable (python3 and python3-uno), a package size of 48.8
> kB, and an installed size of 327.0 kB. So I'm understanding the package
> does not depend upon the installation of LibreOffice proper (the
> redoubtable "stack"?).
> 
> Perhaps my comprehension is faulty.

I guess you forgot to read    man unoconv:

       "unoconv uses the LibreOffice’s UNO bindings for non-interactive
       conversion of documents and therefore needs an LibreOffice
       instance to communicate with. Therefore if it cannot find one,
       it will start its own instance for temporary usage."

Myself, I use paps and ps2pdf. paps has a few options that I use,
like margins and columns, and I get a few more obscure Unicode
characters rendered successfully using the Freemono fonts than
I get with cupsfilter, but that's probably because I haven't
studied how I could modify the latter's behaviour.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#190827

Fromdavidson <davidson@freevolt.org>
Date2018-01-09 07:30 +0100
Message-ID<v5VA5-gC-11@gated-at.bofh.it>
In reply to#190723
On Sat, 6 Jan 2018, Brian wrote:

> On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
>
>> On 1/6/2018 4:06 AM, Jason wrote:
>>> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
>>> print files to. I only know how to do this with the GUI program
>>> system-config-printer but I don't want to install that on this
>>> Pi. What shell command do I need to create a PDF printer on the Pi (or
>>> on any Debian, for that matter)?
>>>
>>
>> Why do you want to"print" if you can convert to pdf using the command line?
>> Based on the original file extension you simply search for a utility that
>> will convert your original file to pdf.
>
> How does one convert a text file to a PDF using the command line?

Step 1. Make sure the text file is also a latex document.
Step 2. Use latex.

[toc] | [prev] | [next] | [standalone]


#190832

FromIonel Mugurel Ciobîcă <I.M.Ciobica@upcmail.nl>
Date2018-01-09 10:30 +0100
Message-ID<v5Yoi-28o-9@gated-at.bofh.it>
In reply to#190827
On  9-01-2018, at 06h 52'16", davidson wrote about "Re: How to create a PDF-Printer from the command line"
> >
> >How does one convert a text file to a PDF using the command line?
> 
> Step 1. Make sure the text file is also a latex document.
> Step 2. Use latex.

Assuming step 1 is reached, step 2 will make a dvi file. That was not
what the OP asked for...


Ionel

[toc] | [prev] | [next] | [standalone]


#190834

From<tomas@tuxteam.de>
Date2018-01-09 10:40 +0100
Message-ID<v5YxZ-2bL-15@gated-at.bofh.it>
In reply to#190832
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jan 09, 2018 at 09:52:08AM +0100, Ionel Mugurel Ciobîcă wrote:
> On  9-01-2018, at 06h 52'16", davidson wrote about "Re: How to create a PDF-Printer from the command line"
> > >
> > >How does one convert a text file to a PDF using the command line?
> > 
> > Step 1. Make sure the text file is also a latex document.
> > Step 2. Use latex.
> 
> Assuming step 1 is reached, step 2 will make a dvi file. That was not
> what the OP asked for...

Use pdflatex. Or lualatex. Or whatever. In any case, whoever is
going that path (it *does* have its upsides: I'm going it all the
time) knows that already.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlpUjUgACgkQBcgs9XrR2kZ0WACffnNH8gdYmEmZwIAHiN98xlzE
HSUAmgOclsjR9e4tXppAFlh+O/oqv1Iy
=km+c
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


Page 1 of 4  [1] 2 3 4  Next page →

Back to top | Article view | linux.debian.user


csiph-web