[gs-bugs] [Bug 692637] out of memory crash when processing PLRM.pdf on 1st generation iPad
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Sun Oct 30 04:23:59 UTC 2011
http://bugs.ghostscript.com/show_bug.cgi?id=692637
--- Comment #1 from Arthur Ford <support at zumadev.com> 2011-10-30 04:23:58 UTC ---
Looks like the scale factors were off. The following resolved the problem:
diff --git a/ios/main.m b/ios/main.m
index 89614fc..1aeaa6e 100644
--- a/ios/main.m
+++ b/ios/main.m
@@ -153,8 +153,8 @@ static UIImage *renderPage(pdf_xref *xref, int number,
float
return nil;
}
- hscale = width / page->mediabox.x1 - page->mediabox.x0;
- vscale = height / page->mediabox.y1 - page->mediabox.y0;
+ hscale = width / (page->mediabox.x1 - page->mediabox.x0);
+ vscale = height / (page->mediabox.y1 - page->mediabox.y0);
scale = MIN(hscale, vscale);
ctm = fz_translate(0, -page->mediabox.y1);
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list