Also add SK_API to SkPDFPage::getFontResources.
Review URL: http://codereview.appspot.com/
4561050
git-svn-id: http://skia.googlecode.com/svn/trunk@1453
2bbb7eff-a529-9590-31e7-
b0007b416f81
*/
SK_API bool appendPage(const SkRefPtr<SkPDFDevice>& pdfDevice);
+ /** Get the list of pages in this document.
+ */
+ SK_API const SkTDArray<SkPDFPage*>& getPages();
+
private:
SkPDFCatalog fCatalog;
int64_t fXRefFileOffset;
/** Get the fonts used on this page.
*/
- const SkTDArray<SkPDFFont*>& getFontResources() const;
+ SK_API const SkTDArray<SkPDFFont*>& getFontResources() const;
private:
// Multiple pages may reference the content.
return true;
}
+const SkTDArray<SkPDFPage*>& SkPDFDocument::getPages() {
+ return fPages;
+}
+
void SkPDFDocument::emitHeader(SkWStream* stream) {
stream->writeText("%PDF-1.4\n%");
// The PDF spec recommends including a comment with four bytes, all