[api-minor] Change getOutline to actually return the RGB color of outline items

Currently the `C` entry in an outline item is returned as is, which is neither particularly useful nor what the API documentation claims.

This patch also adds unit-tests for both the color handling, and the `F` entry (bold/italic flags).
This commit is contained in:
Jonas Jenwald 2016-01-31 15:35:57 +01:00
parent 98db068079
commit 7cf9de2c17
3 changed files with 31 additions and 12 deletions

View file

@ -721,7 +721,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
* title: string,
* bold: boolean,
* italic: boolean,
* color: rgb array,
* color: rgb Uint8Array,
* dest: dest obj,
* url: string,
* items: array of more items like this