| 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 #ifndef _FPDF_FLATTEN_H_ | 7 #ifndef _FPDF_FLATTEN_H_ |
| 8 #define _FPDF_FLATTEN_H_ | 8 #define _FPDF_FLATTEN_H_ |
| 9 » | 9 |
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
| 11 | 11 |
| 12 #define FLATTEN_FAIL» » » 0» // Flatten operation failed. | 12 #define FLATTEN_FAIL 0 // Flatten operation failed. |
| 13 #define FLATTEN_SUCCESS»» » 1» // Flatten operation succeed. | 13 #define FLATTEN_SUCCESS 1 // Flatten operation succeed. |
| 14 #define FLATTEN_NOTINGTODO» » 2» // There is nothing can be flatt
en. | 14 #define FLATTEN_NOTINGTODO 2 // There is nothing can be flatten. |
| 15 » | 15 |
| 16 #ifdef __cplusplus | 16 #ifdef __cplusplus |
| 17 extern "C" { | 17 extern "C" { |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 #define FLAT_NORMALDISPLAY 0 | 20 #define FLAT_NORMALDISPLAY 0 |
| 21 #define FLAT_PRINT 1 | 21 #define FLAT_PRINT 1 |
| 22 » //Function: FPDFPage_Flatten | 22 // Function: FPDFPage_Flatten |
| 23 | 23 |
| 24 » //» » » Flat a pdf page,annotations or form fields will
become part of the page contents. | 24 //» » » Flat a pdf page,annotations or form fields will become p
art |
| 25 » //Parameters: | 25 //of the page contents. |
| 26 // Parameters: |
| 26 | 27 |
| 27 » //» » » page - Handle to the page. Returned by FPDF_Loa
dPage function. | 28 //» » » page - Handle to the page. Returned by FPDF_LoadPage |
| 28 » //» » » nFlag - the flag for the use of flatten result.
Zero for normal display, 1 for print. | 29 //function. |
| 29 » //Return value: | 30 //» » » nFlag - the flag for the use of flatten result. Zero for |
| 30 » //» » » The result flag of the function, See flags above
( FLATTEN_FAIL, FLATTEN_SUCCESS, FLATTEN_NOTINGTODO ). | 31 //normal display, 1 for print. |
| 31 » // | 32 // Return value: |
| 32 » // Comments: Current version all fails return zero. If necessary we will
assign different value | 33 //» » » The result flag of the function, See flags above ( |
| 33 » //» » » to indicate different fail reason. | 34 //FLATTEN_FAIL, FLATTEN_SUCCESS, FLATTEN_NOTINGTODO ). |
| 34 » // | 35 // |
| 35 » DLLEXPORT int STDCALL FPDFPage_Flatten( FPDF_PAGE page, int nFlag); | 36 // Comments: Current version all fails return zero. If necessary we will assign |
| 36 » » | 37 // different value |
| 37 » » | 38 //» » » to indicate different fail reason. |
| 39 // |
| 40 DLLEXPORT int STDCALL FPDFPage_Flatten(FPDF_PAGE page, int nFlag); |
| 41 |
| 38 #ifdef __cplusplus | 42 #ifdef __cplusplus |
| 39 }; | 43 }; |
| 40 #endif | 44 #endif |
| 41 | 45 |
| 42 #endif //_FPDF_FLATTEN_H_ | 46 #endif //_FPDF_FLATTEN_H_ |
| OLD | NEW |