 import UIKit
 import Alamofire
 import RealmSwift
+import MarqueeLabel
+
 
 class AttachmentDetailViewController: UIViewController {
     

    var moveAnimationView: LOTAnimationView!
    var removeAnimationView: LOTAnimationView!
    let alertController = UIUtils.initProgressDialog(message: Strings.LOADING + "\n\n")
    
    override func viewDidLoad() {
        super.viewDidLoad()

            let pdfController = PDFViewController.createNew(with: pdfDocument!,
                                                            title: content.attachment!.title,
                                                            backButton: backButton)
            pdfController.navigationItem.rightBarButtonItem = nil
            displayWatermark(view: pdfController.view)
            let navigationController = UINavigationController(rootViewController: pdfController)
            present(navigationController, animated: true)
            createContentAttempt()
        }
    }
    
    private func displayWatermark(view: UIView) {
        watermarkLabel = MarqueeLabel.init(frame: CGRect(x: 0, y: 100, width: view.frame.width, height: 20), duration: 8.0, fadeLength: 0.0)
        watermarkLabel?.text = KeychainTokenItem.getAccount().padding(toLength: Int((view.frame.width)/2), withPad: " ", startingAt: 0)
        watermarkLabel?.numberOfLines = 1
        view.addSubview(watermarkLabel!)
        timer = Timer.scheduledTimer(timeInterval: 10.0, target: self, selector: #selector(moveWatermarkPosition), userInfo: nil, repeats: true)
    }
    
    @objc func moveWatermarkPosition() {
        watermarkLabel?.frame.origin.y = CGFloat(Int.random(in: 0..<Int(self.view.frame.height)))
    }

    deinit {
        self.timer?.invalidate()
    }
    
    @IBAction func downloadAttachment(_ sender: UIButton) {
