Publiss enables you to enrich PDFs with multimedia content and publish them to a high-quality iPhone and iPad App - all by yourself.
- Give a high-quality native iOS App to your readership
- Start reading instantly even in large documents with PDF Streaming
- Configure and brand it by yourself or get help from Publiss Service
- Extra features are available on request
- Visit Publiss Backend
- Publish PDFs anytime and anywhere
- Easily enrich PDFs with multimedia content (Videos, Audio, Picture Galleries and URLs)
- Analyze detailed usage data with Publiss Statistics
- Get Publiss sourcecode from https://github.com/Publiss/Publiss-Whitelabel-iOS
- Install CocoaPods http://guides.cocoapods.org/using/getting-started.html
- Install dependencies with CocoaPods in publiss-whitelabel-ios root folder with
$ pod install
- Open Publiss.xcworkspace in Xcode 6 or newer
- Login at https://backend.publiss.com/
- Select "Apps" button (left side menu)
- Click on your app
- Copy the "App Secret", "App Token" and your PSDPDFKit License Key (if you already have paid account)
- In your
AppDelegate.m
setup the PUBConfig accordingly (seePUBAppDelegate.m
) - Run Project in Xcode (iOS 7+ only, iPhone, iPad)
- Create your own XCode Project
- Install CocoaPods http://guides.cocoapods.org/using/getting-started.html
- Add a file called
Podfile
to your folder - Paste these lines into the
Podfile
platform :ios, '7.1'
pod 'Publiss', :git => "https://github.com/Publiss/Publiss-Whitelabel-iOS.git"
- Install dependencies with CocoaPods in your project root folder with
$ pod install
- Open your *.xcworkspace file in Xcode 5.1 or newer
- Login at https://backend.publiss.com/
- Select "Apps" button (left side menu)
- Click on your app
- Copy the "App Secret", "App Token" and your PSDPDFKit License Key (if you already have paid account)
- In your
AppDelegate.m
setup the PUBConfig accordingly (seePUBAppDelegate.m
) - To make Publiss Kiosk your rootViewController add these lines in your AppDelegate in
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Example of AppDelegate:
#import "AppDelegate.h"
#import <PublissCore.h>
#import "PUBConfig.h"
#import "Publiss.h"
#import "PUBMainViewController.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
PUBConfig.sharedConfig.appToken = @"--- YOUR APP TOKEN ---";
PUBConfig.sharedConfig.appSecret = @"--- YOUR APP SECRET ---";
PUBConfig.sharedConfig.googleAnalyticsTrackingCode = nil;
PUBConfig.sharedConfig.inAppPurchaseActive = NO;
PUBConfig.sharedConfig.primaryColor = [UIColor colorWithRed:0.0f green:134/255.0f blue:204/255.0f alpha:1];
PUBConfig.sharedConfig.secondaryColor = [UIColor whiteColor];
[Publiss.staticInstance setupWithLicenseKey:nil];
self.window.tintColor = PUBConfig.sharedConfig.primaryColor;
[UINavigationBar.appearance setTintColor:PUBConfig.sharedConfig.secondaryColor];
[UINavigationBar.appearance setBarTintColor:self.window.tintColor];
[UINavigationBar.appearance setTitleTextAttributes:@{NSForegroundColorAttributeName:PUBConfig.sharedConfig.secondaryColor}];
// Demo how to make custom translation
PUBSetLocalizationDictionary(@{@"en" :
@{@"Visit Publiss Website" : @"Visit Example Publiss",
@"Publiss" : @"Example Publiss",
@"Menu Website URL" : @"http://www.apple.com/"
}});
self.window.rootViewController = (UIViewController *)PUBMainViewController.mainViewController;
[self.window makeKeyAndVisible];
return YES;
}
- Run Project in Xcode (iOS 7+ only, iPhone, iPad)
###Requirements:
- Publiss requires Xcode 6 or higher, targeting iOS 7 (iPad and iPhone) and above.
The MIT License (MIT)
Copyright (c) 2014 Publiss GmbH (http://publiss.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.