Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
%%IncludeFeature: functionality not working correctly #2831
Comments
|
CUPS.org User: mike Will look at your patch. BTW, Till doesn't work on and isn't affiliated with the CUPS project. |
|
CUPS.org User: sbalneav Oh! Man, sorry, thought he was, heh! Thanks for looking at the patch. Let me know if you need examples of the postscript that OO.o spits out. Cheers! Scott |
|
CUPS.org User: mike OK, the patch has some problems in that it doesn't copy the page setup commands if this isn't the first page of an N-up sheet. Working on a variation that doesn't have this problem... |
|
CUPS.org User: mike Fixed in Subversion repository. Updated patch is attached. |
|
"pstops.patch": --- cupsys-1.3.7/filter/pstops.c 2008-01-14 16:12:58.000000000 -0600
if (pageinfo->num_options > 0) /*
- */
- int feature = 0; /* In a Begin/EndFeature block? */
- feature = 1;
- feature = 0;
- continue;
- }
- */
- }
@@ -1789,8 +1795,6 @@ doc_puts(doc, "%%BeginSetup\n"); - do_setup(doc, ppd);if (!strncmp(line, "%%BeginSetup", 12))
doc_puts(doc, "%%EndSetup\n"); return (linelen); |
|
"str2831.patch": Index: filter/pstops.c--- filter/pstops.c (revision 7636) if (first_page)
- doc_puts(doc, "%%BeginPageSetup\n");
@@ -1581,48 +1626,6 @@ /*
- */
- int feature = 0; /* In a Begin/EndFeature block? */
- feature = 1;
- feature = 0;
- continue;
- }
- */
- }
@@ -1789,8 +1792,6 @@ doc_puts(doc, "%%BeginSetup\n"); - do_setup(doc, ppd);if (!strncmp(line, "%%BeginSetup", 12))
doc_puts(doc, "%%EndSetup\n"); return (linelen); |
michaelrsweet commentedMay 22, 2008
Version: 1.3.7
CUPS.org User: sbalneav
Per OpenOffice bug #65491:
http://www.openoffice.org/issues/show_bug.cgi?id=65491
OpenOffice moved from a %%BeginFeature/%%EndFeature to an %%IncludeFeature style for selecting features to include. Notibly (in my case) selecting InputSlots for multibin printing (we work in an office environment, and it's quite common to have a document that has the first page pulling letterhead from bin 2, plain from bin 3, and an envelope from the envelope feeder)
I think I've found 2 problems with the pstops filter:
I've attached a patch.
Oh, BTW, tell Till Scott says Hi! :)
Cheers!
Scott