[pdfmod] [PdfSharp] Fix issue with saving landscape pages (bgo#597215)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pdfmod] [PdfSharp] Fix issue with saving landscape pages (bgo#597215)
- Date: Thu, 3 Mar 2011 17:09:52 +0000 (UTC)
commit 02d5ef25438039a7f739e6d4767835de9b11a59d
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Mar 3 11:08:47 2011 -0600
[PdfSharp] Fix issue with saving landscape pages (bgo#597215)
Some hacky code in the save routine flipped the dimensions of the page
when it shouldn't have, causing landscape pages to appear cropped very
badly.
lib/PdfSharp/PdfSharp.Pdf/PdfPage.cs | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/lib/PdfSharp/PdfSharp.Pdf/PdfPage.cs b/lib/PdfSharp/PdfSharp.Pdf/PdfPage.cs
index 4eeb219..33a1417 100644
--- a/lib/PdfSharp/PdfSharp.Pdf/PdfPage.cs
+++ b/lib/PdfSharp/PdfSharp.Pdf/PdfPage.cs
@@ -560,11 +560,7 @@ namespace PdfSharp.Pdf
internal override void WriteObject(PdfWriter writer)
{
- // HACK: temporarily flip media box if Landscape
- PdfRectangle mediaBox = MediaBox;
// TODO: Take /Rotate into account
- if (orientation == PageOrientation.Landscape)
- MediaBox = new PdfRectangle(mediaBox.X1, mediaBox.Y1, mediaBox.Y2, mediaBox.X2);
//#warning THHO4STLA: warum nicht new PdfRectangle(mediaBox.Y1, mediaBox.X1, mediaBox.Y2, mediaBox.X2)? - siehe auch Orientation
//#warning THHO4STLA: CropBox, BleedBox etc. auch drehen?
@@ -591,9 +587,6 @@ namespace PdfSharp.Pdf
item.GetType();
#endif
base.WriteObject(writer);
-
- if (this.orientation == PageOrientation.Landscape)
- MediaBox = mediaBox;
}
/// <summary>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]