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
1
vote
1 answer

Why doc and docx losing style information in iOS?

I wanted to open a docx, doc file in iOS. I tried two ways: 1.Web view 2.QLPreviewController In both the ways I am losing the style information associated with the document. WHy this happens? Is in any way possible to retain the style…
RK-
  • 12,099
  • 23
  • 89
  • 155
1
vote
1 answer

Using QLPreviewController to scroll through PDF horizontally

Hello i'm currently using QLPreviewController to view a pdf for a magazine app, but i want to have horizontal scrolling, i have got PSPDFKIT (think it's called that) and FastPDF to work fine but i don't have the money to pay for the liencese and…
1
vote
1 answer

QLPreviewController shows a blank document after returning from background

I am having an issue with QLPreviewController on XCode 4.2 iOS SDK 5.0. I run my code on iPod Touch running iOS 4.3.3. Basically my app uses QLPreviewController to preview PDF files in Documents directory and if the app resigns active, the next time…
user698666
  • 11
  • 3
1
vote
1 answer

UIDocumentInteractionController or QLPreviewController can't zoom PDF on iOS5?

I use QLPreviewController to view PDF files in one of my apps. However, ever since iOS5, users can no longer pinch to zoom in/out of the PDF. This is terrible for iPhone users, as they can't read anything. I have also tried using…
DOOManiac
  • 6,066
  • 8
  • 44
  • 67
1
vote
3 answers

UIWebview default zoom level

In my app, I use UIWebviews to display some one page PDFs, I've noticed that in iOS5 the default zoom level is to show the entire document where as in 4.3 the document was opened zoomed in. Is it possible to programmatically set the zoom level on…
wibosco
  • 967
  • 1
  • 11
  • 32
1
vote
2 answers

Implementing Quick Look QLPreviewController Animations

I am trying to implement the following method of QLPreviewControllerDelegate and the method requires me to return the view that shows my Preview Item before the Preview Controller; this should be self.view however I am getting the following compile…
Mark Stratmann
  • 1,612
  • 14
  • 21
1
vote
1 answer

QLPreviewController sharesheet greyed out on iOS App

So the QuickLookPreview displays correctly as usual, but when you try and use the Apple built-in sharesheet it is sliding up a see-through grey view that is displaying nothing else on it. Has anyone had experience with this? Thought it might be…
AMAN77
  • 6,218
  • 9
  • 45
  • 60
1
vote
0 answers

ios 15.01 after capturing AR content in QLPreviewController the background is black, only 3D model is visible

In preview, the 3D model is visible in the background but once the camera button is pressed the image in the screenshot is just the 3D model with a black background which is also saved. QLPreviewController implementation: func collectionView(_…
DaliborK
  • 11
  • 3
1
vote
1 answer

QLPreviewController iOS15 BarButtonItems missing

Since iOS15 the QLPreviewController added some additional BarbuttonItems on the top-right side when I'm previewing a PDF-file. It added a search-button and a draw-button (the one where you can draw lines on it). It's actually pretty cool that they…
Bob de Graaf
  • 2,630
  • 1
  • 25
  • 43
1
vote
0 answers

QuickLook/QLPreviewController PDF Text Annotation background becomes black and font becomes small

I am Using QLPreviewController for editing the PDF. Everything is working properly but if I add text annotation from the QLPreviewController and click on the done button it is working as expected I am getting the URL with edited PDF and if I do…
MahammedAsif
  • 111
  • 1
  • 6
1
vote
0 answers

How to handle when Share button tapped on the QLPreviewController

I implemented QLPreviewController in project, it works fine. But I want to know when Share button was tapped. How can I do it? Also I want to know when UIActivityIndicator was dismissed. In other VC I use custom Share buttons and I don't have any…
1
vote
0 answers

Cannot preview .xlsx file using UIDocumentInteractionController in swift 4

I have an application which will download .xlsx, .pdf files from a given url. When downloaded will show a local notification. Upon clicking the notification , preview of the downloaded file should be shown. I can download and preview a pdf file, but…
1
vote
1 answer

Is it possible to know when a QLPreviewController reaches the end of a document?

I use a QLPreviewController to display a pdf file to my users. Everything works well. I just want know when the user reach the end of the document. Do you know if it's possible ? Thanks you.
1
vote
0 answers

How to fix the add QLPreviewController as subview

When loading the PDF in a QLPreviewController, it does not fit the content that I have inside, I am adding it as a subview to a container view. The PDF has a greater zoom than required. Is there any way to modify the zoom of QLPreview? let preview =…
mewkill
  • 11
  • 2
1
vote
0 answers

QLPreviewController -- how to pause video play programmatically?

I have an app with a QLPreviewController and need to know how to pause video play programmatically. I haven't seen anything in QLPreviewController or QLPreviewItem that would allow me to do that.
lemon lime pomelo
  • 316
  • 1
  • 2
  • 14