Questions tagged [qlpreviewcontroller]

A QLPreviewController, or Quick Look preview controller, provides a specialized view for previewing a file on the iOS platform.

A QLPreviewController, or Quick Look preview controller, provides a specialized view for previewing a file on the (4.0+) platform. The Quick Look framework supports the following file types:

  • documents
  • Microsoft Office documents (Office ‘97 and newer)
  • Rich Text Format (RTF) documents
  • PDF files
  • Images
  • Text files whose uniform type identifier () conforms to the public.text type
  • Comma-separated value (CSV) files

You can refer to the Apple documentation for more information.

275 questions
0
votes
0 answers

Paging doesn't work if QLPreviewController inside UIPageViewController

I have a UIPageViewController with a .scroll transition style. My goal is to add a QLPreviewController as a child, but in this case a scroll doesn't work and I can't do a paging from one vc to another. I've wanted to play with gestureRecognizers,…
Nikita Ermolenko
  • 2,139
  • 2
  • 19
  • 41
0
votes
1 answer

Use of undeclared type 'QLPreviewControllerDataSource'

I would like to implement QuickLook framework in swift 4 to preview Documents or PDF, but getting this issue, while this is working in Objective C. had tried a lot, Could someone please help. I am not even getting any sample anywhere QuickLook…
Gaurav Pandey
  • 1,953
  • 3
  • 23
  • 37
0
votes
0 answers

QLPreviewController display out of screen

Bug screenshot link: I use QLPreviewController, but it display out of screen.I don't know why? Need Help, thx! self.previewingFileInfo = fileInfo; QLPreviewController *previewController = [[QLPreviewController alloc]…
user3483629
0
votes
1 answer

Get dimensions of a PDF being displayed in QLPreview Controller

I need to figure out a way to get the size(dimensions) of the file being shown in the QLPreview Controller. If I use qlpreviewController.frame it just returns the dimensions of the QLPreview not the content (in my case, its a PDF). Will I require…
Umar Farooque
  • 2,049
  • 21
  • 32
0
votes
0 answers

objective C QLPreviewController does not display image

i used Afnetworking to download image file, and display it using QlViewController. Here is my image: Here is my code to download and display image: NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request…
kemdo
  • 1,429
  • 3
  • 15
  • 29
0
votes
0 answers

Right thumbnail bar of QLPreviewController disappeared in iOS 11

In my app I'm opening a pdf using QLPreviewController, which usually appears with a right thumbnail bar in iOS 10. But when I run the app on iOS 11, the thumbnail bar disappeared. I'm using the following code to preview the pdf. #import…
Poles
  • 3,585
  • 9
  • 43
  • 91
0
votes
1 answer

Open url in QuickLook framework

I am trying to open a file using the QuickLook framework. All the resources I am finding online show how to open a file stored locally with quicklook, however, is it possible to open a file using a url link (which is not stored locally)? In my…
Josh O'Connor
  • 4,694
  • 7
  • 54
  • 98
0
votes
1 answer

Adding QLPreviewController as subview dismisses view on image drag

I added the QLPreviewController as a subview to my QLPreviewControllerWithDownloadView. Then when I present my QLPreviewControllerWithDownloadView and have it preview an image, my QLPreviewControllerWithDownloadView view is dismissed immediately if…
Christopher
  • 1,327
  • 10
  • 17
0
votes
1 answer

viewing documents in ios10 using qlpreviewcontroller or uidocumentinteractioncontroller

does anyone know how to get rid of the thumbnail preview on the right side of viewer in ios10 when using qlpreviewcontroller or uidocumentinteractioncontroller. covers part of document and seems to be permanent now. i would take either it swiping…
Abbacore
  • 385
  • 1
  • 3
  • 8
0
votes
1 answer

What is the main difference between QLPreviewController and WebView to display PDF file or any text file.?

I Searched out i can view PDF or any text file using QLPreviewController and WebView. I know both way how to display but i didn't get what is the main difference between them. Any one Tell me the Difference between this two.?
Dhruv Khatri
  • 803
  • 6
  • 15
0
votes
1 answer

How to hide thumbnail bar in QLPreviewcontroller document preview

I need to hide the thumbnail bar on double tapping the document preview. But if I add the QLPreviewcontroller as a subview, the double tapping is not working and the thumbnail bar is not hidden. I need to do this because the bar is hiding a right…
DGoogly
  • 329
  • 2
  • 16
0
votes
1 answer

iOS 10, QLPreviewViewController is not displaying files

I am working on a iOS app that displays lots of different files to the user. From video and audio files to html and Office/iWorks files. I have subclassed QLPreviewController, and want to use it to display some of these files. I create the…
Jacob Boyd
  • 672
  • 3
  • 19
0
votes
1 answer

QLPreviewController delegate method doesn't get called in iOS 10, but does get called if ran earlier than iOS 10

Here is my code. This may sound like redundant question but my scenario is different as I am not adding QLPreviewController as a subview but present as a controller. After downloading from dropbox, I present it like- self.pdfViewController =…
Natasha
  • 6,651
  • 3
  • 36
  • 58
0
votes
0 answers

Move thumbnail bar in QLPreviewController

I'm using QLPreviewController in my Xamarin application to display PDF files: _qlPreviewController = new QLPreviewController(); _qlPreviewController.DataSource = _dataSource; _qlPreviewController.View.Frame =…
Mikalai Daronin
  • 8,590
  • 2
  • 35
  • 47
0
votes
2 answers

QLPreviewController not displays saved file

I'm getting this behaviour using Xcode 8.0. The problem is, after downloading a file and storing it on documents directory (code provided below), QLPreviewController only displays document's name and size. The property currentPreviewItem returns the…