[Bug 419432] New: xfig prints empty pages
https://bugzilla.novell.com/show_bug.cgi?id=419432 Summary: xfig prints empty pages Product: openSUSE 11.0 Version: Final Platform: i586 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: WernerGuenzl@guenzl.net QAContact: jsmeix@novell.com Found By: Other Brian Smith wrote: "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." Here is the 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[i] = tolower(psize[i]); 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"); It would be beautiful, if a patched XFig would be made available as update for openSuSE-11.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=419432 User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=419432#c1 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsmeix@novell.com |werner@novell.com --- Comment #1 from Johannes Meixner <jsmeix@novell.com> 2008-08-22 03:39:57 MDT --- Seems to be for the xfig/transfig maintainer. By the way: It looks more like a problem with DSC comments which are not in compliance to the Adobe DSC specification than a problem in CUPS because the "PostScript Language Document Structuring Conventions Specification" reads in the section "DSC Conformance": ---------------------------------------------------------- A non-conforming document most likely will not receive any services from a document manager ---------------------------------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=419432 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=419432 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=419432#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |WernerGuenzl@guenzl.net --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2008-10-08 07:19:12 MDT --- AFAIK on openSuSE we have transfig.3.2.5 only and your patch does not fit. Where can I find transfig.3.2.5a? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=419432 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=419432#c3 --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2008-10-08 07:31:42 MDT --- I've submitted a patched version of transfig to openSuSE 11.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=419432 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=419432#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|WernerGuenzl@guenzl.net | Resolution| |FIXED --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2008-10-14 05:34:42 MDT --- No info, close bug -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com