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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 376083002: Export a function from the PDF plugin to get the dimensions of a PDF page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: pdf/pdfium/pdfium_engine.h
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index 4e764b13218de6ef341dd7e69616dedfa4e05940..d8ea10ba140214f587b93d4a2579ac647829e054 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -614,6 +614,11 @@ class PDFiumEngineExports : public PDFEngineExports {
int buffer_size,
int* page_count,
double* max_page_width);
+
+ // If false returned, the query failed; if true, it succeeded.
Lei Zhang 2014/07/09 02:10:48 Please document this properly.
+ virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
+ int buffer_size, int index,
+ double* width, double* height);
};
} // namespace chrome_pdf

Powered by Google App Engine
This is Rietveld 408576698