| 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 |
| 46 // Duplex types |
| 47 typedef enum _FPDF_DUPLEXTYPE_ { |
| 48 DuplexUndefined = 0, |
| 49 Simplex, |
| 50 DuplexFlipShortEdge, |
| 51 DuplexFlipLongEdge |
| 52 } FPDF_DUPLEXTYPE; |
| 53 |
| 45 // String types | 54 // String types |
| 46 typedef unsigned short FPDF_WCHAR; | 55 typedef unsigned short FPDF_WCHAR; |
| 47 typedef unsigned char const* FPDF_LPCBYTE; | 56 typedef unsigned char const* FPDF_LPCBYTE; |
| 48 | 57 |
| 49 // FPDFSDK may use three types of strings: byte string, wide string (UTF-16LE en
coded), and platform dependent string | 58 // FPDFSDK may use three types of strings: byte string, wide string (UTF-16LE en
coded), and platform dependent string |
| 50 typedef const char* FPDF_BYTESTRING; | 59 typedef const char* FPDF_BYTESTRING; |
| 51 | 60 |
| 52 typedef const unsigned short* FPDF_WIDESTRING; // Foxit PDF SDK
always use UTF-16LE encoding wide string, | 61 typedef const unsigned short* FPDF_WIDESTRING; // Foxit PDF SDK
always use UTF-16LE encoding wide string, |
| 53
// each character use 2 bytes (except surrogatio
n), with low byte first. | 62
// each character use 2 bytes (except surrogatio
n), with low byte first. |
| 54 | 63 |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 | 558 |
| 550 // Function: FPDF_VIEWERREF_GetPrintScaling | 559 // Function: FPDF_VIEWERREF_GetPrintScaling |
| 551 // Whether the PDF document prefers to be scaled or not. | 560 // Whether the PDF document prefers to be scaled or not. |
| 552 // Parameters: | 561 // Parameters: |
| 553 // document - Handle to the loaded document. | 562 // document - Handle to the loaded document. |
| 554 // Return value: | 563 // Return value: |
| 555 // None. | 564 // None. |
| 556 // | 565 // |
| 557 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen
t); | 566 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen
t); |
| 558 | 567 |
| 568 // Function: FPDF_VIEWERREF_GetNumCopies |
| 569 // Returns the number of copies to be printed. |
| 570 // Parameters: |
| 571 // document - Handle to the loaded document. |
| 572 // Return value: |
| 573 // The number of copies to be printed. |
| 574 // |
| 575 DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document); |
| 576 |
| 577 // Function: FPDF_VIEWERREF_GetPrintPageRange |
| 578 // Page numbers to initialize print dialog box when file is
printed. |
| 579 // Parameters: |
| 580 // document - Handle to the loaded document. |
| 581 // Return value: |
| 582 // The print page range to be used for printing. |
| 583 // |
| 584 DLLEXPORT FPDF_PAGERANGE STDCALL FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT
document); |
| 585 |
| 586 // Function: FPDF_VIEWERREF_GetDuplex |
| 587 // Returns the paper handling option to be used when printi
ng from print dialog. |
| 588 // Parameters: |
| 589 // document - Handle to the loaded document. |
| 590 // Return value: |
| 591 // The paper handling option to be used when printing. |
| 592 // |
| 593 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen
t); |
| 594 |
| 559 // Function: FPDF_GetNamedDestByName | 595 // Function: FPDF_GetNamedDestByName |
| 560 // get a special dest handle by the index. | 596 // get a special dest handle by the index. |
| 561 // Parameters: | 597 // Parameters: |
| 562 // document - Handle to the loaded document. | 598 // document - Handle to the loaded document. |
| 563 // name - The name of a special named dest
. | 599 // name - The name of a special named dest
. |
| 564 // Return value: | 600 // Return value: |
| 565 // The handle of the dest. | 601 // The handle of the dest. |
| 566 // | 602 // |
| 567 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); | 603 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); |
| 568 | 604 |
| 569 #ifdef __cplusplus | 605 #ifdef __cplusplus |
| 570 }; | 606 }; |
| 571 #endif | 607 #endif |
| 572 | 608 |
| 573 #endif // _FPDFVIEW_H_ | 609 #endif // _FPDFVIEW_H_ |
| OLD | NEW |