Revision: 5573
http://skim-app.svn.sourceforge.net/skim-app/?rev=5573&view=rev
Author: hofman
Date: 2009-08-20 22:58:50 +0000 (Thu, 20 Aug 2009)
Log Message:
-----------
remove PDF With Embedded Notes export format from popup for encrypted PDFs,
because that's when PDFKit refuses to write it.
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2009-08-20 20:38:09 UTC (rev 5572)
+++ trunk/SKPDFDocument.m 2009-08-20 22:58:50 UTC (rev 5573)
@@ -285,7 +285,7 @@
NSPopUpButton *formatPopup = [[savePanel accessoryView]
subviewOfClass:[NSPopUpButton class]];
if (formatPopup) {
NSString *lastExportedType = [[NSUserDefaults
standardUserDefaults] stringForKey:SKLastExportedTypeKey];
- if ([[self pdfDocument] allowsPrinting] == NO) {
+ if ([[self pdfDocument] isEncrypted]) {
NSInteger idx = [formatPopup
indexOfItemWithRepresentedObject:SKEmbeddedPDFDocumentType];
if (idx != -1)
[formatPopup removeItemAtIndex:idx];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit