Open Bug 1295109 Opened 6 years ago Updated 5 years ago

Directly send PDF file to OS's spool module when possible

Categories

(Core :: Printing: Output, defect)

45 Branch
defect
Not set
normal

Tracking

()

People

(Reporter: jj.evelyn, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

On Linux(and maybe OS X), they allows application send PDF file to its spool module directly. If Gecko supports this, it might be more efficient to print PDF.
Check that we correctly handle the PDF forms scenario.
Blocks: 1302489
This link might be useful to understand linux's spooling module.
https://notehub.org/w88ic
(In reply to Evelyn Hung [:evelyn] from comment #0)
> On Linux(and maybe OS X), they allows application send PDF file to its spool
> module directly. If Gecko supports this, it might be more efficient to print
> PDF.

For OS X, see the code that bug 1309272 part 8 adds to nsDeviceContextSpecX::EndDocument (specifically the PMPrinterPrintWithFile call).
Depends on: 1309272
Depends on: 1321496
Depends on: 1322653
What are the security implications of sending possibly malicious PDF directly to the OS (without sanitizing it)?
Hmm... I know PDFium can rewrite the to-be-printed-PDF and pass out a new binary to its caller. Not sure how effective it removes those malicious scripts. :-/
Blocks: 1269760
No longer blocks: 1264551
Depends on: 1372108
No longer blocks: 1269760
No longer depends on: 1309272
You need to log in before you can comment on or make changes to this bug.