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

Side by Side Diff: public/fpdf_flatten.h

Issue 1139993003: Tidy public fpdfview.h and fpdf_flatten.h. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 7 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
« no previous file with comments | « no previous file | public/fpdfview.h » ('j') | public/fpdfview.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PUBLIC_FPDF_FLATTEN_H_ 7 #ifndef PUBLIC_FPDF_FLATTEN_H_
8 #define PUBLIC_FPDF_FLATTEN_H_ 8 #define PUBLIC_FPDF_FLATTEN_H_
9 9
10 #include "fpdfview.h" 10 #include "fpdfview.h"
11 11
12 // Result codes.
12 #define FLATTEN_FAIL 0 // Flatten operation failed. 13 #define FLATTEN_FAIL 0 // Flatten operation failed.
13 #define FLATTEN_SUCCESS 1 // Flatten operation succeed. 14 #define FLATTEN_SUCCESS 1 // Flatten operation succeed.
14 #define FLATTEN_NOTINGTODO 2 // There is nothing can be flatten. 15 #define FLATTEN_NOTHINGTODO 2 // There is nothing to be flattened.
16
17 // Backwards compatibility.
18 #define FLATTEN_NOTINGTODO FLATTEN_NOTHINGTODO // [sic].
Lei Zhang 2015/05/19 19:11:29 We should fix the typos in fpdfsdk/src/fpdf_flatte
Tom Sepez 2015/05/19 19:40:01 SGTM.
19
20 // Flags.
21 #define FLAT_NORMALDISPLAY 0
22 #define FLAT_PRINT 1
15 23
16 #ifdef __cplusplus 24 #ifdef __cplusplus
17 extern "C" { 25 extern "C" {
18 #endif 26 #endif
19 27
20 #define FLAT_NORMALDISPLAY 0 28 //Function: FPDFPage_Flatten
Lei Zhang 2015/05/19 19:11:29 nit: space after //
Tom Sepez 2015/05/19 19:40:01 Done.
21 #define FLAT_PRINT 1 29 // Make annotations and form fields become part of the page contents it self.
22 //Function: FPDFPage_Flatten 30 //Parameters:
23 31 // page - Handle to the page, as returned by FPDF_LoadPage().
24 // Flat a pdf page,annotations or form fields will become part of t he page contents. 32 // nFlag - Intended use of the flattened result: 0 for normal display, 1 for printing.
25 //Parameters: 33 //Return value:
26 34 // Either FLATTEN_FAIL, FLATTEN_SUCCESS, or FLATTEN_NOTHINGTODO (see ab ove).
27 // page - Handle to the page. Returned by FPDF_LoadPage function. 35 // Comments:
28 // nFlag - the flag for the use of flatten result. Zero for normal display, 1 for print. 36 // Currently, all failures return FLATTEN_FAIL, with no indication for the reason
29 //Return value: 37 // for the failure.
30 // The result flag of the function, See flags above ( FLATTEN_FAIL, FLATTEN_SUCCESS, FLATTEN_NOTINGTODO ). 38 DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag);
31 //
32 // Comments: Current version all fails return zero. If necessary we will ass ign different value
33 // to indicate different fail reason.
34 //
35 DLLEXPORT int STDCALL FPDFPage_Flatten( FPDF_PAGE page, int nFlag);
36
37 39
38 #ifdef __cplusplus 40 #ifdef __cplusplus
39 } 41 }
40 #endif 42 #endif
41 43
42 #endif // PUBLIC_FPDF_FLATTEN_H_ 44 #endif // PUBLIC_FPDF_FLATTEN_H_
OLDNEW
« no previous file with comments | « no previous file | public/fpdfview.h » ('j') | public/fpdfview.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698