Permalink
Browse files

Version 2.5.6a

  • Loading branch information...
1 parent ba7286a commit db84c9d2d92964271c7df79a8466bf9ebada81b4 @vfr committed May 3, 2012
Showing with 15 additions and 19 deletions.
  1. +7 −7 Sources/ReaderMainPagebar.m
  2. +0 −2 Sources/ReaderThumbFetch.m
  3. +1 −3 Sources/ReaderThumbRender.m
  4. +7 −7 Sources/UIXToolbarView.m
@@ -1,6 +1,6 @@
//
// ReaderMainPagebar.m
-// Reader v2.5.4
+// Reader v2.5.6
@Pashton

Pashton Jun 8, 2012

Hey, Sorry for throwing my question here, but I couldn't find an issues section.

I am in the midst of creating a pdf reader based on your current one with a few additional features such as search. I am stuck at a point, and basically what I am wanting to do is redraw the current page. The way showDocumentPage is setup it denies me that, and if I override the restriction it will create a whole new layer of the same page on top of the original.

Thanks in advance.

//
// Created by Julius Oklamcak on 2011-09-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
@@ -151,9 +151,9 @@ - (id)initWithFrame:(CGRect)frame document:(ReaderDocument *)object
self.backgroundColor = [UIColor clearColor];
CAGradientLayer *layer = (CAGradientLayer *)self.layer;
- CGColorRef liteColor = [UIColor colorWithWhite:0.82f alpha:0.8f].CGColor;
- CGColorRef darkColor = [UIColor colorWithWhite:0.32f alpha:0.8f].CGColor;
- layer.colors = [NSArray arrayWithObjects:(id)liteColor, (id)darkColor, nil];
+ UIColor *liteColor = [UIColor colorWithWhite:0.82f alpha:0.8f];
+ UIColor *darkColor = [UIColor colorWithWhite:0.32f alpha:0.8f];
+ layer.colors = [NSArray arrayWithObjects:(id)liteColor.CGColor, (id)darkColor.CGColor, nil];
CGRect shadowRect = self.bounds; shadowRect.size.height = 4.0f; shadowRect.origin.y -= shadowRect.size.height;
@@ -750,9 +750,9 @@ - (id)initWithFrame:(CGRect)frame
self.backgroundColor = [UIColor clearColor];
CAGradientLayer *layer = (CAGradientLayer *)self.layer;
- CGColorRef blackColor = [UIColor colorWithWhite:0.42f alpha:1.0f].CGColor;
- CGColorRef clearColor = [UIColor colorWithWhite:0.42f alpha:0.0f].CGColor;
- layer.colors = [NSArray arrayWithObjects:(id)clearColor, (id)blackColor, nil];
+ UIColor *blackColor = [UIColor colorWithWhite:0.42f alpha:1.0f];
+ UIColor *clearColor = [UIColor colorWithWhite:0.42f alpha:0.0f];
+ layer.colors = [NSArray arrayWithObjects:(id)clearColor.CGColor, (id)blackColor.CGColor, nil];
}
return self;
@@ -100,8 +100,6 @@ - (void)main
if (self.isCancelled == YES) return;
- [[NSThread currentThread] setName:@"ReaderThumbFetch"];
-
NSURL *thumbURL = [self thumbFileURL]; CGImageRef imageRef = NULL;
CGImageSourceRef loadRef = CGImageSourceCreateWithURL((CFURLRef)thumbURL, NULL);
@@ -1,6 +1,6 @@
//
// ReaderThumbRender.m
-// Reader v2.5.4
+// Reader v2.5.6
//
// Created by Julius Oklamcak on 2011-09-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
@@ -101,8 +101,6 @@ - (void)main
if (self.isCancelled == YES) return;
- [[NSThread currentThread] setName:@"ReaderThumbRender"];
-
CFURLRef fileURL = (CFURLRef)request.fileURL; CGImageRef imageRef = NULL;
NSInteger page = request.thumbPage; NSString *password = request.password;
View
@@ -1,6 +1,6 @@
//
// UIXToolbarView.m
-// Reader v2.5.4
+// Reader v2.5.6
//
// Created by Julius Oklamcak on 2011-09-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
@@ -61,9 +61,9 @@ - (id)initWithFrame:(CGRect)frame
self.backgroundColor = [UIColor clearColor];
CAGradientLayer *layer = (CAGradientLayer *)self.layer;
- CGColorRef liteColor = [UIColor colorWithWhite:0.92f alpha:0.8f].CGColor;
- CGColorRef darkColor = [UIColor colorWithWhite:0.32f alpha:0.8f].CGColor;
- layer.colors = [NSArray arrayWithObjects:(id)liteColor, (id)darkColor, nil];
+ UIColor *liteColor = [UIColor colorWithWhite:0.92f alpha:0.8f];
+ UIColor *darkColor = [UIColor colorWithWhite:0.32f alpha:0.8f];
+ layer.colors = [NSArray arrayWithObjects:(id)liteColor.CGColor, (id)darkColor.CGColor, nil];
CGRect shadowRect = self.bounds; shadowRect.origin.y += shadowRect.size.height; shadowRect.size.height = 4.0f;
@@ -126,9 +126,9 @@ - (id)initWithFrame:(CGRect)frame
self.backgroundColor = [UIColor clearColor];
CAGradientLayer *layer = (CAGradientLayer *)self.layer;
- CGColorRef blackColor = [UIColor colorWithWhite:0.24f alpha:1.0f].CGColor;
- CGColorRef clearColor = [UIColor colorWithWhite:0.24f alpha:0.0f].CGColor;
- layer.colors = [NSArray arrayWithObjects:(id)blackColor, (id)clearColor, nil];
+ UIColor *blackColor = [UIColor colorWithWhite:0.24f alpha:1.0f];
+ UIColor *clearColor = [UIColor colorWithWhite:0.24f alpha:0.0f];
+ layer.colors = [NSArray arrayWithObjects:(id)blackColor.CGColor, (id)clearColor.CGColor, nil];
}
return self;

6 comments on commit db84c9d

Hi. Appologies from me, I also have a question and couldn't find a better place to post it :)

  1. I'm trying to get the reader to NOT create a medium res version first. Is that possible?
  2. I want to cache images indefinitely, should I just increase that cache size from 2mb to 200mb or something (that should do it!)

Thanks in advance.

T

hi,
we need guidance on implementing the text search(Across the document, if possible) within this framework, the contribution is quite enough with indexing and url detection. We need a Text Search facility. Could you please suggest the correct approach to achieve the task.

HI

This code is very helpful for me. hanks for this.
I have one question like if i want to show more than 1 pdf and want to store all pdf's bookmark. please help me how its possible.

Thanks
kush

Are you planning to add the "odd-even" facing pages support, useful when the device is oriented in landscape?
let me know if you have plans on it, if not I can develop it and eventually ask you to pull it in the main branch.

Please sign in to comment.