A few more changes are needed here:

1. You should use the Adobe names for all sizes; you can find the official list 
in Appendix B of the Adobe PPD specification, available here:

    http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf

2. Tabloid is 792x1224, not 791x1224; similarly, Ledger landscape is 1224x792.  
You'll find the official dimensions in the PPD spec as well...

3. Legal is 612x1008, not 612x1009

Also, I have some FLTK UI code for CUPS that is gathering dust - if you'd like 
to use this in 1.3 let me know and I'll send it your way...

On Feb 28, 2010, at 1:46 PM, [email protected] wrote:

> Author: manolo
> Date: 2010-02-28 13:46:37 -0800 (Sun, 28 Feb 2010)
> New Revision: 7179
> Log:
> Setting PageSize feature how it should be (good to get qualified help)
> 
> Modified:
>   branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx
> 
> Modified: branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx
> ===================================================================
> --- branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx      2010-02-28 
> 18:42:58 UTC (rev 7178)
> +++ branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx      2010-02-28 
> 21:46:37 UTC (rev 7179)
> @@ -41,14 +41,14 @@
> 
> // others (look at Fl_Printer.H} //
> {462, 649},  // c5 envelope
> -{312, 623},  // d1 envelope
> -{541, 719},
> -{595, 935},
> -{1224, 790},  //Ledger landscape
> -{612, 1009},  //Legal
> -{612, 790}, //Letter
> -{791, 1224},  //Ledger
> -{297, 683}   //Comm10 envelope
> +{312, 623},  // dl envelope
> +{541, 719}, // executive
> +{595, 935}, // folio
> +{1224, 790},  // Ledger landscape
> +{612, 1009},  // Legal
> +{612, 790}, // Letter
> +{791, 1224},  // tabloid
> +{297, 683}   //  envelope
> 
> };
> 
> @@ -331,8 +331,8 @@
>     fprintf(output, "%%%%Pages: %i\n", pagecount);
>   else
>     fprintf(output, "%%%%Pages: (atend)\n");
> -  fprintf(output, "%%%%BeginFeature: *PageSize\n" );
> -  fprintf(output, "%s\n", (format==A4?"a4":"letter") );
> +  fprintf(output, "%%%%BeginFeature: *PageSize %s\n", 
> (format==A4?"A4":"Letter") );
> +  fprintf(output, "<</PageSize[%d %d]>>setpagedevice\n", 
> page_formats[format][0], page_formats[format][1] );
>   fprintf(output, "%%%%EndFeature\n");
>   fprintf(output, "%%%%EndComments\n");
>   fprintf(output, prolog);
> 
> _______________________________________________
> fltk-commit mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk-commit

________________________________________
Michael Sweet, Easy Software Products



_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to