62ce332c141cf7bc7200c4c87d63e395874fc3ec |
|
05-Sep-2014 |
Svetoslav <svetoslavganov@google.com> |
Trim unnecessary pages when printing. A user may request a subset of the document's pages to be printed. In this case the expectation is that the resulting document does not include not selected pages. While print serivices can do the trimming themselves or the printer may do so, moving, potantually many, redundant pages is inefficient. The real problem is when saving to a PDF file where the saved file must not have the pages the user did not select. This change adds shredding of undesired pages from the PDF before saving it or passing it to a print service. : bug:17285994 Change-Id: I7deba535af99457bea3c118202314f0f3812e809
/frameworks/base/graphics/java/android/graphics/pdf/PdfRenderer.java
|
13f542cabd635c55ade5442764cc4a3d2f7880ea |
|
30-Aug-2014 |
Svet Ganov <svetoslavganov@google.com> |
Move print rendering in an isolated process. Security review of the PDF rendering code revealed that it is not sercure. Therefore, this code must be run in a sandbox. This change moves the rendering code in an isolated process. bug:16897933 Change-Id: I711ce42a56892db1837950137bfaa79e1d61a7c4
/frameworks/base/graphics/java/android/graphics/pdf/PdfRenderer.java
|
525a66b2bb5abf844aff2109bdc9ed819566bece |
|
15-Jun-2014 |
Svet Ganov <svetoslavganov@google.com> |
Adding print preview. This change adds the pring preview part of the new print UX. The UI has two parts, the top section is the print options and the bottom section print preview with a list of pages. The user can interact only with one of them. When print options are expanded they cover the preview content and a scrim is laid out on top of the preview. Tapping the scrim collapses the print options. When the user types in page ranges and closes the options to look at the preview, the latter is updated to show only these pages. In the list of pages the user can further prune pages by deselecting them. Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
/frameworks/base/graphics/java/android/graphics/pdf/PdfRenderer.java
|
95b6fd8b7af276069cbc415da3499d5ab4873c32 |
|
21-May-2014 |
Svetoslav <svetoslavganov@google.com> |
Addressing APIs council feedback bug:15089461 Change-Id: Ifcb003b114e2e50333bb0ef386d99482f7bfaa6e
/frameworks/base/graphics/java/android/graphics/pdf/PdfRenderer.java
|
2961769ea94f69c191a2dd785b2504666c7292d0 |
|
25-Apr-2014 |
Svetoslav <svetoslavganov@google.com> |
Adding APIs to render PDF documents. We need to render PDF documents for two main use cases. First, for print preview. Second, for resterizing the PDF document by a print service before passing it to a printer which does not natively support PDF (most consumer ones). Adding PDF rendering APIs improves guarantees for print quality as the same library is used for preview and rasterization. Also print vendors do not have to license third-party rendering engines. Last but not least as the platform uses PDF as its main print format it should also be able to natively render it. Change-Id: I57004a435db147663cafea40cf3296465aba7f99
/frameworks/base/graphics/java/android/graphics/pdf/PdfRenderer.java
|