| 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 PUBLIC_FPDF_TEXT_H_ | 7 #ifndef PUBLIC_FPDF_TEXT_H_ |
| 8 #define PUBLIC_FPDF_TEXT_H_ | 8 #define PUBLIC_FPDF_TEXT_H_ |
| 9 | 9 |
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // detection, in point unit. | 129 // detection, in point unit. |
| 130 // Return Value: | 130 // Return Value: |
| 131 // The zero-based index of the character at, or nearby the point (x,y). | 131 // The zero-based index of the character at, or nearby the point (x,y). |
| 132 // If there is no character at or nearby the point, return value will | 132 // If there is no character at or nearby the point, return value will |
| 133 // be -1. | 133 // be -1. |
| 134 // If an error occurs, -3 will be returned. | 134 // If an error occurs, -3 will be returned. |
| 135 // | 135 // |
| 136 DLLEXPORT int STDCALL FPDFText_GetCharIndexAtPos(FPDF_TEXTPAGE text_page, | 136 DLLEXPORT int STDCALL FPDFText_GetCharIndexAtPos(FPDF_TEXTPAGE text_page, |
| 137 double x, | 137 double x, |
| 138 double y, | 138 double y, |
| 139 double xTorelance, | 139 double xTolerance, |
| 140 double yTolerance); | 140 double yTolerance); |
| 141 | 141 |
| 142 // Function: FPDFText_GetText | 142 // Function: FPDFText_GetText |
| 143 // Extract unicode text string from the page. | 143 // Extract unicode text string from the page. |
| 144 // Parameters: | 144 // Parameters: |
| 145 // text_page - Handle to a text page information structure. | 145 // text_page - Handle to a text page information structure. |
| 146 // Returned by FPDFText_LoadPage function. | 146 // Returned by FPDFText_LoadPage function. |
| 147 // start_index - Index for the start characters. | 147 // start_index - Index for the start characters. |
| 148 // count - Number of characters to be extracted. | 148 // count - Number of characters to be extracted. |
| 149 // result - A buffer (allocated by application) receiving the | 149 // result - A buffer (allocated by application) receiving the |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 // Return Value: | 410 // Return Value: |
| 411 // None. | 411 // None. |
| 412 // | 412 // |
| 413 DLLEXPORT void STDCALL FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page); | 413 DLLEXPORT void STDCALL FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page); |
| 414 | 414 |
| 415 #ifdef __cplusplus | 415 #ifdef __cplusplus |
| 416 } | 416 } |
| 417 #endif | 417 #endif |
| 418 | 418 |
| 419 #endif // PUBLIC_FPDF_TEXT_H_ | 419 #endif // PUBLIC_FPDF_TEXT_H_ |
| OLD | NEW |