Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PDF Datei von der console drucken aber nur seite 1-5[solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Mon Apr 26, 2010 2:05 pm    Post subject: PDF Datei von der console drucken aber nur seite 1-5[solved] Reply with quote

Hallo zusammen,

ich möchte gerne ein PDF von der console ausdrucken.
Dazu verwende ich pdf2ps. Danach liegts im postscript-Format vor.
Anschließen schicke ich das einfach per lpr -l -P<Drucker> an meinen Netzwerkdrucker.

Soweit funktioniert das sehr gut. Doch würde ich jetzt gerne nur die Seiten 1-5 ausdrucken.
Kann ich irgendwie per ghostscript Seitenweise ausschneiden und in ne neue Datei einfügen?

Oder seht Ihr da ne andere Lösung?

EDIT: PS : Nein, ich möchte das nicht grafisch machen. Das soll nachher crongesteuert täglich laufen.
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes


Last edited by tazinblack on Tue Apr 27, 2010 9:39 am; edited 1 time in total
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Mon Apr 26, 2010 3:09 pm    Post subject: Reply with quote

schau dir mal die -o page-ranges option von lpr oder die -p option an
http://www.cups.org/documentation.php/options.html
http://www.cl.cam.ac.uk/cgi-bin/manpage?lpr
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2403
Location: Germany

PostPosted: Mon Apr 26, 2010 3:37 pm    Post subject: Reply with quote

Hmm ich weiß wie du ein neues pdf erzeugst das nur aus den Seiten besteht die du haben willst. Wenn dann weißt wie du die komplett von der Konsole drucken kannst solltest dein Ziel erreicht haben.

Ich mach das mit pdfnup, eigentlich ein Programm um mehrere Seiten auf ein Blatt zu bekommen. Wenn man aber angibt das nur eine Seite auf einem Blatt sein soll ist das kein Problem.

Code:
$ pdfnup --pages 1-5 --nup 1x1 ./dein.pdf


pdfnup findest du im Paket app-text/pdfjam
Back to top
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1146
Location: Baden / Germany

PostPosted: Tue Apr 27, 2010 9:38 am    Post subject: Reply with quote

firefly wrote:
schau dir mal die -o page-ranges option von lpr oder die -p option an
http://www.cups.org/documentation.php/options.html
http://www.cl.cam.ac.uk/cgi-bin/manpage?lpr


Hey super,

danach hatte ich gesucht. Leider stehen in der Manpage von lpr die möglichen Optionen nicht drin, sonst hätte ich das wohl gleich gesehen.
Interessanterweise muss ich das auch vorher gar nicht erst nach Postscript wandeln. Ein direktes
Code:
lpr -o page-ranges=1-5 -P<Drucker>
reicht.

Vielen Dank!
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum