Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gs pdf problem
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)
View previous topic :: View next topic  
Author Message
andor2
n00b
n00b


Joined: 03 Jun 2005
Posts: 13
Location: Mannheim, Germany

PostPosted: Thu Apr 12, 2007 1:31 pm    Post subject: gs pdf problem Reply with quote

Hallo,

ich habe folgendes Problem mit PDFs. Wenn ich ein Fax verschicken will, dann muss ich das als PDF an meinen Provider hochladen. Das ging auch immer wunderbar, allerdings bekomme ich seit heute die Fehlermeldung, dass das PDF angeblich fehlerhaft ist.

Ich habe versucht, das mit xsane eingescannte Bild direkt als PDF abzuspeichern (das ging sonst immer), als Bild abzuspeichern und mit convert in ein PDF umzuwandeln, sowie das Bild mit convert in PS und mit ps2pdf in PDF umzuwandeln. Alles ohne Erfolg.

Was letztendlich funktioniert hat ist das Bild zu öffnen und mit dem PDF-Drucker von KDE zu drucken. Aber warum funktioniert das mit convert nicht? Oder direkt aus dem xsane-viewer heraus?

Da ich nicht genau weiß, welche Infos jetzt interessant wären, hier mal von allen fehlerhaften PDFs und dem funktionierenden ein pdfinfo:

Das hier funktioniert:
Code:

$ pdfinfo print.pdf
Producer:       ESP Ghostscript 815.03
CreationDate:   Thu Apr 12 14:22:42 2007
ModDate:        Thu Apr 12 14:22:42 2007
Tagged:         no
Pages:          1
Encrypted:      no
Page size:      595 x 842 pts (A4)
File size:      291902 bytes
Optimized:      no
PDF version:    1.3


Alles was jetzt kommt nicht:
Code:

$ pdfinfo scan.pdf
Title:          XSane scanned image
Creator:        XSane version 0.991 (sane 1.0) - by Oliver Rauch
Producer:       XSane 0.991
CreationDate:   Thu Apr 12 13:23:58 2007
Tagged:         no
Pages:          1
Encrypted:      no
Page size:      594 x 832 pts
File size:      89976 bytes
Optimized:      no
PDF version:    1.4

$ pdfinfo convert.pdf
Title:          convert.pdf
Producer:       ImageMagick 6.3.0 04/12/07 Q16 http://www.imagemagick.org
CreationDate:   Thu Apr 12 15:25:45 2007
ModDate:        Thu Apr 12 15:25:45 2007
Tagged:         no
Pages:          1
Encrypted:      no
Page size:      1692 x 2338 pts
File size:      707403 bytes
Optimized:      no
PDF version:    1.4

$ pdfinfo ps2pdf.pdf
Producer:       ESP Ghostscript 815.03
CreationDate:   Thu Apr 12 15:26:38 2007
ModDate:        Thu Apr 12 15:26:38 2007
Tagged:         no
Pages:          1
Encrypted:      no
Page size:      612 x 792 pts (letter)
File size:      234763 bytes
Optimized:      no
PDF version:    1.2

$ pdfinfo ps2pdf13.pdf
Producer:       ESP Ghostscript 815.03
CreationDate:   Thu Apr 12 15:26:49 2007
ModDate:        Thu Apr 12 15:26:49 2007
Tagged:         no
Pages:          1
Encrypted:      no
Page size:      612 x 792 pts (letter)
File size:      234895 bytes
Optimized:      no
PDF version:    1.3



Gruß,
Christian
_________________
Windows is not the answer, Windows is the question. And the answer is NO!
Back to top
View user's profile Send private message
andor2
n00b
n00b


Joined: 03 Jun 2005
Posts: 13
Location: Mannheim, Germany

PostPosted: Thu Apr 12, 2007 1:35 pm    Post subject: Reply with quote

Und jetzt der Hammer:

Damit wird das PDF akzeptiert:

Code:

$ convert test.png test.ps
$ ps2pdf13 -sPAPERSIZE=a4 test.ps test.pdf


Es liegt also anscheinend an der Papiergröße... Allerdings geht diese Option natürlich nicht bei convert oder bei xsane. Kann man das A4-Format irgendwo als Standard einstellen?

Gruß,
Christian
_________________
Windows is not the answer, Windows is the question. And the answer is NO!
Back to top
View user's profile Send private message
Knieper
l33t
l33t


Joined: 10 Nov 2005
Posts: 846

PostPosted: Thu Apr 12, 2007 1:47 pm    Post subject: Reply with quote

Code:

>convert -page A4<Tab-Taste>
geometry of image canvas (<width>x<height>{+-}<x>{+-}<y>{%}{!}{<}{>})
A4       A4Small
Back to top
View user's profile Send private message
andor2
n00b
n00b


Joined: 03 Jun 2005
Posts: 13
Location: Mannheim, Germany

PostPosted: Thu Apr 12, 2007 9:36 pm    Post subject: Reply with quote

Okay, damit gehts auch.

Kann man das auch irgendwie als Standard einstellen? Sonst muss ich das ja jedes Mal extra als Parameter angeben... 8O

Und wie siehts aus mit xsane -> Scannen -> Speichern als PDF?
_________________
Windows is not the answer, Windows is the question. And the answer is NO!
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Fri Apr 13, 2007 7:13 am    Post subject: Reply with quote

Schreib dir in /etc/bash/bashrc einen alias:

convert = 'convert -page a4'

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
andor2
n00b
n00b


Joined: 03 Jun 2005
Posts: 13
Location: Mannheim, Germany

PostPosted: Fri Apr 13, 2007 9:06 am    Post subject: Reply with quote

Danke, das ist natürlich der einfache und geniale Trick auf den ich normalerweise selbst komme...

Allerdings hilft mir das z.B. beim PDF-Speichern von xsane aus nicht. Kennt sich damit jemand aus? Wie bekomm ich diese PDFs ordentlich hin?
_________________
Windows is not the answer, Windows is the question. And the answer is NO!
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Fri Apr 13, 2007 10:48 am    Post subject: Reply with quote

Hallo, ich weiß nicht ob dir das eventuell bei deinem Problem weiter hilft aber bin gestern über eine Datei gestolpert:
/etc/papersize
in der bei mir a4 drin steht, ist das bei dir auch der Fall?
Back to top
View user's profile Send private message
andor2
n00b
n00b


Joined: 03 Jun 2005
Posts: 13
Location: Mannheim, Germany

PostPosted: Fri Apr 13, 2007 12:24 pm    Post subject: Reply with quote

Ja, da steht bei mir auch a4 drin. Allerdings musste ich bei ps2pdf auch A4, mit großen A angeben... jedenfalls bringt das für xsane nix.
_________________
Windows is not the answer, Windows is the question. And the answer is NO!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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