Chromium Code Reviews| Index: fpdfsdk/include/fpdfview.h |
| diff --git a/fpdfsdk/include/fpdfview.h b/fpdfsdk/include/fpdfview.h |
| index a563762613aad02d340f3cbdfed8323c711b2374..0b0e8ed2ff5d7c5c8f8836f27dd804842dd49585 100644 |
| --- a/fpdfsdk/include/fpdfview.h |
| +++ b/fpdfsdk/include/fpdfview.h |
| @@ -34,6 +34,7 @@ typedef void* FPDF_BOOKMARK; |
| typedef void* FPDF_DEST; |
| typedef void* FPDF_ACTION; |
| typedef void* FPDF_LINK; |
| +typedef void* FPDF_PAGERANGE; |
| // Basic data types |
| typedef int FPDF_BOOL; |
| @@ -561,6 +562,33 @@ DLLEXPORT void STDCALL FPDFBitmap_Destroy(FPDF_BITMAP bitmap); |
| // |
| DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT document); |
| +// Function: FPDF_VIEWERREF_GetNumCopies |
| +// Returns the number of copies to be printed. |
| +// Parameters: |
| +// document - Handle to the loaded document. |
| +// Return value: |
| +// The number of copies to be printed. |
|
Vitaly Buka (NO REVIEWS)
2014/06/25 18:02:24
please replace tabs with spaces
Nikhil
2014/06/26 10:21:38
It looks like all files here use tabs. Can we use
|
| +// |
| +DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document); |
| + |
| +// Function: FPDF_VIEWERREF_GetPrintPageRange |
| +// Page numbers to initialize print dialog box when file is printed. |
| +// Parameters: |
| +// document - Handle to the loaded document. |
| +// Return value: |
| +// The print page range to be used for printing. |
|
Vitaly Buka (NO REVIEWS)
2014/06/25 18:02:24
ditto
|
| +// |
| +DLLEXPORT FPDF_PAGERANGE STDCALL FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT document); |
| + |
| +// Function: FPDF_VIEWERREF_GetDuplex |
| +// Returns the paper handling option to be used when printing from print dialog. |
| +// Parameters: |
| +// document - Handle to the loaded document. |
| +// Return value: |
| +// The paper handling option to be used when printing. |
| +// |
|
Vitaly Buka (NO REVIEWS)
2014/06/25 18:02:24
ditto
|
| +DLLEXPORT int STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT document); |
|
Vitaly Buka (NO REVIEWS)
2014/06/25 18:02:24
Please return enum here
Nikhil
2014/06/26 10:21:38
With current implementation, enum DuplexType isn't
Vitaly Buka (NO REVIEWS)
2014/06/26 20:03:37
I'd prefer to move enum to some accessible locatio
Bo Xu
2014/06/29 20:58:16
I agree. Move enum to fpdfsdk part will be more cl
Nikhil
2014/07/07 08:54:18
Done.
|
| + |
| // Function: FPDF_GetNamedDestByName |
| // get a special dest handle by the index. |
| // Parameters: |