View previous topic :: View next topic |
Author |
Message |
andor2 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/209018337142a228013cc9a.jpg)
Joined: 03 Jun 2005 Posts: 13 Location: Mannheim, Germany
|
Posted: Thu Apr 12, 2007 1:31 pm Post subject: gs pdf problem |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
andor2 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/209018337142a228013cc9a.jpg)
Joined: 03 Jun 2005 Posts: 13 Location: Mannheim, Germany
|
Posted: Thu Apr 12, 2007 1:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Knieper l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 10 Nov 2005 Posts: 846
|
Posted: Thu Apr 12, 2007 1:47 pm Post subject: |
|
|
Code: |
>convert -page A4<Tab-Taste>
geometry of image canvas (<width>x<height>{+-}<x>{+-}<y>{%}{!}{<}{>})
A4 A4Small
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
andor2 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/209018337142a228013cc9a.jpg)
Joined: 03 Jun 2005 Posts: 13 Location: Mannheim, Germany
|
Posted: Thu Apr 12, 2007 9:36 pm Post subject: |
|
|
Okay, damit gehts auch.
Kann man das auch irgendwie als Standard einstellen? Sonst muss ich das ja jedes Mal extra als Parameter angeben...
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 |
|
![](templates/gentoo/images/spacer.gif) |
Finswimmer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1672586922424daf205ec26.jpg)
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Fri Apr 13, 2007 7:13 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
andor2 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/209018337142a228013cc9a.jpg)
Joined: 03 Jun 2005 Posts: 13 Location: Mannheim, Germany
|
Posted: Fri Apr 13, 2007 9:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tgurr Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 27 Jan 2004 Posts: 571 Location: germany
|
Posted: Fri Apr 13, 2007 10:48 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
andor2 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/209018337142a228013cc9a.jpg)
Joined: 03 Jun 2005 Posts: 13 Location: Mannheim, Germany
|
Posted: Fri Apr 13, 2007 12:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|