Computerhilfen.de: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.

Hilfe und Tipps: Linux Forum & Hilfe: Thema gestartet von: 1234567 am 21.07.07, 10:06:25
Thema lesen und antworten: http://www.computerhilfen.de/hilfen-6-182589-0.html
Mit dem Handy lesen und antworten: http://mobil.computerhilfen.de/mobil-hilfen-6-182589-0.html




Titel: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: 1234567 am 21.07.07, 10:06:25
Hallo

Ja ich weiss, bin nicht der erste der sowas finden will, jedoch habe keine Lösung für mein Problem(chen) gefunden. :-[

Wie gesagt, ich suche ein PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) Drucker für Linux (http://www.computerhilfen.de/fachbegriffe-l-Linux.html) oder zumindest ein "Umwandler" der aus PostScript (http://www.computerhilfen.de/fachbegriffe-p-PostScript.html) Dateien PDFs machen kann. OpenOffice kann schon einiges aben eben nicht alles.

Habe es mit CUPS-PDF probiert nur die Konfiguration war so wissenschaftlich, daß ich nicht weiter gekommen bin.

Gibt es nicht etwas einfaches wie z.B. ein RPM Paket was man installiert und dann per Befehl eine PS Datei in PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) umwandeln kann?

Habe OpenSuSE 10.2 64bit und alle Installationsquellen habe ich auch eingefügt.

Danke und schönes Wochenende!

CU
1234567



Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: Dr. SuSE am 21.07.07, 10:47:47
Hallo,

es gibt viele Lösungen zu Deiner Problemstellung. Eine ist hier sehr schön ausführlich beschrieben und passt direkt für die SuSE:

http://www.tecchannel.de/server/linux/431673

Beachte, dass bei einem 64 Bitsystem das in der Anleitung angegebene Verzeichnis /usr/lib64..... heisst und nicht /usr/lib....

Wenn Du Pdf's komfortabel bearbeiten möchtest,so wie mit Adobes Acrobat, kannst Du dir PDFedit installieren. Dazu diese Installationsquelle hinzufügen:

ftp5.gwdg.de

pub/opensuse/repositories/home:/nderkach

und anschliessend in yast nach pdfedit suchen und installieren.

Have Fun



Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: 1234567 am 21.07.07, 11:35:12
Danke!

Genau von diese "hochwissenschaftliche Seite" habe ich geredet. Ich glaube das letzte mal als ich es versucht habe, habe ich nicht auf /usr/lib64 geachtet sondern nur auf /usr/lib.

Ich werde es zuerst unter VMWare Server (http://www.computerhilfen.de/fachbegriffe-s-Server.html) probieren, da habe ich auch SuSE10.2 64bit für Experimente installiert. Wenn es dort klappt, dann installiere ich es auf mein Rechner.

Die Installationsquelle habe ich jetzt hinzugefügt.

CU
1234567





Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: Dr. SuSE am 21.07.07, 12:18:42
Hallo,

kann die Sache ja mal zusammenfassen, damit Du es leichter hast.
Du ziehst dir von der Homepage das aktuelle cups-pdf_2.4.6.tar.gz File. Öffne nun eine Rootkonsole und entpacke das Archiv. Gehe in das entpackte Verzeichnis nach ../extras. Kopiere die Datei cups-pdf.conf nach /etc/cups und die Postscriptdatei in den in der Anleitung angegebenen Pfad ( /usr/share/cups/model )

Springe nun in das Verzeichnis .../src  und führe die in der Anleitung angegebene Befehlszeile aus. Vorherige Anpassungen sind nicht mehr notwendig! Das kannst Du nachträglich ggf. ändern in der Datei /etc/cups/cups-pdf.conf welche es zum Zeitpunkt der Artikelveröffnetlichung noch nicht gab.
Kopiere nun das kompilerte Progammfile nach /usr/lib(64)/cups/backends
und starte cups durch eingabe von rccups restart ENTER neu

tippe nun lpinfo -v | grep cups-pdf

Es sollte das Ergebnis bringen wie es in der Anleitung steht.

Richte nun den PDF Drucker ein in dem Du tippst:

lpadmin -p pdfcreate -v cups-pdf:/ -P /usr/share/cups/model/PostscriptColor.ppd. -E

Alles in eine Zeile schreiben! Zwischen -P und /usr/share.... ist ein Leerzeichen.

Danach cups nochmals neu starten wie gehabt mit rccups restart.

Das wars. Im Druckdialog der Anwendungen taucht nun eine neuer Drucker pdfcreate auf, mit dem Du die PDFs erzeugen kannst. Das blau markierte Wort kannst du frei vergeben ohne leer und Sonderzeichen. Ich benutze immer pdfcreate in der lpadmin Zeile. Für den Windowsteil kannst Du dich wieder voll an die Anleitung halten, falls du es benötigen solltest.

Das vorher die Entwicklungsumgebung wie make, gcc komplett, libtool, autoconf u.s.w. installiert sein muss, versteht sich eigentlich von selbst.


Have Fun



Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: 1234567 am 21.07.07, 19:06:29
Hallo

Na das nenne ich eine Anleitung! Danke!!
Hab´s soweit hinbekommen.

Allerdings habe ich keine Ahnung wo er die pdfs speichert.
In die Datei cups-pdf.conf steht das:

Code:
#  cups-pdf.conf -- CUPS Backend Configuration (version 2.4.6, 2007-05-04)
#  18.09.2005, Volker C. Behr
#  Exp. Physik V, Uni Wuerzburg
#  vrbehr@cip.physik.uni-wuerzburg.de
#  http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf
#
#
#  This code may be freely distributed as long as this header (http://www.computerhilfen.de/fachbegriffe-h-Header.html)
#  is preserved. Changes to the code should be clearly indicated. 
#
#  This code is distributed under the GPL.
#  (http://www.gnu.org/copyleft/gpl.html)
#
#  For more detailed licensing information see cups-pdf.c in the
#  corresponding version number.            

###########################################################################
#   #
# This is the configuration file for CUPS-PDF. Values that are not set in #
# here will use the defaults. Changes take effect immediately without the #
# need for restarting any services.   #
#   #
# Take care not to add whitespaces at the end of a line!   #
#   #
###########################################################################


###########################################################################
#   #
# Path Settings   #
#   #
###########################################################################

### Key: Out
##  CUPS-PDF output directory (http://www.computerhilfen.de/fachbegriffe-d-Directory.html)
##  special qualifiers:
##    ${HOME} will be expanded to the user's home directory
##    ${USER} will be expanded to the user name
##  in case it is an NFS (http://www.computerhilfen.de/fachbegriffe-n-NFS.html) export make sure it is exported without
##  root_squash!
### Default: /var/spool/cups-pdf/${USER}

#Out /var/spool/cups-pdf/${USER}

### Key: AnonDirName
##  ABSOLUTE path for anonymously created PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) files
##  if anonymous access is disabled this setting has no effect
### Default: /var/spool/cups-pdf/ANONYMOUS

#AnonDirName /var/spool/cups-pdf/ANONYMOUS

### Key: Spool
##  CUPS-PDF spool directory (http://www.computerhilfen.de/fachbegriffe-d-Directory.html) - make sure there is no user 'SPOOL' on your
##  system or change the path
### Default: /var/spool/cups-pdf/SPOOL

Spool /var/spool/cups-pdf/SPOOL


###########################################################################
#   #
# Filename Settings   #
#   #
###########################################################################

### Key: Cut
##  removing file name extensions before appending .pdf (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) to output
##  extensions will only be removed if _both_ the following criteria are met:
##  - the extension (w/o the dot) is not longer than <Out> characters
##  - the remaining filename has a minimal length of 1 character
##  set Cut to -1 in order to disable cutting
##  recommended values: pure UNIX (http://www.computerhilfen.de/fachbegriffe-u-Unix.html) environment : -1
##                      mixed environments    :  3
### Default: 3

#Cut 3

### Key: Label
##  label all jobs with a unique job-id in order to avoid overwriting old
##  files in case new ones with identical names are created; always true for
##  untitled documents
##  0: label untitled documents only, 1: label all documents
### Default: 0

#Label 0

### Key: TitlePref
##  where to look first for a title when creating the output filename
##  (title in PS file or title on commandline):
##  0: prefer title from %Title statement in the PS file
##  1: prefer title passed via commandline
### Default: 0

#TitlePref 0


###########################################################################
#   #
# User Settings   #
#   #
###########################################################################

### Key: AnonUser
##  user for anonymous PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) creation (this might be a security issue)
##  set this to an empty value to disable anonymous
### Default: nobody

#AnonUser nobody

### Key: LowerCase
##  This options allows to check user names given to CUPS-PDF additionally
##  against their lower case variants. This is necessary since in some
##  Windows (http://www.computerhilfen.de/fachbegriffe-w-Windows.html) environments only upper case user names are passed. Usually UNIX
##  user names are all lower case and it is save to use this option 
##  but be aware that it can lead to mis-identifications in case
##  you have user names that differ only in upper/lower case.
##    check only against user name as passed to CUPS  : 0
##    check additionally against lower case user name : 1
### Default: 1

#LowerCase 1

### Key: UserPrefix
##  some installations require a domain (http://www.computerhilfen.de/fachbegriffe-d-Domain.html) prefix added to the user name
##  leave empty for no prefix
### Default: <empty>

#UserPrefix

### Key: DirPrefix
##  if a prefix was defined above this switch (http://www.computerhilfen.de/fachbegriffe-s-Switch.html) toggels whether to include
##  the prefix in the output directory's name (if not $HOME) or not
##  0: do not include, 1: include
### Default: 0

#DirPrefix 0

### Key: RemovePrefix
##  some installation pass usernames with a prefix (usually a domain (http://www.computerhilfen.de/fachbegriffe-d-Domain.html) name)
##  if you do not want this prefix to be used by the ${USER} variable for
##  output directories put the part which is to be cut here
### Default: <empty>

#RemovePrefix


###########################################################################
#   #
# Security Settings   #
#   #
###########################################################################

### Key: AnonUMask
##  umask for anonymous output
##  these are the _inverse_ permissions to be granted
### Default: 0000

#AnonUMask 0000

### Key: UserUMask
##  umask for user output of known users
##  changing this can introduce security leaks if confidential
##  information is processed!
### Default: 0077

#UserUMask 0077

### Key: Grp
##  group cups-pdf is supposed to run as - this will also be the gid for all
##  created directories and log files
### Default: lp

#Grp lp


###########################################################################
#   #
# Log Settings   #
#   #
###########################################################################

### Key: Log
##  CUPS-PDF log directory (http://www.computerhilfen.de/fachbegriffe-d-Directory.html)
##  set this to an empty value to disable all logging
### Default: /var/log/cups

#Log /var/log/cups

### Key: LogType
##  log-mode
##  1: errors
##  2: status (i.e. activity)
##  4: debug - this will generate a lot of log-output!
##  add up values to combine options, i.e. 7 is full logging
##  if logging is disabled these setting have no effect
### Default: 3

#LogType 3


###########################################################################
#   #
# PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) Conversion Settings   #
#   #
###########################################################################

### Key: GhostScript
##  location of GhostScript binary (gs)
##  MacOSX: for using pstopdf (recommended) set this to /usr/bin/pstopdf
##          or its proper location on your system
### Default: /usr/bin/gs

#GhostScript /usr/bin/gs

### Key: GSTmp
##  location of temporary files during GhostScript operation
##  this must be user-writable like /var/tmp or /tmp !
### Default: /var/tmp

#GSTmp /var/tmp

### Key: GSCall
## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!)
## MacOSX: for using pstopdf set this to %s %s -o %s %s
### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s

#GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s

### Key: PDFVer
##  PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) version to be created - can be "1.5", "1.4", "1.3" or "1.2"
##  MacOSX: for using pstopdf set this to an empty value
### Default: 1.4

#PDFVer 1.4

### Key: PostProcessing
##  postprocessing script that will be called after the creation of the PDF
##  as arguments the filename of the PDF (http://www.computerhilfen.de/fachbegriffe-p-PDF.html) and the username will be passed
##  the script will be called with user privileges
##  set this to an empty value to use no postprocessing
### Default: <empty>

#PostProcessing


###########################################################################
#                                                                        #
# Experimental Settings                                                  #
#  These settings activate experimental options. If you decide to use    #
#  them I would appreciate any feedback - including an 'ok' if they      #
#  work as expected - so I can eventually put them into the non-        #
#  experimental sections.   #
#                                                                        #
###########################################################################

### Key: DecodeHexStrings
##  this option will try to decode hex strings in the title to allow
##  internationalized titles
##  (have a look at contrib/pstitleconv for a suitable filter for data
##  from Windows (http://www.computerhilfen.de/fachbegriffe-w-Windows.html) clients)
##  0: disable, 1: enable
### Default: 0

#DecodeHexStrings 0

Vermute unter "Path Settings" muss ich was ändern. Das Verzeichnis (http://www.computerhilfen.de/fachbegriffe-v-Verzeichnis.html) /var/spool/cups-pdf habe ich angelegt und die Settings auch dementsprechend angepasst ( das # vor Out /var/spool/cups-pdf/${USER} entfernt) allerdings tut sich nichts. Wo muss ich was ändern damit es richtig funktioniert?

1000 Dank!!

CU
1234567



Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: 1234567 am 21.07.07, 20:11:44
Ich bin´s nochmal!

Habe die Lösung gefunden. Ich busste noch den Befehl
sudo chmod +s /usr/lib64/cups/backend/cups-pdf
aufrufen.

Hier steht der Grund dafür:
http://www.wikidorf.de/reintechnisch/Inhalt/UbuntuWeblog

Jetzt läuft alles wie geschmiert.

CU
1234567



Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: Dr. SuSE am 21.07.07, 21:09:15
Hallo,

sorry das ich Dir diese nicht unbedeutende Kleinigkeit heute Morgen unterschlagen habe. Nun kannst du noch einen Symlink in Dein Homeverzeichnis setzen, damit Du nicht in /var/spool/cups-pdf/benutzername nach deinen PDFs suchen musst. Dazu tippst du in eine Rootkonsole:

ln -s /var/spool/cups-pdf/dein_benutzername /home/dein_benutzername/Documents/cups-pdf ENTER

dein_benutzername ist in der Anweisung durch deinen realen Systemnamen zu ersetzen.

Der Tipp mit der OUT Zeile in deinem Link ist Müll, klappt nur in einem Singleuser System.

Have Fun



Titel: Re: Suse: 10.2 PDF Drucker ähnlich FreePDF oder Distiller.
Beitrag von: 1234567 am 22.07.07, 09:56:58
Hallo

Du brauchst Dich nicht zu entschuldigen! Es hat ja alles geklappt.
den Symlink habe ich erstellt und jetzt passt alles.

So experimentierfreudig wie ich bin, hab´s trotzdem versucht und die Datei cups-pdf.conf editiert und unter "Path Settings" die Zeile mit Out so verändert:

Code:
Out /home/benutzername/cups-pdf

Es funktioniert auch.

Danke nochmal!

Gruß
1234567



Computerhilfen.de | Powered by SMF 2.5.1.
© 2001-2012, Lewis Media. Alle Rechte vorbehalten.