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