Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: include/pdf/SkPDFDocument.h

Issue 107863002: [PDF] Fix font embedding restrictions. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix Mac Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFDocument_DEFINED 10 #ifndef SkPDFDocument_DEFINED
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 SK_API bool setPage(int pageNumber, SkPDFDevice* pdfDevice); 62 SK_API bool setPage(int pageNumber, SkPDFDevice* pdfDevice);
63 63
64 /** Append the passed pdf device to the document as a new page. Returns 64 /** Append the passed pdf device to the document as a new page. Returns
65 * true if successful. Will fail if the document has already been emitted. 65 * true if successful. Will fail if the document has already been emitted.
66 * 66 *
67 * @param pdfDevice The page to add to this document. 67 * @param pdfDevice The page to add to this document.
68 */ 68 */
69 SK_API bool appendPage(SkPDFDevice* pdfDevice); 69 SK_API bool appendPage(SkPDFDevice* pdfDevice);
70 70
71 /** Get the count of unique font types used in the document. 71 /** Get the count of unique font types used in the document.
72 * DEPRECATED.
73 */
74 SK_API void getCountOfFontTypes(
75 int counts[SkAdvancedTypefaceMetrics::kOther_Font + 2]) const;
76
77 /** Get the count of unique font types used in the document.
72 */ 78 */
73 SK_API void getCountOfFontTypes( 79 SK_API void getCountOfFontTypes(
74 int counts[SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1]) const; 80 int counts[SkAdvancedTypefaceMetrics::kOther_Font + 1],
81 int* notSubsettableCount,
82 int* notEmbedddableCount) const;
75 83
76 private: 84 private:
77 SkAutoTDelete<SkPDFCatalog> fCatalog; 85 SkAutoTDelete<SkPDFCatalog> fCatalog;
78 int64_t fXRefFileOffset; 86 int64_t fXRefFileOffset;
79 87
80 SkTDArray<SkPDFPage*> fPages; 88 SkTDArray<SkPDFPage*> fPages;
81 SkTDArray<SkPDFDict*> fPageTree; 89 SkTDArray<SkPDFDict*> fPageTree;
82 SkPDFDict* fDocCatalog; 90 SkPDFDict* fDocCatalog;
83 SkTSet<SkPDFObject*>* fFirstPageResources; 91 SkTSet<SkPDFObject*>* fFirstPageResources;
84 SkTSet<SkPDFObject*>* fOtherPageResources; 92 SkTSet<SkPDFObject*>* fOtherPageResources;
(...skipping 11 matching lines...) Expand all
96 size_t headerSize(); 104 size_t headerSize();
97 105
98 /** Output the PDF footer to the passed stream. 106 /** Output the PDF footer to the passed stream.
99 * @param stream The writable output stream to send the footer to. 107 * @param stream The writable output stream to send the footer to.
100 * @param objCount The number of objects in the PDF. 108 * @param objCount The number of objects in the PDF.
101 */ 109 */
102 void emitFooter(SkWStream* stream, int64_t objCount); 110 void emitFooter(SkWStream* stream, int64_t objCount);
103 }; 111 };
104 112
105 #endif 113 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698