Help!

xfig prints empty pages

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> X Window System RSS
Next:  Installing Linux on a Computer Running XP on 2nd ..  
Author Message
Magnus Warker
External


Since: May 15, 2007
Posts: 10



PostPosted: Sat Jul 21, 2007 2:11 am    Post subject: xfig prints empty pages
Archived from groups: comp>os>linux>x (more info?)

Hi,

when I print with xfig on my Debian Etch, I just get empty pages.

When I export the figure to pdf, it prints fine with kpdf.
Other apps can print, too.

During printing, the following message is written to the shell:
"request id is Printmaster-88 (1 file(s))"
("Printmaster" is the name of my printer.)

I am using CUPS.

What can I do?

Thanks
Magnus
Back to top
WGz



Joined: Aug 20, 2008
Posts: 1



PostPosted: Wed Aug 20, 2008 5:30 pm    Post subject:

Hi,

here is the patch.cups

Quote:

*** 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");


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 -p0 -i patch.cups

Then do make and make install."

Werner.

See: https://bugzilla.novell.com/show_bug.cgi?id=419432
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> X Window System All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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