Git Product home page Git Product logo

Comments (4)

ranunez avatar ranunez commented on August 19, 2024

The install instructions assumes one is already familiar with dependency managers such as Carthage or Cocoapods. Please do a quick tutorial or two of Carthage and/or Cocoapods to understand how to integrate external libraries such as this into your application.

from ios-pdf-reader.

TCOA avatar TCOA commented on August 19, 2024

I've installed 19 external libraries and every one (from large groups to small - Alamofire, SwiftKeychainWrapper, Mapbox, Firebase, etc.) have all had an 'import' command associated with the Cocoapods install and use - and I have had no issues with any of them.....

So, it seems clear that "such as this one" really isn't..... - in my, admittedly new, though not inexperienced, use of Cocoapods.

I had tried "import PDFReader", though it seems that is not correct, nor "import iOS-PDF-Reader"..... - nor trying to get additional information/help from the developer..............

from ios-pdf-reader.

ranunez avatar ranunez commented on August 19, 2024

If you checkout the demo project, you can see a working implementation using Carthage, but the same would apply for Cocoapods

from ios-pdf-reader.

TCOA avatar TCOA commented on August 19, 2024

For others that are somewhat new to all this and that may wish to use this library, here is the Swift 3 working code (I don't know why it didn't work before, but it works with this code....)

`
import UIKit
import PDFReader

class DocViewController:UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let remotePDFDocumentURLPath = "YOUR_URL_HERE"
let remotePDFDocumentURL = URL(string: remotePDFDocumentURLPath)!
let document = PDFDocument(url: remotePDFDocumentURL)!
let readerController = PDFViewController.createNew(with: document)
navigationController?.pushViewController(readerController, animated: true)
}
}
`
It works quite nicely and is even 'pretty' (one of the requirements actually stated by the folks asking me to create this app for them..... :)

However, I do have one issue (not directly related to the library, though I'm not sure how to fix it.....

I'm accessing this controller through a seque controller (using Eureka) and when going 'Back', I get a blank page instead of back to the main page.

Likely can be fixed by the 'custom back button' - I'll fight with that, though otherwise, this is really a nice presentation of PDFs (sorry about harsh comments before - I'm sure you know how frustration sometimes sets in when trying to get a project out.......)

from ios-pdf-reader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.