1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-25 13:09:08 +01:00
phorge-phorge/src/applications/files/storage
epriestley fb4ce851c4 Add a PDF document "rendering" engine
Summary:
Depends on D19251. Ref T13105. This adds rendering engine support for PDFs.

It doesn't actually render them, it just renders a link which you can click to view them in a new window. This is much easier than actually rendering them inline and at least 95% as good most of the time (and probably more-than-100%-as-good some of the time).

This makes PDF a viewable MIME type by default and adds a narrow CSP exception for it. See also T13112.

Test Plan:
  - Viewed PDFs in Files, got a link to view them in a new tab.
  - Clicked the link in Safari, Chrome, and Firefox; got inline PDFs.
  - Verified primary CSP is still `object-src 'none'` with `curl ...`.
  - Interacted with the vanilla lightbox element to check that it still works.

Maniphest Tasks: T13105

Differential Revision: https://secure.phabricator.com/D19252
2018-03-23 07:14:17 -07:00
..
__tests__ Update Maniphest for modular transactions 2017-05-15 10:29:06 -07:00
PhabricatorFile.php Add a PDF document "rendering" engine 2018-03-23 07:14:17 -07:00
PhabricatorFileChunk.php Remove empty implementations of describeAutomaticCapabilities() 2016-11-09 15:24:22 -08:00
PhabricatorFileDAO.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhabricatorFileExternalRequest.php Endpoint+controller for a remarkup image proxy 2016-09-23 10:28:24 -04:00
PhabricatorFileNameNgrams.php Implement ngram search for File objects 2017-04-17 17:37:20 -07:00
PhabricatorFileSchemaSpec.php Automatically build all Lisk schemata 2014-10-02 09:51:20 -07:00
PhabricatorFileStorageBlob.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
PhabricatorFileTransaction.php Move Files to ModularTransactions 2017-04-04 10:25:05 -07:00
PhabricatorFileTransactionComment.php Allow file comments to be edited 2016-07-18 16:17:43 -07:00
PhabricatorTransformedFile.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00