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

Side by Side Diff: fpdfsdk/include/fpdfview.h

Issue 345123002: Add support to extract viewer preference (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review feedback Created 6 years, 6 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 unified diff | Download patch
OLDNEW
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
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;
42 typedef int FPDF_DUPLEXTYPE;
41 typedef unsigned long FPDF_DWORD; 43 typedef unsigned long FPDF_DWORD;
42 44
43 typedef float FS_FLOAT; 45 typedef float FS_FLOAT;
44 46
45 // String types 47 // String types
46 typedef unsigned short FPDF_WCHAR; 48 typedef unsigned short FPDF_WCHAR;
47 typedef unsigned char const* FPDF_LPCBYTE; 49 typedef unsigned char const* FPDF_LPCBYTE;
48 50
49 // FPDFSDK may use three types of strings: byte string, wide string (UTF-16LE en coded), and platform dependent string 51 // 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; 52 typedef const char* FPDF_BYTESTRING;
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 556
555 // Function: FPDF_VIEWERREF_GetPrintScaling 557 // Function: FPDF_VIEWERREF_GetPrintScaling
556 // Whether the PDF document prefers to be scaled or not. 558 // Whether the PDF document prefers to be scaled or not.
557 // Parameters: 559 // Parameters:
558 // document - Handle to the loaded document. 560 // document - Handle to the loaded document.
559 // Return value: 561 // Return value:
560 // None. 562 // None.
561 // 563 //
562 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen t); 564 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen t);
563 565
566 // Function: FPDF_VIEWERREF_GetNumCopies
567 // Returns the number of copies to be printed.
568 // Parameters:
569 // document - Handle to the loaded document.
570 // Return value:
Vitaly Buka (NO REVIEWS) 2014/06/26 20:03:37 my guess it should be allied with "document" from
Nikhil 2014/06/26 21:28:39 I tried that earlier with spaces, but it looked in
571 // The number of copies to be printed.
572 //
573 DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document);
574
575 // Function: FPDF_VIEWERREF_GetPrintPageRange
576 // Page numbers to initialize print dialog box when file is printed.
577 // Parameters:
578 // document - Handle to the loaded document.
579 // Return value:
580 // The print page range to be used for printing.
Vitaly Buka (NO REVIEWS) 2014/06/26 20:03:37 ditto
581 //
582 DLLEXPORT FPDF_PAGERANGE STDCALL FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT document);
583
584 // Function: FPDF_VIEWERREF_GetDuplex
585 // Returns the paper handling option to be used when printi ng from print dialog.
586 // Parameters:
587 // document - Handle to the loaded document.
588 // Return value:
589 // The paper handling option to be used when printing.
590 //
591 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen t);
592
564 // Function: FPDF_GetNamedDestByName 593 // Function: FPDF_GetNamedDestByName
565 // get a special dest handle by the index. 594 // get a special dest handle by the index.
566 // Parameters: 595 // Parameters:
567 // document - Handle to the loaded document. 596 // document - Handle to the loaded document.
568 // name - The name of a special named dest . 597 // name - The name of a special named dest .
569 // Return value: 598 // Return value:
570 // The handle of the dest. 599 // The handle of the dest.
571 // 600 //
572 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name); 601 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name);
573 602
574 #ifdef __cplusplus 603 #ifdef __cplusplus
575 }; 604 };
576 #endif 605 #endif
577 606
578 #endif // _FPDFVIEW_H_ 607 #endif // _FPDFVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698