Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New HUD

  • Loading branch information...
commit 5fb22fcd61ed7dfa56bdcb0592a3a15bd4b43327 1 parent 3849763
@steipete steipete authored
View
19 CHANGELOG.md
@@ -4,6 +4,25 @@ Subscribe to updates: [RSS](https://github.com/PSPDFKit/PSPDFKit-Demo/commits/ma
We now have a blog highlighting the best new features and changes: [http://blog.pspdfkit.com]([http://blog.pspdfkit.com)
+__v3.6.0 - X/Mar/2014__
+
+* Selected text now supports text-to-speech on iOS 7+.
+* The search now also includes annotation and form element contents. This is especially useful for note annotations and forms. (PSPDFKit Basic upwards)
+* API: Search related methods are now in the new `searchHighlightViewManager` property of `PSPDFViewController.`
+* Search results are now hidden on page tap (unless that tap finds an action like selecting an annotation.)
+* PDF annotation writing will now be faster and produce a more compact trailer, reducing target file size.
+* Adds support for mailto: links with multiple email addresses (also for cc and bcc).
+* Saving will now use the correct z-index for annotations and forms in the same ordering as they are added. Saving changed objects will no longer change the z-ordering.
+* Simple JavaScript actions like printing, alert boxes or adding form values now work. If you have a use case for that, please contact us at support@pspdfkit.com.
+* The XFDF parser now parses basic rich text strings as used in Acrobat and keeps color and font informations.
+* Increases contrast for the selection color on form choice list-boxes.
+* `PSPDFTextSelectionView` now allows UIAppearance to customize `selectionColor` and `selectionAlpha`.
+* Various improvements for PDF form handling.
+* The `PSPDFActivityViewController` now checks if printing is allowed for the document before even showing the print option.
+* API: The HUD and related views have been reorganized. You might have to update some calls (some views are now within HUDView)
+* API: `PSPDFProgressHUD` has been replaced with the new `PSPDFStatusHUD`, which features a modern iOS 7 design and an improved API.
+* Fixes an issue where PDF form values could become corrupted because of insufficient escaping in some PDF files.
+
__v3.5.2 - 21/Feb/2014__
* `PSPDFYouTubeAnnotationView` has been removed in favor of the newer `PSPDFGallery`. Te gallery is a much better user experience for embedding YouTube videos.
View
3  Examples/PSPDFCatalog/ExampleBuilder/PSCExample.h
@@ -27,7 +27,8 @@ typedef NS_ENUM(NSInteger, PSCExampleCategory) {
PSCExampleCategoryTextExtraction,
PSCExampleCategoryControllerCustomization,
PSCExampleCategoryPageRange,
- PSCExampleCategoryDocumentDataProvider
+ PSCExampleCategoryDocumentDataProvider,
+ PSCExampleCategoryTests
};
typedef NS_OPTIONS(NSInteger, PSCExampleTargetDeviceMask) {
View
7 Examples/PSPDFCatalog/ExampleBuilder/PSCExample.m
@@ -68,12 +68,7 @@ - (UIViewController *)invokeWithDelegate:(id<PSCExampleRunnerDelegate>)delegate
case PSCExampleCategoryAnnotations: break;
case PSCExampleCategoryForms:
return @"PSPDFKit can show the original signed document even if the document has been subsequently altered.";
- case PSCExampleCategoryBarButtons: break;
- case PSCExampleCategoryViewCustomization: break;
- case PSCExampleCategoryStoryboards: break;
- case PSCExampleCategoryTextExtraction: break;
- case PSCExampleCategoryControllerCustomization: break;
- case PSCExampleCategoryAnnotationProviders: break;
+ default: break;
}
return nil;
}
View
15 Examples/PSPDFCatalog/Tests/PSCHUDTestExmple.h
@@ -0,0 +1,15 @@
+//
+// PSCHUDTestExmple.h
+// PSPDFCatalog
+//
+// Copyright (c) 2014 PSPDFKit GmbH. All rights reserved.
+//
+// The PSPDFKit Sample applications are licensed with a modified BSD license.
+// Please see License for details. This notice may not be removed from this file.
+//
+
+#import "PSCExample.h"
+
+@interface PSCHUDTestExmple : PSCExample
+
+@end
View
71 Examples/PSPDFCatalog/Tests/PSCHUDTestExmple.m
@@ -0,0 +1,71 @@
+//
+// PSCHUDTestExmple.m
+// PSPDFCatalog
+//
+// Copyright (c) 2014 PSPDFKit GmbH. All rights reserved.
+//
+// The PSPDFKit Sample applications are licensed with a modified BSD license.
+// Please see License for details. This notice may not be removed from this file.
+//
+
+#import "PSCHUDTestExmple.h"
+
+@implementation PSCHUDTestExmple
+
+- (id)init {
+ if (self = [super init]) {
+ self.title = @"Test the PSPDFStatusHUD";
+ self.category = PSCExampleCategoryTests;
+ self.priority = 1;
+ }
+ return self;
+}
+
+- (UIViewController *)invokeWithDelegate:(id<PSCExampleRunnerDelegate>)delegate {
+ [self performSelector:@selector(updateHud) withObject:nil afterDelay:0.1f];
+ return nil;
+}
+
+- (void)updateHud {
+ PSPDFStatusHUDItem *item = [PSPDFStatusHUDItem progressWithText:@"Hello"];
+ item.title = @"Title";
+ item.subtitle = @"Subtitle";
+ item.progress = 0.7;
+ [item push];
+ [self performSelector:@selector(showError:) withObject:item afterDelay:1.0];
+}
+
+- (void)showError:(PSPDFStatusHUDItem *)oldItem {
+ PSPDFStatusHUDItem *item = [PSPDFStatusHUDItem errorWithText:@"Omg!"];
+ item.title = @"Error";
+ [item push];
+ [self performSelector:@selector(showSuccess:) withObject:item afterDelay:1.0];
+}
+
+- (void)showSuccess:(PSPDFStatusHUDItem *)oldItem {
+ PSPDFStatusHUDItem *item = [PSPDFStatusHUDItem successWithText:@"Omg!"];
+ item.title = @"Success";
+ [item push];
+ [self performSelector:@selector(switchToBlackStyle:) withObject:item afterDelay:1.0];
+}
+
+- (void)switchToBlackStyle:(PSPDFStatusHUDItem *)oldItem {
+ [oldItem setHUDStyle:PSPDFStatusHUDStyleBlack];
+ [self performSelector:@selector(switchToClearStyle:) withObject:oldItem afterDelay:1.0];
+}
+
+- (void)switchToClearStyle:(PSPDFStatusHUDItem *)oldItem {
+ [oldItem setHUDStyle:PSPDFStatusHUDStyleClear];
+ [self performSelector:@selector(switchToGradientStyle:) withObject:oldItem afterDelay:1.0];
+}
+
+- (void)switchToGradientStyle:(PSPDFStatusHUDItem *)oldItem {
+ [oldItem setHUDStyle:PSPDFStatusHUDStyleGradient];
+ [self performSelector:@selector(popAll) withObject:nil afterDelay:2.0];
+}
+
+- (void)popAll {
+ [self performSelector:@selector(updateHud) withObject:nil afterDelay:2.0];
+}
+
+@end
Please sign in to comment.
Something went wrong with that request. Please try again.