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

Unified Diff: public/fpdf_save.h

Issue 1140653004: Merge to XFA: Tidy public/ directory. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/fpdf_progressive.h ('k') | public/fpdf_searchex.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/fpdf_save.h
diff --git a/public/fpdf_save.h b/public/fpdf_save.h
index 28b169b0df869070315ad81103d29e422b837c18..aa326032ca5d46c820af546c5fabb72e02549c7e 100644
--- a/public/fpdf_save.h
+++ b/public/fpdf_save.h
@@ -1,11 +1,11 @@
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef _FPDFSAVE_H_
-#define _FPDFSAVE_H_
+#ifndef PUBLIC_FPDF_SAVE_H_
+#define PUBLIC_FPDF_SAVE_H_
#include "fpdfview.h"
@@ -17,66 +17,65 @@ extern "C" {
// Structure for custom file write
typedef struct FPDF_FILEWRITE_ {
- //
- //Version number of the interface. Currently must be 1.
- //
- int version;
+ //
+ //Version number of the interface. Currently must be 1.
+ //
+ int version;
- //
- // Method: WriteBlock
- // Output a block of data in your custom way.
- // Interface Version:
- // 1
- // Implementation Required:
- // Yes
- // Comments:
- // Called by function FPDF_SaveDocument
- // Parameters:
- // pThis - Pointer to the structure itself
- // pData - Pointer to a buffer to output
- // size - The size of the buffer.
- // Return value:
- // Should be non-zero if successful, zero for error.
- //
- int (*WriteBlock)(struct FPDF_FILEWRITE_* pThis, const void* pData, unsigned long size);
+ //
+ // Method: WriteBlock
+ // Output a block of data in your custom way.
+ // Interface Version:
+ // 1
+ // Implementation Required:
+ // Yes
+ // Comments:
+ // Called by function FPDF_SaveDocument
+ // Parameters:
+ // pThis - Pointer to the structure itself
+ // pData - Pointer to a buffer to output
+ // size - The size of the buffer.
+ // Return value:
+ // Should be non-zero if successful, zero for error.
+ //
+ int (*WriteBlock)(struct FPDF_FILEWRITE_* pThis, const void* pData, unsigned long size);
} FPDF_FILEWRITE;
-
/** @brief Incremental. */
-#define FPDF_INCREMENTAL 1
+#define FPDF_INCREMENTAL 1
/** @brief No Incremental. */
-#define FPDF_NO_INCREMENTAL 2
+#define FPDF_NO_INCREMENTAL 2
/** @brief Remove security. */
-#define FPDF_REMOVE_SECURITY 3
+#define FPDF_REMOVE_SECURITY 3
// Function: FPDF_SaveAsCopy
-// Saves the copy of specified document in custom way.
-// Parameters:
-// document - Handle to document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
-// pFileWrite - A pointer to a custom file write structure.
-// flags - The creating flags.
+// Saves the copy of specified document in custom way.
+// Parameters:
+// document - Handle to document. Returned by FPDF_LoadDocument and FPDF_CreateNewDocument.
+// pFileWrite - A pointer to a custom file write structure.
+// flags - The creating flags.
// Return value:
-// TRUE for succeed, FALSE for failed.
+// TRUE for succeed, FALSE for failed.
//
-DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy( FPDF_DOCUMENT document,FPDF_FILEWRITE * pFileWrite,
- FPDF_DWORD flags );
+DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy( FPDF_DOCUMENT document,FPDF_FILEWRITE * pFileWrite,
+ FPDF_DWORD flags );
// Function: FPDF_SaveWithVersion
-// Same as function ::FPDF_SaveAsCopy, except the file version of the saved document could be specified by user.
-// Parameters:
-// document - Handle to document.
-// pFileWrite - A pointer to a custom file write structure.
-// flags - The creating flags.
-// fileVersion - The PDF file version. File version: 14 for 1.4, 15 for 1.5, ...
+// Same as function ::FPDF_SaveAsCopy, except the file version of the saved document could be specified by user.
+// Parameters:
+// document - Handle to document.
+// pFileWrite - A pointer to a custom file write structure.
+// flags - The creating flags.
+// fileVersion - The PDF file version. File version: 14 for 1.4, 15 for 1.5, ...
// Return value:
-// TRUE if succeed, FALSE if failed.
+// TRUE if succeed, FALSE if failed.
//
DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document,FPDF_FILEWRITE * pFileWrite,
- FPDF_DWORD flags, int fileVersion);
+ FPDF_DWORD flags, int fileVersion);
#ifdef __cplusplus
-};
+}
#endif
-#endif //_FPDFSAVE_H_
+#endif // PUBLIC_FPDF_SAVE_H_
« no previous file with comments | « public/fpdf_progressive.h ('k') | public/fpdf_searchex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698