comparison src/print.c @ 1612:3f47ab223486

enabled PageSize code https://bugzilla.redhat.com/show_bug.cgi?id=222639
author nadvornik
date Sat, 23 May 2009 21:07:21 +0000
parents 24a12aa0cb54
children 25471efb11ba
comparison
equal deleted inserted replaced
1611:659793b79424 1612:3f47ab223486
1118 g_fprintf(f, "%%%%Pages: %d\n", print_layout_page_count(pw)); 1118 g_fprintf(f, "%%%%Pages: %d\n", print_layout_page_count(pw));
1119 g_fprintf(f, "%%%%PageOrder: Ascend\n"); 1119 g_fprintf(f, "%%%%PageOrder: Ascend\n");
1120 g_fprintf(f, "%%%%Title:\n"); 1120 g_fprintf(f, "%%%%Title:\n");
1121 1121
1122 /* setup page size, coordinates (do we really need this?) */ 1122 /* setup page size, coordinates (do we really need this?) */
1123 #if 0 1123 /* enabled for 1.0beta2 https://bugzilla.redhat.com/222639 */
1124 #if 1
1124 g_fprintf(f, "<<\n"); 1125 g_fprintf(f, "<<\n");
1125 g_fprintf(f, "/PageSize [%f %f]\n", pw->layout_width, pw->layout_height); 1126 g_fprintf(f, "/PageSize [%f %f]\n", pw->layout_width, pw->layout_height);
1126 g_fprintf(f, "/ImagingBBox [%f %f %f %f]\n", /* l b r t */ 1127 g_fprintf(f, "/ImagingBBox [%f %f %f %f]\n", /* l b r t */
1127 pw->margin_left, pw->margin_bottom, 1128 pw->margin_left, pw->margin_bottom,
1128 pw->layout_width - pw->margin_right, pw->layout_height - pw->margin_top); 1129 pw->layout_width - pw->margin_right, pw->layout_height - pw->margin_top);