• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

XFig druckt leere Blätter?

Hallo,

ich habe xfig 3.2 patchlevel 5 auf openSuSE-11.0

Es wurden mit CUPS-Verwaltung auf Firefox drei Drucker eingerichtet,
die alle einwandfrei funktionieren, nicht nur die Testdrucke.

Wenn ich mit File -> Print eine Zeichnung ausdrucken will, im Print menu
einen Drucker auswähle, wird mit jedem der drei Drucker ein leeres Blatt
durchgezogen, ohne dass ein Ausdruck erscheint. Früher, xfig auf
SuSE-10.0, hat alles funktioniert.

Wandle ich mit Export meine Zeichnung in ein ps-File um und drucke dieses
mit KGhostview aus, so sehe ich die Zeichnung auf dem Bildschirm, aber
auch hier wird nur einen leeres Blatt durchgezogen.

Woran könnte dies liegen?

Werner.
 
OP
W

WGz

whois schrieb:
Hi
Welches Ursprungsformat hat denn der File?
cu

Da stehe ich jetzt auf dem Schlauch. Ich zeichne mit xfig eine Zeichnung,
gehe File -> Print -> Print menu, trage hier in Printer "tinte" (Name des
Druckers) ein, lasse Print Job Parms leer und drücke Print FIGURE to
Printer.

Ursprungsformat?
 
OP
W

WGz

Er hat das selbe Problem:
http://www.usenet-forums.com/linux-general/96536-xfig-prints-blank.html

oder er:
http://help.lockergnome.com/linux/fig-prints-empty-pages-ftopict481427.html

Es scheint niemand eine griffige Lösung zu haben. Es soll etwas mit GhostScript
und seinen PS-Fonts zu tun haben.

Werner.
 
OP
W

WGz

Brian Smith hat mir geantwortet:

CUPS has a problem with certain formatting of PostScript files so it fails to print
anything in those cases.

There is a fix for fig2dev release 3.2.5a, but I haven't distributed that yet.
However, I have attached a patch file which should fix the problem.
Save the attached patch file in the toplevel transfig directory and do:

patch -p < patch.cups

Then do make and make install.

Ich habe dies noch nicht ausprobiert. patch.cups hat Brian mir geschickt, nur hier
streikt das Laden mit der Bemerkung: "Die Dateierweiterung cups (auch .txt) ist
nicht erlaubt." Wie mache ich es für die, die Interesse daran haben?

Werner.
 
OP
W

WGz

Hier patch.cups

*** fig2dev/dev/genps.c.orig Tue Sep 20 08:09:25 2005
--- fig2dev/dev/genps.c Tue Feb 27 13:49:44 2007
***************
*** 684,689 ****
--- 684,691 ----
height = userury-userlly+1;
}

+ /* put in the magnification for information purposes */
+ fprintf(tfp, "%%Magnification: %.4f\n",metric? mag*76.2/80.0 : mag);
/* only include a pagesize command if PS */
if (!epsflag && !pdfflag) {
/* add comment for ghostview to recognize the page size */
***************
*** 692,697 ****
--- 694,702 ----
for (i=strlen(psize)-1; i>=0; i--)
psize = tolower(psize);
fprintf(tfp, "%%%%DocumentPaperSizes: %s\n",psize);
+ }
+ fprintf(tfp, "%%%%EndComments\n");
+ if (!epsflag && !pdfflag) {
fprintf(tfp, "%%%%BeginSetup\n");
fprintf(tfp, "[{\n");
fprintf(tfp, "%%%%BeginFeature: *PageRegion %s\n", papersize);
***************
*** 709,717 ****
}


- /* put in the magnification for information purposes */
- fprintf(tfp, "%%Magnification: %.4f\n",metric? mag*76.2/80.0 : mag);
- fprintf(tfp, "%%%%EndComments\n");

/* if the user wants an ASCII preview, route the rest of the eps to a temp file */
if (asciipreview) {
--- 714,719 ----
***************
*** 751,756 ****
--- 753,759 ----

if (pats_used)
fprintf(tfp,"/MyAppDict 100 dict dup begin def\n");
+ fprintf(tfp, "%%%%BeginProlog\n");
fprintf(tfp, "%s", BEGIN_PROLOG1);
/* define the standard colors */
genps_std_colors();
***************
*** 843,854 ****

fprintf(tfp, "10 setmiterlimit\n"); /* make like X server (11 degrees) */
fprintf(tfp, "0 slj 0 slc\n"); /* set initial join style to miter and cap to butt */
-
if (multi_page) {
/* reset the matrix for multipage mode */
fprintf(tfp, "initmatrix\n");
} else {
fprintf(tfp, " %.5f %.5f sc\n", scalex, scaley );
if (!epsflag) {
fprintf(tfp,"%%%%Page: 1 1\n");
fprintf(tfp, "%%%%BeginPageSetup\n");
--- 846,858 ----

fprintf(tfp, "10 setmiterlimit\n"); /* make like X server (11 degrees) */
fprintf(tfp, "0 slj 0 slc\n"); /* set initial join style to miter and cap to butt */
if (multi_page) {
/* reset the matrix for multipage mode */
fprintf(tfp, "initmatrix\n");
+ fprintf(tfp, "%%%%EndProlog\n");
} else {
fprintf(tfp, " %.5f %.5f sc\n", scalex, scaley );
+ fprintf(tfp, "%%%%EndProlog\n");
if (!epsflag) {
fprintf(tfp,"%%%%Page: 1 1\n");
fprintf(tfp, "%%%%BeginPageSetup\n");


Werner.

PS.: Siehe: https://bugzilla.novell.com/show_bug.cgi?id=419432
 
Oben