pdfview

Configuring keyboard settings within PDFView form fields

穿精又带淫゛_ 提交于 2019-12-25 03:13:31
问题 I'm working on an app which loads PDF files from a server and displays those PDF files within a PDFView. The files contain form fields in which the user is to type. That's works fine. The PDF files are to be used in an education setting, where the spelling should not be autocorrected and predictive text should not be available. I have not found the means to disable autocorrect in a PDFView, along the lines of autocorrectionType = false in a UITextField. I'm aware the user can manually disable

Configuring keyboard settings within PDFView form fields

 ̄綄美尐妖づ 提交于 2019-12-25 03:13:19
问题 I'm working on an app which loads PDF files from a server and displays those PDF files within a PDFView. The files contain form fields in which the user is to type. That's works fine. The PDF files are to be used in an education setting, where the spelling should not be autocorrected and predictive text should not be available. I have not found the means to disable autocorrect in a PDFView, along the lines of autocorrectionType = false in a UITextField. I'm aware the user can manually disable

Display the PDF file stored on the webserver on Browser new window using Spring MVC

允我心安 提交于 2019-12-24 01:44:22
问题 I have a requirement to show PDF files in a browser. I use Spring MVC. Is there a way I can do this without using AbstractPdfView? I do not want to render the PDF at runtime. All the PDF files will be stored in my webserver. This is the code I am using. But this directly downloads the file instead of showing it up in a browser. @RequestMapping(value = "/download" , method = RequestMethod.GET) public void doDownload(HttpServletRequest request, HttpServletResponse response) throws IOException {

View PDF through C# .Net desktop App

怎甘沉沦 提交于 2019-12-23 19:29:44
问题 I want to know how I can view a PDF through a C# .net desktop App. I am trying to create a application to view PDF using visual studio 2008 There is a pdf reader libraries called iText(iTextSharp). But it didn't help me 回答1: You can host a ie web browser control in your application and that will allow the user to view a pdf if they have a reader installed. I can provide an example if you tell me whether you are using WPF or WinForms. Drag WebControl on to you form Set the path in code Done

Cocoa osx PDFView NSPrintOperation PrintPanel not showing page preview

丶灬走出姿态 提交于 2019-12-20 02:32:15
问题 In my app for Mac I have a webview that shows some html content. I create a PDFDocument from that webview and then I want to print that document. So I create a PDFView from the document and then I call the NSPrintOperation printOperationWithView. When showing the print panel all appears correct except the page preview which appears blank, but if I press the details button the panel is refreshed and the page preview appears correctly. How can I solve this?? Need help please. Thanks in advance.

PDFView setNeedsDisplay:YES doesn't work on MacOS Sierra 10.12

不问归期 提交于 2019-12-19 03:36:15
问题 I have use [PDFView setNeedsDisplay:YES] to let the PDF view redraw, and it worked great on OSX 10.9-10.11. However it doesn't work unless I zoom in or zoom out the PDF page... Is there any other way to redraw immediately? Code below: NSRect newBounds; NSRect currentBounds; NSRect dirtyRect; NSPoint mouseLoc; NSPoint endPt; // Where is annotation now? currentBounds = [_activeAnnotation bounds]; // Mouse in display view coordinates. mouseLoc = [self convertPoint: [theEvent locationInWindow]

PDFView printWithInfo:autoRotate: fails

我的梦境 提交于 2019-12-14 03:53:35
问题 I'm trying to print a PDFDocument that I am constructing from a series of images. In case it matters, I'm doing all of this from within a Mozilla plugin. I create the PDFDocument, and put it into a PDFView, then I call [printView printWithInfo: [NSPrintInfo sharedPrintInfo] autoRotate: YES]; The print dialog comes up (as a separate window, instead of panel. I assume that that comes from being inside a mozilla window, so I wasn't too worried about it. The dialog shows my document, and I can

Displaying pdf files using the PDFKit interface

岁酱吖の 提交于 2019-12-12 19:13:02
问题 I am working on a Mac OS 10.12, and have an application to display pdf files using the PDFKit interface. But I encountered the following issues Set pdf document to PDFView, in original OS,e.g. OS10.11 , there will invoke PDFView->drawPage() function, but in OS10.12,the function is not invoked; PDFView can't draw pdf annotation in OS10.12; Solution to the above will be appreciated 回答1: I reckon this is either a straight out bug or an as yet undocumented API change. I logged this as a bug

Is there a specific way to listen to the completion of PDFDocument or PDFView url load?

删除回忆录丶 提交于 2019-12-10 22:56:44
问题 I have implemented a Custom PDFView that loads pdf files from the cloud and locally if available. For local instances as expected everything loads fast, but when the url is not local i.e from the server it may take a while, I'd like to add an UIActivityIndicator while the PDFView loads the file, is there a way for us to know like a delegate or a notification to listen to to keep track of this? My implementation is basically like below: let url = ReportsRepository.shared.getReportUrl(id: "1234

How to disable zoom in and zoom out in pdfView?

和自甴很熟 提交于 2019-12-10 11:06:15
问题 I want to have just what I receive after pdfView.autoScales = true without the possibility to change the scale. After the help of @carmine we have: import UIKit import PDFKit class ViewController: UIViewController { @IBOutlet weak var pdfView: PDFView! override func viewDidLoad() { super.viewDidLoad() setPdfFile() } override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { super.viewWillTransition(to: size, with: coordinator) self.pdfView