+2008-03-22 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/pdf/ev-poppler.cc: (pdf_document_file_exporter_do_page):
+
+ Fix printing in documents with rotated pages. Patch by Eugen
+ Dedu. Fixes bug #512648.
+
2008-03-19 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/pdf/ev-poppler.cc: (ev_link_dest_from_dest),
#ifdef HAVE_CAIRO_PRINT
gdouble page_width, page_height;
gint x, y;
- gboolean rotate, landscape;
+ gboolean rotate;
gdouble width, height;
gdouble pwidth, pheight;
gdouble xscale, yscale;
rotate = FALSE;
}
- landscape = (ctx->paper_width > ctx->paper_height);
-
/* Use always portrait mode and rotate when necessary */
if (ctx->paper_width > ctx->paper_height) {
width = ctx->paper_height;
if (rotate) {
cairo_matrix_t matrix;
- cairo_translate (ctx->cr, width, 0);
+ cairo_translate (ctx->cr, (2 * y + 1) * pwidth, 0);
cairo_matrix_init (&matrix,
0, 1,
-1, 0,