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

Unified Diff: fpdfsdk/include/fpdfedit.h

Issue 336563004: Add FPDFPage_SetRotation function (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | fpdfsdk/src/fpdfeditpage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/include/fpdfedit.h
diff --git a/fpdfsdk/include/fpdfedit.h b/fpdfsdk/include/fpdfedit.h
index c7d8b01f69830b864334d3a71ec63df0be1f296a..18b816843a447ec6331b5f502ce376cebd7cde05 100644
--- a/fpdfsdk/include/fpdfedit.h
+++ b/fpdfsdk/include/fpdfedit.h
@@ -67,17 +67,29 @@ DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index);
// Function: FPDFPage_GetRotation
// Get the page rotation. One of following values will be returned: 0(0), 1(90), 2(180), 3(270).
// Parameters:
-// page - Handle to a page. Returned by FPDFPage_New.
+// page - Handle to a page. Returned by FPDFPage_New or FPDF_LoadPage.
// Return value:
// The PDF page rotation.
// Comment:
// The PDF page rotation is rotated clockwise.
DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page);
+// Function: FPDFPage_SetRotation
+// Set page rotation. One of following values will be set: 0(0), 1(90), 2(180), 3(270).
+// Parameters:
+// page - Handle to a page. Returned by FPDFPage_New or FPDF_LoadPage.
+// rotate - The value of the PDF page rotation.
+// Return value:
+// None.
+// Comment:
+// The PDF page rotation is rotated clockwise.
+//
+DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate);
+
// Function: FPDFPage_InsertObject
// Insert an object to the page. The page object is automatically freed.
// Parameters:
-// page - Handle to a page. Returned by FPDFPage_New.
+// page - Handle to a page. Returned by FPDFPage_New or FPDF_LoadPage.
// page_obj - Handle to a page object. Returned by FPDFPageObj_NewTextObj,FPDFPageObj_NewTextObjEx and
// FPDFPageObj_NewPathObj.
// Return value:
@@ -87,7 +99,7 @@ DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page, FPDF_PAGEOBJECT pag
// Function: FPDFPage_CountObject
// Get number of page objects inside the page.
// Parameters:
-// page - Handle to a page. Returned by FPDFPage_New.
+// page - Handle to a page. Returned by FPDFPage_New or FPDF_LoadPage.
// Return value:
// The number of the page object.
DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page);
@@ -95,7 +107,7 @@ DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page);
// Function: FPDFPage_GetObject
// Get page object by index.
// Parameters:
-// page - Handle to a page. Returned by FPDFPage_New.
+// page - Handle to a page. Returned by FPDFPage_New or FPDF_LoadPage.
// index - The index of a page object.
// Return value:
// The handle of the page object. Null for failed.
@@ -113,7 +125,7 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page);
// Function: FPDFPage_GenerateContent
// Generate PDF Page content.
// Parameters:
-// page - Handle to a page. Returned by FPDFPage_New.
+// page - Handle to a page. Returned by FPDFPage_New or FPDF_LoadPage.
// Return value:
// True if successful, false otherwise.
// Comment:
« no previous file with comments | « no previous file | fpdfsdk/src/fpdfeditpage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698