OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 | 7 |
8 #ifndef _FPDFVIEW_H_ | 8 #ifndef _FPDFVIEW_H_ |
9 #define _FPDFVIEW_H_ | 9 #define _FPDFVIEW_H_ |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 typedef void* FPDF_TEXTPAGE; | 27 typedef void* FPDF_TEXTPAGE; |
28 typedef void* FPDF_SCHHANDLE; | 28 typedef void* FPDF_SCHHANDLE; |
29 typedef void* FPDF_PAGELINK; | 29 typedef void* FPDF_PAGELINK; |
30 typedef void* FPDF_HMODULE; | 30 typedef void* FPDF_HMODULE; |
31 typedef void* FPDF_DOCSCHHANDLE; | 31 typedef void* FPDF_DOCSCHHANDLE; |
32 | 32 |
33 typedef void* FPDF_BOOKMARK; | 33 typedef void* FPDF_BOOKMARK; |
34 typedef void* FPDF_DEST; | 34 typedef void* FPDF_DEST; |
35 typedef void* FPDF_ACTION; | 35 typedef void* FPDF_ACTION; |
36 typedef void* FPDF_LINK; | 36 typedef void* FPDF_LINK; |
| 37 typedef void* FPDF_PAGERANGE; |
37 | 38 |
38 // Basic data types | 39 // Basic data types |
39 typedef int FPDF_BOOL; | 40 typedef int FPDF_BOOL; |
40 typedef int FPDF_ERROR; | 41 typedef int FPDF_ERROR; |
41 typedef unsigned long FPDF_DWORD; | 42 typedef unsigned long FPDF_DWORD; |
42 | 43 |
43 typedef float FS_FLOAT; | 44 typedef float FS_FLOAT; |
44 | 45 |
45 // String types | 46 // String types |
46 typedef unsigned short FPDF_WCHAR; | 47 typedef unsigned short FPDF_WCHAR; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 | 555 |
555 // Function: FPDF_VIEWERREF_GetPrintScaling | 556 // Function: FPDF_VIEWERREF_GetPrintScaling |
556 // Whether the PDF document prefers to be scaled or not. | 557 // Whether the PDF document prefers to be scaled or not. |
557 // Parameters: | 558 // Parameters: |
558 // document - Handle to the loaded document. | 559 // document - Handle to the loaded document. |
559 // Return value: | 560 // Return value: |
560 // None. | 561 // None. |
561 // | 562 // |
562 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen
t); | 563 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen
t); |
563 | 564 |
| 565 // Function: FPDF_VIEWERREF_GetNumCopies |
| 566 // Returns the number of copies to be printed. |
| 567 // Parameters: |
| 568 // document - Handle to the loaded document. |
| 569 // Return value: |
| 570 // None. |
| 571 // |
| 572 DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document); |
| 573 |
| 574 // Function: FPDF_VIEWERREF_GetPrintPageRange |
| 575 // Page numbers to initialize print dialog box when file is
printed. |
| 576 // Parameters: |
| 577 // document - Handle to the loaded document. |
| 578 // Return value: |
| 579 // None. |
| 580 // |
| 581 DLLEXPORT FPDF_PAGERANGE STDCALL FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT
document); |
| 582 |
| 583 // Function: FPDF_VIEWERREF_GetDuplex |
| 584 // Returns the paper handling option to be used when printi
ng from print dialog. |
| 585 // Parameters: |
| 586 // document - Handle to the loaded document. |
| 587 // Return value: |
| 588 // None. |
| 589 // |
| 590 DLLEXPORT FPDF_BYTESTRING STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen
t); |
| 591 |
564 // Function: FPDF_GetNamedDestByName | 592 // Function: FPDF_GetNamedDestByName |
565 // get a special dest handle by the index. | 593 // get a special dest handle by the index. |
566 // Parameters: | 594 // Parameters: |
567 // document - Handle to the loaded document. | 595 // document - Handle to the loaded document. |
568 // name - The name of a special named dest
. | 596 // name - The name of a special named dest
. |
569 // Return value: | 597 // Return value: |
570 // The handle of the dest. | 598 // The handle of the dest. |
571 // | 599 // |
572 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); | 600 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); |
573 | 601 |
574 #ifdef __cplusplus | 602 #ifdef __cplusplus |
575 }; | 603 }; |
576 #endif | 604 #endif |
577 | 605 |
578 #endif // _FPDFVIEW_H_ | 606 #endif // _FPDFVIEW_H_ |
OLD | NEW |