Revision: 15216
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15216&view=rev
Author:   hofman
Date:     2009-04-28 11:19:52 +0000 (Tue, 28 Apr 2009)

Log Message:
-----------
white background and no page breaks in TeX PDF preview

Modified Paths:
--------------
    trunk/bibdesk/BDSKPreviewer.m

Modified: trunk/bibdesk/BDSKPreviewer.m
===================================================================
--- trunk/bibdesk/BDSKPreviewer.m       2009-04-28 11:08:21 UTC (rev 15215)
+++ trunk/bibdesk/BDSKPreviewer.m       2009-04-28 11:19:52 UTC (rev 15216)
@@ -181,6 +181,9 @@
     PDFDocument *pdfDoc = [[[PDFDocument alloc] initWithData:[self 
PDFDataWithString:@"" color:nil]] autorelease];
     [pdfView setDocument:pdfDoc];
     
+    [pdfView setDisplaysPageBreaks:NO];
+    [pdfView setBackgroundColor:[NSColor controlBackgroundColor]];
+    
     // don't reset the scale factor until there's a document loaded, or else 
we get a huge gray border
     [pdfView setScaleFactor:pdfScaleFactor];
        [(BDSKZoomableTextView *)rtfPreviewView setScaleFactor:rtfScaleFactor];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to