Closed Bug 91559 Opened 23 years ago Closed 13 years ago

[RFE] Use native PDF rendering instead of plug-in on Mac OS X

Categories

(Core :: Layout, enhancement, P3)

All
macOS
enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bugzilla-e, Unassigned)

References

Details

(Keywords: helpwanted, Whiteboard: [parity-webkit] [parity-safari] [parity-chrome])

Attachments

(1 file)

Mac OS X uses Display Postscript to draw things to screen, and as such can natively display PDF documents. This ability is built into the graphics subsystem (Quartz) on Mac OS X. We should leverage this ability and show PDF documents internally, without needing to use a plug-in (of course, a plug-in could be configured to override this). Also refer to bug 74245, which refers to Quartz font rendering. ----- Because of our current build architecture (using the old QuickDraw methods under Carbon CFM?), we probably can't do this yet. But I'd like to register this idea somewhere... someone please target this to Future :-)
No dupes found. Confirming, and adding "acrobat" keyword. Reporter: For future reference, please include your build number in bug reports.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: acrobat
Potential problems for the record: * Quartz doesn't support PDF 1.4. * Quartz fails to render text in numerous PDF files produced with Distiller and GhostScript.* Quartz provides no document navigation support.
I don't think this will ever be feasible. Quartz only provides a rudimentary subset of PDF features, not enough to be suitable for displaying most PDF documents.
->nobody, because I really don't know who would implement this.
Assignee: karnaze → nobody
Keywords: helpwanted
The idea isn't to provide whiz-bang support for latest version PDF documents; if the user wants that, they can install Acrobat Reader and its plug-in and Mozilla should use that instead. The idea is to provide some fall-back for PDF support, because most people won't have Acrobat Reader installed (although I may be mistaken on that). They'd otherwise end up opening the document in Preview, which presumably has the same limitations. Oh, another potential problem is printing the document, since PDF documents have their own pagination scheme. This bug may be trivial and not worth implementing, but I thought I'd put it on file anyway in case someone decides they like it :-)
let adobe write the plugin. that's not our job.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Adobe wouldn't write a plugin for basic PDF support. They'd write a full acrobat plug-in with all its overhead. This request was for basic PDF support (like ps2pdf or OSX might make), which, if the Carbon<->Cocoa stuff winds up working properly (bug 74245) should be rather straightforward. Of course it'd be an OSX-only feature so a third-party should probably pick this up as a project. I don't see anything philosophically wrong with Mozilla rendering PDF though (This doesn't mean I don't see anything philosophically wrong with Adobe - this might need to be marked 'RESOLVED WONTGOTOJAIL').
the whole reason for plugins was so mozilla didn't have to implement the entire kitchen sink. we can barely get html right, now you want us to tackle pdf too? ;) ;) :)
Reopening per pink on IRC. We'll figure out a way to do this somehow, be it with PDFKit (10.4+) or otherwise.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
This would be easy to do 10.4-only and Camino-only. Do we want to do it in Core too? Do we want it for Xlib and GTK1? :-)
(In reply to comment #10) > This would be easy to do 10.4-only and Camino-only. Do we want to do it in > Core too? Do we want it for Xlib and GTK1? :-) > Since this is a Mac-only bug, doing it in Core would require doing it in a way Gecko could use it, regardless of it being Camino or Firefox or SeaMonkey.
Safari does this really well. I can even use the normal browser shortcuts for changing the font size while viewing a PDF in Safari.
Whiteboard: [p-safari]
*** Bug 334769 has been marked as a duplicate of this bug. ***
see also bug 344620
Depends on: 344620
hallelujah! while we wait for somebody to find time / motivation to do this in core directly, users can at least get goodness with fx3 via plug-in, now: http://firefox-mac-pdf.googlecode.com woop!
We'd like this for 1.9.1 -->vlad unless he can find a better owner.
Assignee: nobody → vladimir
Status: REOPENED → NEW
Flags: wanted1.9.1+
Priority: -- → P3
Blocks: 455917
No longer blocks: 455917
No longer depends on: 344620
QA Contact: chrispetersen → layout
Blocks: 455917
I talked to bz and vlad about this recently. I won't have cycles for this, but this will help whoever wants to do this.
Flags: wanted1.9.2+
Flags: wanted1.9.1-
Flags: wanted1.9.1+
(In reply to comment #19) > hallelujah! > > while we wait for somebody to find time / motivation to do this in core > directly, users can at least get goodness with fx3 via plug-in, now: > http://firefox-mac-pdf.googlecode.com Has anyone approached the developer of that plugin about putting his efforts toward fixing this bug? I suspect most of the work is already done and the only thing he'd need to do at this point is to integrate the code he's got with native Gecko (rather than the NPAPI code).
Hardware: PowerPC → All
(In reply to comment #24) > Has anyone approached the developer of that plugin about putting his efforts > toward fixing this bug? I suspect most of the work is already done and the only > thing he'd need to do at this point is to integrate the code he's got with > native Gecko (rather than the NPAPI code). Per comment 22, we do not want a plugin for this, but want to do it with a native frame.
(In reply to comment #25) > Per comment 22, we do not want a plugin for this, but want to do it with a > native frame. Right, that's my point. Presumably the plugin code would be a good head start toward doing this natively.
Just one note. If we do this, there really needs to be a way to disable this on the user's part and just use Preview instead.
Whiteboard: [p-safari] → [parity-webkit] [parity-safari] [parity-chrome]
I second that. Viewing PDFs in the browser is really bad in many cases, because the proportions of the PDF do not match the proportions of the browser window. For example, if you view a technical paper as a PDF, you need a window of a very different size and shape than is appropriate for a browser window, in order to be able to view the paper legibly. (Download almost any paper from Google Scholar to see what I mean.) Plus, those of us who use PDFs heavily (such as those doing technical research) don't just want to view a PDF once - we need to be able to save and manipulate the PDF, and we depend on some of the advanced features in external PDF viewers. Preview is excellent on the Mac for this. If there were no way to skip a built in browser PDF viewer, I would have to switch to a different browser - it would just disrupt my work too much otherwise.
Cross-referencing this bug to https://wiki.mozilla.org/PDF.js - a PDF renderer in pure HTML5+JavaScript (very cool). A possible way forward?
This is almost certainly not going to happen at this point. If we integrate PDF viewing we'll do it with non-native code (e.g. PDF.js). Marking WONTFIX.
Status: NEW → RESOLVED
Closed: 23 years ago13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: