OLD | NEW |
| (Empty) |
1 | |
2 /* | |
3 * Copyright 2010 The Android Open Source Project | |
4 * | |
5 * Use of this source code is governed by a BSD-style license that can be | |
6 * found in the LICENSE file. | |
7 */ | |
8 | |
9 | |
10 #ifndef SkPDFDocument_DEFINED | |
11 #define SkPDFDocument_DEFINED | |
12 | |
13 #include "SkAdvancedTypefaceMetrics.h" | |
14 #include "SkTDArray.h" | |
15 | |
16 class SkPDFDevice; | |
17 class SkWStream; | |
18 | |
19 namespace SkPDFDocument { | |
20 /** | |
21 * Assemble pages together and generate a PDF document file. | |
22 * | |
23 * Output the PDF to the passed stream. It is an error to call this (it | |
24 * will return false and not modify stream) if pageDevices is empty. | |
25 * No device pointer can be NULL. | |
26 * | |
27 * @param pageDevices An array of pages, in order. All pages | |
28 * should be created using the same SkPDFCanon. | |
29 * @param SkWStream The writable output stream to send the PDF to. | |
30 */ | |
31 bool EmitPDF(const SkTDArray<const SkPDFDevice*>& pageDevices, SkWStream*); | |
32 | |
33 /** Get the count of unique font types used in the given pages. | |
34 */ | |
35 void GetCountOfFontTypes(const SkTDArray<SkPDFDevice*>& pageDevices, | |
36 int counts[SkAdvancedTypefaceMetrics::kOther_Font + 1], | |
37 int* notSubsettableCount, | |
38 int* notEmbedddableCount); | |
39 } | |
40 | |
41 #endif | |
OLD | NEW |