| 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_DOC_H_ | 7 #ifndef PUBLIC_FPDF_DOC_H_ |
| 8 #define PUBLIC_FPDF_DOC_H_ | 8 #define PUBLIC_FPDF_DOC_H_ |
| 9 | 9 |
| 10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // coordinate system. | 200 // coordinate system. |
| 201 // y - The y coordinate of the point, specified in page | 201 // y - The y coordinate of the point, specified in page |
| 202 // coordinate system. | 202 // coordinate system. |
| 203 // Return value: | 203 // Return value: |
| 204 // Handle to the link. NULL if no link found at that point. | 204 // Handle to the link. NULL if no link found at that point. |
| 205 // Comments: | 205 // Comments: |
| 206 // The point coordinates are specified in page coordinate system. You can | 206 // The point coordinates are specified in page coordinate system. You can |
| 207 // convert coordinates from screen system to page system using | 207 // convert coordinates from screen system to page system using |
| 208 // FPDF_DeviceToPage(). | 208 // FPDF_DeviceToPage(). |
| 209 // | 209 // |
| 210 // Notes: | |
| 211 // The method can not support this feature for the document consists of | |
| 212 // dynamic XFA fields. | |
| 213 // | |
| 214 DLLEXPORT FPDF_LINK STDCALL FPDFLink_GetLinkAtPoint(FPDF_PAGE page, | 210 DLLEXPORT FPDF_LINK STDCALL FPDFLink_GetLinkAtPoint(FPDF_PAGE page, |
| 215 double x, | 211 double x, |
| 216 double y); | 212 double y); |
| 217 | 213 |
| 218 // Function: FPDFLink_GetLinkZOrderAtPoint | 214 // Function: FPDFLink_GetLinkZOrderAtPoint |
| 219 // Find the z-order of a link at specified point on a document page. | 215 // Find the z-order of a link at specified point on a document page. |
| 220 // Parameters: | 216 // Parameters: |
| 221 // page - Handle to the document page. | 217 // page - Handle to the document page. |
| 222 // x - The x coordinate of the point, specified in page | 218 // x - The x coordinate of the point, specified in page |
| 223 // coordinate system. | 219 // coordinate system. |
| 224 // y - The y coordinate of the point, specified in page | 220 // y - The y coordinate of the point, specified in page |
| 225 // coordinate system. | 221 // coordinate system. |
| 226 // Return value: | 222 // Return value: |
| 227 // Z-order of the link, or -1 if no link found at that point. | 223 // Z-order of the link, or -1 if no link found at that point. |
| 228 // Higher numbers are closer to the front. | 224 // Higher numbers are closer to the front. |
| 229 // Comments: | 225 // Comments: |
| 230 // The point coordinates are specified in page coordinate system. You can | 226 // The point coordinates are specified in page coordinate system. You can |
| 231 // convert coordinates from screen system to page system using | 227 // convert coordinates from screen system to page system using |
| 232 // FPDF_DeviceToPage(). | 228 // FPDF_DeviceToPage(). |
| 233 // | 229 // |
| 234 // Notes: | |
| 235 // The method can not support this feature for the document consists of | |
| 236 // dynamic XFA fields. | |
| 237 // | |
| 238 // | |
| 239 DLLEXPORT int STDCALL | 230 DLLEXPORT int STDCALL |
| 240 FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, double x, double y); | 231 FPDFLink_GetLinkZOrderAtPoint(FPDF_PAGE page, double x, double y); |
| 241 | 232 |
| 242 // Function: FPDFLink_GetDest | 233 // Function: FPDFLink_GetDest |
| 243 // Get destination info of a link. | 234 // Get destination info of a link. |
| 244 // Parameters: | 235 // Parameters: |
| 245 // document - Handle to the document. | 236 // document - Handle to the document. |
| 246 // link - Handle to the link. Returned by | 237 // link - Handle to the link. Returned by |
| 247 // FPDFLink_GetLinkAtPoint. | 238 // FPDFLink_GetLinkAtPoint. |
| 248 // Return value: | 239 // Return value: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 268 // PDF page. | 259 // PDF page. |
| 269 // Parameters: | 260 // Parameters: |
| 270 // page[in] - Handle to the page. | 261 // page[in] - Handle to the page. |
| 271 // startPos[in,out] - The start position to enumerate the link | 262 // startPos[in,out] - The start position to enumerate the link |
| 272 // annotations, which should be specified to start from | 263 // annotations, which should be specified to start from |
| 273 // - 0 for the first call, and would receive the | 264 // - 0 for the first call, and would receive the |
| 274 // next position for enumerating to start from. | 265 // next position for enumerating to start from. |
| 275 // linkAnnot[out] - Receive the link handle. | 266 // linkAnnot[out] - Receive the link handle. |
| 276 // Return value: | 267 // Return value: |
| 277 // TRUE if succceed, else False; | 268 // TRUE if succceed, else False; |
| 278 // Notes: | |
| 279 // The method can not support this feature for the document consists of | |
| 280 // dynamic XFA fields. | |
| 281 // | 269 // |
| 282 DLLEXPORT FPDF_BOOL STDCALL FPDFLink_Enumerate(FPDF_PAGE page, | 270 DLLEXPORT FPDF_BOOL STDCALL FPDFLink_Enumerate(FPDF_PAGE page, |
| 283 int* startPos, | 271 int* startPos, |
| 284 FPDF_LINK* linkAnnot); | 272 FPDF_LINK* linkAnnot); |
| 285 | 273 |
| 286 // Function: FPDFLink_GetAnnotRect | 274 // Function: FPDFLink_GetAnnotRect |
| 287 // Get the annotation rectangle. (Specified by the ¡°Rect¡± entry of | 275 // Get the annotation rectangle. (Specified by the ¡°Rect¡± entry of |
| 288 // annotation dictionary). | 276 // annotation dictionary). |
| 289 // Parameters: | 277 // Parameters: |
| 290 // linkAnnot[in] - Handle to the link annotation. | 278 // linkAnnot[in] - Handle to the link annotation. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, | 356 DLLEXPORT unsigned long STDCALL FPDF_GetMetaText(FPDF_DOCUMENT doc, |
| 369 FPDF_BYTESTRING tag, | 357 FPDF_BYTESTRING tag, |
| 370 void* buffer, | 358 void* buffer, |
| 371 unsigned long buflen); | 359 unsigned long buflen); |
| 372 | 360 |
| 373 #ifdef __cplusplus | 361 #ifdef __cplusplus |
| 374 } | 362 } |
| 375 #endif | 363 #endif |
| 376 | 364 |
| 377 #endif // PUBLIC_FPDF_DOC_H_ | 365 #endif // PUBLIC_FPDF_DOC_H_ |
| OLD | NEW |